diff --git a/stroom-core-client/src/main/java/stroom/security/client/presenter/DocumentUserPermissionsListPresenter.java b/stroom-core-client/src/main/java/stroom/security/client/presenter/DocumentUserPermissionsListPresenter.java index 324f25d162..d1d51429da 100644 --- a/stroom-core-client/src/main/java/stroom/security/client/presenter/DocumentUserPermissionsListPresenter.java +++ b/stroom-core-client/src/main/java/stroom/security/client/presenter/DocumentUserPermissionsListPresenter.java @@ -228,12 +228,13 @@ private void setupColumns(final DocumentTypes documentTypes) { // Effective Permission dataGrid.addColumn( - DataGridUtil.textColumnBuilder((DocumentUserPermissions row) -> { - final DocumentPermission explicit = row.getPermission(); - final DocumentPermission inherited = row.getInheritedPermission(); - return GwtNullSafe.get(DocumentPermission.highest(explicit, inherited), - DocumentPermission::getDisplayValue); - }) + DataGridUtil.textColumnBuilder( + (DocumentUserPermissions row) -> { + final DocumentPermission explicit = row.getPermission(); + final DocumentPermission inherited = row.getInheritedPermission(); + return GwtNullSafe.get(DocumentPermission.highest(explicit, inherited), + DocumentPermission::getDisplayValue); + }) .withSorting(DocumentPermissionFields.FIELD_EFFECTIVE_DOC_PERMISSION) .build(), DataGridUtil.headingBuilder("Effective Permission") diff --git a/stroom-event-logging-rs/stroom-event-logging-rs-impl/src/main/java/stroom/event/logging/rs/impl/RequestInfo.java b/stroom-event-logging-rs/stroom-event-logging-rs-impl/src/main/java/stroom/event/logging/rs/impl/RequestInfo.java index ba4840dbb0..44e716d1be 100644 --- a/stroom-event-logging-rs/stroom-event-logging-rs-impl/src/main/java/stroom/event/logging/rs/impl/RequestInfo.java +++ b/stroom-event-logging-rs/stroom-event-logging-rs-impl/src/main/java/stroom/event/logging/rs/impl/RequestInfo.java @@ -160,9 +160,10 @@ private Object findBeforeOrAfterCallObj(Object resource, Object template) { Optional fetchMethodOptional = Arrays.stream(templateReadSupportingResource.getClass().getMethods()) - .filter(m -> m.getName().equals("fetch") - && m.getParameterCount() == 1 - && m.getParameters()[0].getType().isAssignableFrom(template.getClass())) + .filter(m -> + m.getName().equals("fetch") + && m.getParameterCount() == 1 + && m.getParameters()[0].getType().isAssignableFrom(template.getClass())) .findFirst(); if (fetchMethodOptional.isPresent()) { @@ -178,9 +179,10 @@ private Object findBeforeOrAfterCallObj(Object resource, Object template) { Optional findMethodOptional = Arrays.stream(findWithCriteriaSupportingResource.getClass().getMethods()) - .filter(m -> m.getName().equals("find") - && m.getParameterCount() == 1 - && m.getParameters()[0].getType().isAssignableFrom(template.getClass())) + .filter(m -> + m.getName().equals("find") + && m.getParameterCount() == 1 + && m.getParameters()[0].getType().isAssignableFrom(template.getClass())) .findFirst(); if (findMethodOptional.isPresent()) { ResultPage resultPage = findWithCriteriaSupportingResource.find(template);