From bfc66ec35606ba9a63a953c31a73bdab2b3ba303 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Fri, 5 Jul 2019 22:03:23 +0100 Subject: [PATCH] HHH-13496 Constants not declared static --- .../dialect/pagination/SQLServer2005LimitHandler.java | 2 +- .../loader/plan/build/spi/QuerySpaceTreePrinter.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/pagination/SQLServer2005LimitHandler.java b/hibernate-core/src/main/java/org/hibernate/dialect/pagination/SQLServer2005LimitHandler.java index 7241927ab7..f3f6ecec89 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/pagination/SQLServer2005LimitHandler.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/pagination/SQLServer2005LimitHandler.java @@ -32,7 +32,7 @@ public class SQLServer2005LimitHandler extends AbstractLimitHandler { private static final String SELECT_DISTINCT = SELECT + " " + DISTINCT; private static final String SELECT_DISTINCT_SPACE = SELECT_DISTINCT + " "; - final String SELECT_SPACE = "select "; + private static final String SELECT_SPACE = "select "; private static final Pattern SELECT_DISTINCT_PATTERN = buildShallowIndexPattern( SELECT_DISTINCT_SPACE, true ); private static final Pattern SELECT_PATTERN = buildShallowIndexPattern( SELECT + "(.*)", true ); diff --git a/hibernate-core/src/main/java/org/hibernate/loader/plan/build/spi/QuerySpaceTreePrinter.java b/hibernate-core/src/main/java/org/hibernate/loader/plan/build/spi/QuerySpaceTreePrinter.java index 5f0038515d..22b3949708 100644 --- a/hibernate-core/src/main/java/org/hibernate/loader/plan/build/spi/QuerySpaceTreePrinter.java +++ b/hibernate-core/src/main/java/org/hibernate/loader/plan/build/spi/QuerySpaceTreePrinter.java @@ -35,6 +35,8 @@ public class QuerySpaceTreePrinter { */ public static final QuerySpaceTreePrinter INSTANCE = new QuerySpaceTreePrinter(); + private static final int detailDepthOffset = 1; + private QuerySpaceTreePrinter() { } @@ -146,8 +148,6 @@ public class QuerySpaceTreePrinter { writeJoins( querySpace.getJoins(), depth + 1, aliasResolutionContext, printWriter ); } - final int detailDepthOffset = 1; - private void generateDetailLines( QuerySpace querySpace, int depth,