Skip to content

Commit b9b5aae

Browse files
committed
Polishing.
Make fields final where possible. See #398
1 parent 201b957 commit b9b5aae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/main/java/org/springframework/data/keyvalue/repository/support/KeyValueRepositoryFactory.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable Key key
204204
*/
205205
private static class KeyValueQueryLookupStrategy implements QueryLookupStrategy {
206206

207-
private QueryMethodEvaluationContextProvider evaluationContextProvider;
208-
private KeyValueOperations keyValueOperations;
207+
private final QueryMethodEvaluationContextProvider evaluationContextProvider;
208+
private final KeyValueOperations keyValueOperations;
209209

210-
private Class<? extends AbstractQueryCreator<?, ?>> queryCreator;
211-
private Class<? extends RepositoryQuery> repositoryQueryType;
210+
private final Class<? extends AbstractQueryCreator<?, ?>> queryCreator;
211+
private final Class<? extends RepositoryQuery> repositoryQueryType;
212212

213213
/**
214214
* @param key

0 commit comments

Comments
 (0)