Skip to content

Commit

Permalink
Java7 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
elandau committed May 19, 2017
1 parent 8cb3d49 commit c85a055
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ public void init() throws Exception {
// admin page template resources
AdminResourcesFilter arfTemplatesResources = adminResourceInjector.getInstance(AdminResourcesFilter.class);
Map<String, Object> props = new HashMap<>(adminContainerConfig.getJerseyConfigProperties());
props.compute(
PackagesResourceConfig.PROPERTY_PACKAGES,
(key, current) -> adminContainerConfig.jerseyViewableResourcePkgList() + ";" + Objects.toString(current, ""));
props.put(PackagesResourceConfig.PROPERTY_PACKAGES,
adminContainerConfig.jerseyViewableResourcePkgList() + ";" +
Objects.toString(props.get(PackagesResourceConfig.PROPERTY_PACKAGES)));
arfTemplatesResources.setProperties(props);

logger.info("Admin templates context : {}", adminContainerConfig.templateResourceContext());
Expand All @@ -162,9 +162,9 @@ public void init() throws Exception {
// admin page data resources
AdminResourcesFilter arfDataResources = adminResourceInjector.getInstance(AdminResourcesFilter.class);
props = new HashMap<>(adminContainerConfig.getJerseyConfigProperties());
props.compute(
PackagesResourceConfig.PROPERTY_PACKAGES,
(key, current) -> appendCoreJerseyPackages(adminPageRegistry.buildJerseyResourcePkgListForAdminPages() + ";" + Objects.toString(current, "")));
props.put(PackagesResourceConfig.PROPERTY_PACKAGES,
appendCoreJerseyPackages(adminPageRegistry.buildJerseyResourcePkgListForAdminPages()) + ";" +
Objects.toString(props.get(PackagesResourceConfig.PROPERTY_PACKAGES)));
arfDataResources.setProperties(props);

logger.info("Admin resources context : {}", adminContainerConfig.ajaxDataResourceContext());
Expand Down

0 comments on commit c85a055

Please sign in to comment.