DATACMNS-648 - Parameters now holds a non-static ParameterNameDiscoverer.
Turned the previously static ParameterNameDiscoverer into an instance variable to make sure the instance can be GCed correctly.
This commit is contained in:
@@ -45,8 +45,8 @@ public abstract class Parameters<S extends Parameters<S, T>, T extends Parameter
|
||||
private static final String ALL_OR_NOTHING = String.format("Either use @%s "
|
||||
+ "on all parameters except %s and %s typed once, or none at all!", Param.class.getSimpleName(),
|
||||
Pageable.class.getSimpleName(), Sort.class.getSimpleName());
|
||||
private static final ParameterNameDiscoverer PARAMETER_DISCOVERER = new DefaultParameterNameDiscoverer();
|
||||
|
||||
private final ParameterNameDiscoverer PARAMETER_DISCOVERER = new DefaultParameterNameDiscoverer();
|
||||
private final int pageableIndex;
|
||||
private final int sortIndex;
|
||||
private final List<T> parameters;
|
||||
|
||||
Reference in New Issue
Block a user