-
Notifications
You must be signed in to change notification settings - Fork 657
Coding Convention
Andreas Rosdal edited this page Feb 8, 2019
·
4 revisions
- The Java code in OpenPDF should be indented with 4 spaces.
Write down your suggestion in it's own section. If you agree with one of the conventions, put some "+1" in the existing section.
I would recommend using this Code Convention from Sun:
http://www.oracle.com/technetwork/java/codeconventions-150003.pdf
This convention is well covered from the default settings in IntelliJ and Eclipse.
The only exception for the conventions would be line length. I recommend 120 characters per line.
File Encoding: UTF-8 (ASCII is a subset of it, so there should be no Problem with existing code)