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 );
public static StrategyCreator STANDARD_STRATEGY_CREATOR = strategyClass -> {
public static final StrategyCreator STANDARD_STRATEGY_CREATOR = strategyClass -> {
try {
return strategyClass.newInstance();
}

View File

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

View File

@ -26,7 +26,7 @@ public class ParameterizedFunctionExpression<X>
extends BasicFunctionExpression<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
"CONCAT",
"SUBSTRING",

View File

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

View File

@ -677,7 +677,7 @@ public final class Template {
).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
public String resolveTableAlias(String columnReference) {
return TEMPLATE;