Skip to content
Andreas Rosdal edited this page Feb 8, 2019 · 4 revisions

Code Conventions

  • The Java code in OpenPDF should be indented with 4 spaces.

Suggestions

Write down your suggestion in it's own section. If you agree with one of the conventions, put some "+1" in the existing section.

asturio

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)

Clone this wiki locally