Skip to content

Commit

Permalink
Remove redundant array creation for calling varargs method
Browse files Browse the repository at this point in the history
  • Loading branch information
oscr authored and snicoll committed Dec 14, 2016
1 parent e002e03 commit 38713c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public EndpointHandlerMappingCustomizer mappingCustomizer() {

@Override
public void customize(EndpointHandlerMapping mapping) {
mapping.setInterceptors(new Object[] { interceptor() });
mapping.setInterceptors(interceptor());
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ public EndpointHandlerMappingCustomizer mappingCustomizer() {

@Override
public void customize(EndpointHandlerMapping mapping) {
mapping.setInterceptors(new Object[] { interceptor() });
mapping.setInterceptors(interceptor());
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static class SpringBootHypermediaApplication {

public static void main(String[] args) {
SpringApplication.run(SpringBootHypermediaApplication.class,
new String[] { "--endpoints.hypermedia.enabled=false" });
"--endpoints.hypermedia.enabled=false");
}

}
Expand Down

0 comments on commit 38713c4

Please sign in to comment.