Merge pull request #736 from DevFactory/staging/make-public-static-fields-constant-fix-1

Updating "public static" fields to add final modifier
This commit is contained in:
Rob Bygrave
2016-06-15 20:46:37 +12:00
committed by GitHub
5 changed files with 7 additions and 7 deletions
@@ -10,7 +10,7 @@ public class CacheOptions {
/**
* Instance when no caching is used.
*/
public static CacheOptions NO_CACHING = new CacheOptions();
public static final CacheOptions NO_CACHING = new CacheOptions();
private final boolean enableBeanCache;
private final boolean enableQueryCache;
@@ -10,7 +10,7 @@ import java.util.UUID;
*/
public class UuidIdGenerator implements PlatformIdGenerator {
public static UuidIdGenerator INSTANCE = new UuidIdGenerator();
public static final UuidIdGenerator INSTANCE = new UuidIdGenerator();
/**
* Return UUID from UUID.randomUUID();
@@ -12,9 +12,9 @@ import java.util.concurrent.atomic.AtomicLong;
public class MyEBasicConfigStartup implements ServerConfigStartup {
public static AtomicLong insertCount = new AtomicLong();
public static AtomicLong updateCount = new AtomicLong();
public static AtomicLong deleteCount = new AtomicLong();
public static final AtomicLong insertCount = new AtomicLong();
public static final AtomicLong updateCount = new AtomicLong();
public static final AtomicLong deleteCount = new AtomicLong();
public static void resetCounters() {
insertCount.set(0);
@@ -10,7 +10,7 @@ import java.util.List;
@Entity
public class InfoCompany extends Model {
public static Finder<Long,InfoCompany> find = new Finder<Long,InfoCompany>(InfoCompany.class);
public static final Finder<Long,InfoCompany> find = new Finder<Long,InfoCompany>(InfoCompany.class);
@Id
Long id;
@@ -11,7 +11,7 @@ import javax.persistence.Version;
@Entity
public class InfoCustomer extends Model {
public static Finder<Long,InfoCustomer> find = new Finder<Long,InfoCustomer>(InfoCustomer.class);
public static final Finder<Long,InfoCustomer> find = new Finder<Long,InfoCustomer>(InfoCustomer.class);
@Id
Long id;