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:
Andy Wilkinson 2016-02-24 13:12:41 +00:00
parent 0e43f4204f
commit d3fc0a4733
1 changed files with 6 additions and 3 deletions

View File

@ -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