Gradle plugins and scripts for publishing Java projects Maven Central
Based on Googles Style Guide
@Override
public void doSomePublicallyDelaredAction() {
} #### 2. When possible all code is ordered by accessibility.
public
protected
package
private #### 3. Public static final fields at the top.
public static final String APPLICATION_NAME = "MyApp"; #### 4. All other fields should be private and at the bottom. Create accessors methods instead.
// the last thing someone needs to know are the
// implementation fields used to implement a feature
private final CountDownLatch thresholdLatch;
private final Map<String,String> cache; #### 5. If Java allowed imports at the bottom, I would require it :)