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,