Let's say I'm doing this application where I include some class I found on the web with the BSD License attached. I know that this license allows me to modify the code and I have the need for it.
Now, the BSD license states the year and the copyright holder name, let's say we are talking about some piece of code written by John Doe.
1) If I release my whole application source code with the my modifications to John Doe's class which copy of the BSD License should I attach to class source code file? The one with my own year and name, the one with John Doe's year and name Both?
Or maybe the one with my name and year since that specific code revision was by me but also leave a copyright notice saying that the original code is copyrighted by John Doe? This one seems the right choice, is it?
2) Now let's imagine that I don't want to use the BSD License for the rest of my application (I know I have to use it at least for the John Doe's class modification) and instead, I want to use the MIT License.
If we are talking about source code files as above, I think it's pretty easy, I just attach the MIT License to all code files completely written by me and as for John Doe's modified class, I just use the proper BSD License as per the right answer to #1 from you guys.
However, it's always nice to attach the licenses in text files (LICENSE.txt for instance) too when distributing the packaged source code. Should I attach two license text files or what would you guys suggest?