Skip to content

Apache Lucene open-source search software

Suppressing "automatic module" warning for benchmark-jmh (#13997)

Viswanath Kuchibhotlaa0e1eeefebf1
diff --git a/lucene/benchmark-jmh/src/java/module-info.java b/lucene/benchmark-jmh/src/java/module-info.java
index d92164cfae1..019e08abce1 100644
--- a/lucene/benchmark-jmh/src/java/module-info.java
+++ b/lucene/benchmark-jmh/src/java/module-info.java
@@ -16,6 +16,9 @@
*/
/** Lucene JMH benchmarks. */
+
+// jmh.core is not modularized and causes a warning. Suppressing it until it is modularized.
+@SuppressWarnings("requires-automatic")
module org.apache.lucene.benchmark.jmh {
requires jmh.core;
requires jdk.unsupported;