Suppress warnings in tests

This commit is contained in:
Sam Brannen
2023-05-10 14:14:39 +02:00
parent e51c71bcd6
commit 5e52259fb3
5 changed files with 14 additions and 8 deletions

View File

@@ -231,12 +231,14 @@ class CandidateComponentsIndexerTests {
assertThat(metadata.getItems()).hasSize(1);
}
@SuppressWarnings("removal")
private CandidateComponentsMetadata compile(Class<?>... types) {
CandidateComponentsIndexer processor = new CandidateComponentsIndexer();
this.compiler.getTask(types).call(processor);
return readGeneratedMetadata(this.compiler.getOutputLocation());
}
@SuppressWarnings("removal")
private CandidateComponentsMetadata compile(String... types) {
CandidateComponentsIndexer processor = new CandidateComponentsIndexer();
this.compiler.getTask(types).call(processor);