Placate javac and its inferior type inferencing
The Eclipse compiler is perfectly happy with the original code, but javac is not. This commit adds some explicit typing to keep javac happy.
This commit is contained in:
@@ -86,11 +86,14 @@ public class CrshAutoConfigurationTests {
|
||||
PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
|
||||
assertThat(lifeCycle).isNotNull();
|
||||
assertThat(lifeCycle.getContext().getPlugins(TermIOHandler.class))
|
||||
.filteredOn(Matched.when(isA(ProcessorIOHandler.class))).isEmpty();
|
||||
.filteredOn(Matched.<TermIOHandler>when(isA(ProcessorIOHandler.class)))
|
||||
.isEmpty();
|
||||
assertThat(lifeCycle.getContext().getPlugins(AuthenticationPlugin.class))
|
||||
.filteredOn(Matched.when(isA(JaasAuthenticationPlugin.class))).isEmpty();
|
||||
.filteredOn(Matched
|
||||
.<AuthenticationPlugin>when(isA(JaasAuthenticationPlugin.class)))
|
||||
.isEmpty();
|
||||
assertThat(lifeCycle.getContext().getPlugins(Language.class))
|
||||
.filteredOn(Matched.when(isA(JavaLanguage.class))).isEmpty();
|
||||
.filteredOn(Matched.<Language>when(isA(JavaLanguage.class))).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user