-
Notifications
You must be signed in to change notification settings - Fork 0
Conventions
Louis Lefevre edited this page May 31, 2020
·
1 revision
- Variables
a. Static variable declarations
b. Instance variable declarations - Static constructor
a. Static variable initialisation - Static methods
a. Other static methods
b. Static variable getters & setters - Instance constructor
b. Instance variable initialization - Instance methods
a. Other instance methods
b. Instance variable getters & setters
i. All variables must be declared private, and any final variables come first in their corresponding section.
ii. Reference variables should be declared first, and primitive variables second.
iii. Setters and getters should be ordered in the same order as they declaration.
iv. Scope of methods should limit access as much as possible.
v. Other methods should be ordered based on access modifiers, followed by workflow order.
- Using Mavens Standard Directory Layout for project structure.