Skip to content

Commit

Permalink
Placate javac and its inferior type inferencing
Browse files Browse the repository at this point in the history
The Eclipse compiler is perfectly happy with the original code, but
javac is not. This commit adds some explicit typing to keep javac
happy.
  • Loading branch information
wilkinsona committed Feb 24, 2016
1 parent 0e43f42 commit d3fc0a4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,14 @@ public void testDisabledPlugins() throws Exception {
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
Expand Down

0 comments on commit d3fc0a4

Please sign in to comment.