HHH-13496 Some missing 'final' modifiers on constants

This commit is contained in:
Sanne Grinovero 2019-07-08 21:07:06 +01:00
parent f042f8b553
commit 09cc94c4d9
5 changed files with 6 additions and 5 deletions

View File

@ -31,7 +31,7 @@ public class StrategySelectorImpl implements StrategySelector {
private static final Logger log = Logger.getLogger( StrategySelectorImpl.class ); private static final Logger log = Logger.getLogger( StrategySelectorImpl.class );
public static StrategyCreator STANDARD_STRATEGY_CREATOR = strategyClass -> { public static final StrategyCreator STANDARD_STRATEGY_CREATOR = strategyClass -> {
try { try {
return strategyClass.newInstance(); return strategyClass.newInstance();
} }

View File

@ -12,7 +12,8 @@ import java.util.Comparator;
* @author Gail Badner * @author Gail Badner
*/ */
public final class RowVersionComparator implements Comparator<byte[]> { public final class RowVersionComparator implements Comparator<byte[]> {
public static RowVersionComparator INSTANCE = new RowVersionComparator();
public static final RowVersionComparator INSTANCE = new RowVersionComparator();
private RowVersionComparator() { private RowVersionComparator() {
} }

View File

@ -26,7 +26,7 @@ public class ParameterizedFunctionExpression<X>
extends BasicFunctionExpression<X> extends BasicFunctionExpression<X>
implements FunctionExpression<X> { implements FunctionExpression<X> {
public static List<String> STANDARD_JPA_FUNCTION_NAMES = Arrays.asList( public static final List<String> STANDARD_JPA_FUNCTION_NAMES = Arrays.asList(
// 4.6.17.2.1 // 4.6.17.2.1
"CONCAT", "CONCAT",
"SUBSTRING", "SUBSTRING",

View File

@ -47,7 +47,7 @@ public final class StandardServiceInitiators {
private StandardServiceInitiators() { private StandardServiceInitiators() {
} }
public static List<StandardServiceInitiator> LIST = buildStandardServiceInitiatorList(); public static final List<StandardServiceInitiator> LIST = buildStandardServiceInitiatorList();
private static List<StandardServiceInitiator> buildStandardServiceInitiatorList() { private static List<StandardServiceInitiator> buildStandardServiceInitiatorList() {
final ArrayList<StandardServiceInitiator> serviceInitiators = new ArrayList<StandardServiceInitiator>(); final ArrayList<StandardServiceInitiator> serviceInitiators = new ArrayList<StandardServiceInitiator>();

View File

@ -677,7 +677,7 @@ public final class Template {
).injectAliases( LEGACY_ORDER_BY_ALIAS_RESOLVER ); ).injectAliases( LEGACY_ORDER_BY_ALIAS_RESOLVER );
} }
public static OrderByAliasResolver LEGACY_ORDER_BY_ALIAS_RESOLVER = new OrderByAliasResolver() { public static final OrderByAliasResolver LEGACY_ORDER_BY_ALIAS_RESOLVER = new OrderByAliasResolver() {
@Override @Override
public String resolveTableAlias(String columnReference) { public String resolveTableAlias(String columnReference) {
return TEMPLATE; return TEMPLATE;