From 7793f8ddae921f6af215df7204828a23b416995e Mon Sep 17 00:00:00 2001 From: zhouhui Date: Thu, 14 Mar 2024 16:52:04 +0800 Subject: [PATCH] Suppress Warnings. --- lucene/core/src/java/org/apache/lucene/util/Constants.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/util/Constants.java b/lucene/core/src/java/org/apache/lucene/util/Constants.java index 45c58e4a8f7..81c455c32ea 100644 --- a/lucene/core/src/java/org/apache/lucene/util/Constants.java +++ b/lucene/core/src/java/org/apache/lucene/util/Constants.java @@ -112,7 +112,9 @@ public final class Constants { if (Float.parseFloat(s[1]) >= version) { return true; } - } catch (NumberFormatException e) { + } catch ( + @SuppressWarnings("unused") + NumberFormatException e) { // False for Windows XP, etc. return false; }