Skip to content

Commit

Permalink
Merge pull request spring-projects#7551 from oscr:redundant-array-test
Browse files Browse the repository at this point in the history
* pr/7551:
  Remove redundant array creation for calling varargs method
  • Loading branch information
snicoll committed Dec 14, 2016
2 parents e002e03 + 38713c4 commit 41f29ae
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 41f29ae

Please sign in to comment.