Skip to content

Commit 411b279

Browse files
authoredJan 18, 2024
Add @SuppressWarnings("removal") to not fail the build with -Werror for some JDKs (opensearch-project#11923)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
1 parent 2f81c57 commit 411b279

File tree

44 files changed

+48
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+48
-2
lines changed
 

‎client/sniffer/src/main/java/org/opensearch/client/sniff/Sniffer.java

+1
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ public void shutdown() {
305305
}
306306
}
307307

308+
@SuppressWarnings("removal")
308309
static class SnifferThreadFactory implements ThreadFactory {
309310
private final AtomicInteger threadNumber = new AtomicInteger(1);
310311
private final String namePrefix;

‎libs/common/src/test/java/org/opensearch/common/annotation/processor/CompilerSupport.java

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ default CompilerResult compile(String name, String... names) {
4343
return compileWithPackage(ApiAnnotationProcessorTests.class.getPackageName(), name, names);
4444
}
4545

46+
@SuppressWarnings("removal")
4647
default CompilerResult compileWithPackage(String pck, String name, String... names) {
4748
final JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
4849
final DiagnosticCollector<JavaFileObject> collector = new DiagnosticCollector<>();

0 commit comments

Comments
 (0)
Please sign in to comment.