As the question state. When using open source code and there is a // Copyright (c) 2017 xxxxx in the file.
I know I must keep the notice but if I change the code a bit or much do I always keep it or is there some situation when it can be removed?

Is there some praxis or even some guideline what to do or not here!

1 Answer 1


It may help to read this answer to get a bit more insight into the mental model you're likely using, and how it sometimes goes wrong. In any case, it is likely that once someone has a copyright interest in a work, they retain that interest in adaptations or derivatives of the work until their interest expires due to the passage of time. No amount of incremental changes to the codebase will extinguish that interest.

Moreover, if you're using content under a free licence, you also very likely have a licence obligation to preserve these notices: your right to make a transformative work at all is conditional on (inter alia) their preservation.

Finally, the downsides of preserving all pre-existing copyright notices are very small, so I would preserve them as a matter of course.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.