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:
Oliver Gierke
2015-06-15 18:01:42 +02:00
parent a9ab9b708b
commit 92b5a85cde

View File

@@ -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;