mirror of
https://github.com/traccar/traccar.git
synced 2025-01-09 04:07:38 +08:00
Refactor constructors to use delegation for null sortField
This commit is contained in:
parent
e5a029d318
commit
bc7329eb6b
@ -36,8 +36,7 @@ public class ExtendedObjectResource<T extends BaseModel> extends BaseObjectResou
|
||||
private final String sortField;
|
||||
|
||||
public ExtendedObjectResource(Class<T> baseClass) {
|
||||
super(baseClass);
|
||||
this.sortField = null;
|
||||
this(baseClass, null);
|
||||
}
|
||||
|
||||
public ExtendedObjectResource(Class<T> baseClass, String sortField) {
|
||||
|
@ -35,8 +35,7 @@ public class SimpleObjectResource<T extends BaseModel> extends BaseObjectResourc
|
||||
private final String sortField;
|
||||
|
||||
public SimpleObjectResource(Class<T> baseClass) {
|
||||
super(baseClass);
|
||||
this.sortField = null;
|
||||
this(baseClass, null);
|
||||
}
|
||||
|
||||
public SimpleObjectResource(Class<T> baseClass, String sortField) {
|
||||
|
Loading…
Reference in New Issue
Block a user