From c1f11fbb8160666950ae33faa2c219d612d6c309 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 14 Nov 2011 15:46:04 +0000 Subject: [PATCH] LUCENE-3574: Small fix: use the ident() hack to prevent inlining the constant into foreign class files git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1201758 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/util/Constants.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lucene/src/java/org/apache/lucene/util/Constants.java b/lucene/src/java/org/apache/lucene/util/Constants.java index 814ad430ad4..f1723947263 100644 --- a/lucene/src/java/org/apache/lucene/util/Constants.java +++ b/lucene/src/java/org/apache/lucene/util/Constants.java @@ -46,7 +46,8 @@ public final class Constants { /** @deprecated With Lucene 4.0, we are always on Java 6 */ @Deprecated - public static final boolean JRE_IS_MINIMUM_JAVA6 = true; + public static final boolean JRE_IS_MINIMUM_JAVA6 = + new Boolean(true).booleanValue(); // prevent inlining in foreign class files public static final boolean JRE_IS_64BIT; public static final boolean JRE_IS_MINIMUM_JAVA7;