mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
"public static" fields should be constant
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user