Commit d3fc0a47 authored by Andy Wilkinson's avatar Andy Wilkinson

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.
parent 0e43f420
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment