LWJGL / lwjgl3-demos

Demo suite for LWJGL 3
BSD 3-Clause "New" or "Revised" License
351 stars 89 forks source link

Cleanup #23

Closed TheMrMilchmann closed 6 years ago

TheMrMilchmann commented 6 years ago

Several cleanups to unify the code style in this project. (If this is too much or contains unwanted changes feel free to cherry pick individual commits or request changes.)

This PR:

  1. updates the license location in all existing license headers. (http://lwjgl.org/license.php -> https://www.lwjgl.org/license),
  2. changes all files to use \n (LF) instead of \r\n (CRLF) (Currently, this is inconsistent throughout the project),
  3. changes all files to use spaces instead of tabs (Currently this is inconsistent throught the project),
  4. adds missing copyright headers, and
  5. reverts 6960e72.

About 4: This was done in a separate commit to make it easier to undo in case some of these files did not have a license header on purpose.

About 5: While the original commit message implies that this fixed an NPE, this should never return null. If it did at some point (or still does) this was (or is) a bug in LWJGL's string decoding and the issue shouldn't be silently ignored.