You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ji...@apache.org on 2026/10/01 08:03:17 UTC
(lucene) branch branch_10x updated: Keep ecj happy with the ignored exception
This is an automated email from the ASF dual-hosted git repository.
jimczi pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_10x by this push:
new 10349bce5aa Keep ecj happy with the ignored exception
10349bce5aa is described below
commit 10349bce5aab23cc55ca2b4ddfc1f79d11b47904
Author: Jim Ferenczi <ji...@elastic.co>
AuthorDate: Thu Oct 1 10:03:02 2026 +0200
Keep ecj happy with the ignored exception
ecj fails an unused exception parameter, and an unnamed one needs a
newer Java than this branch is on.
---
.../org/apache/lucene/codecs/lucene99/Lucene99FlatVectorsReader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99FlatVectorsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99FlatVectorsReader.java
index ed365a1144c..134e43bf817 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99FlatVectorsReader.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99FlatVectorsReader.java
@@ -247,7 +247,7 @@ public final class Lucene99FlatVectorsReader extends FlatVectorsReader {
FileDataHint.KNN_VECTORS,
DataAccessHint.SEQUENTIAL,
NoReuseHint.INSTANCE));
- } catch (FileNotFoundException | NoSuchFileException e) {
+ } catch (@SuppressWarnings("unused") FileNotFoundException | NoSuchFileException e) {
// an open reader outlives its files, so fall back to the mapping it already holds
mergeVectorData = vectorData;
}