Skip to content

Apache Lucene open-source search software

LUCENE-3161: add workaround for java5-only JDK bug

Robert Muirbd14247962d7
diff --git a/lucene/src/java/org/apache/lucene/util/Version.java b/lucene/src/java/org/apache/lucene/util/Version.java
index 968148e7126..204188ab9ac 100644
--- a/lucene/src/java/org/apache/lucene/util/Version.java
+++ b/lucene/src/java/org/apache/lucene/util/Version.java
@@ -27,6 +27,9 @@ package org.apache.lucene.util;
* change the version at search-time, but instead also adjust
* your indexing code to match, and re-index.
*/
+// remove me when java 5 is no longer supported
+// this is a workaround for a JDK bug that wrongly emits a warning.
+@SuppressWarnings("dep-ann")
public enum Version {
/**
* Match settings and bugs in Lucene's 3.0 release.