When I commit a java source file to GitHub and create a pull request, it shows the whole file as a diff. When "Hide whitespace changes" is selected on the diff screen, the problem is solved.
Could this be related to file encoding? notepad++ shows ANSI for the same file in both branches. BeyondCompare shows only changed lines as diff, unlike Github.
As a more general question, do .java files contain an encoding header? Is there a single specific encoding assigned to each file?
Thanks.