Coding standards

From DarkWiki
Revision as of 12:53, 28 May 2019 by Apowney (talk | contribs) (Object properties)
Jump to: navigation, search

Object properties

Getters

Do not throw exceptions. A getter should provide access to the field, and should not result in an exception. There are occasions when this rule can be relaxed (such as indeterminable exceptions like OutOfMemoryException), but things like NullPointerExceptions should not occur.

  • Must be repeatable*.