From 915d95bca16b6513748dae31e023c7f1da502b71 Mon Sep 17 00:00:00 2001 From: javanna Date: Tue, 5 Dec 2017 22:17:35 +0100 Subject: [PATCH] fix line length Original commit: elastic/x-pack-elasticsearch@c2e67e68bd525d5e7dca262dfaf41b601fc0d63e --- .../xpack/security/audit/AuditTrailService.java | 6 ++++-- .../xpack/security/authz/AuthorizationServiceTests.java | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/security/audit/AuditTrailService.java b/plugin/src/main/java/org/elasticsearch/xpack/security/audit/AuditTrailService.java index 51f96b7bba6..48feeaccb26 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/security/audit/AuditTrailService.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/security/audit/AuditTrailService.java @@ -132,7 +132,8 @@ public class AuditTrailService extends AbstractComponent implements AuditTrail { } @Override - public void accessGranted(User user, String action, TransportMessage message, String[] roleNames, @Nullable Set specificIndices) { + public void accessGranted(User user, String action, TransportMessage message, String[] roleNames, + @Nullable Set specificIndices) { if (licenseState.isAuditingAllowed()) { for (AuditTrail auditTrail : auditTrails) { auditTrail.accessGranted(user, action, message, roleNames, specificIndices); @@ -141,7 +142,8 @@ public class AuditTrailService extends AbstractComponent implements AuditTrail { } @Override - public void accessDenied(User user, String action, TransportMessage message, String[] roleNames, @Nullable Set specificIndices) { + public void accessDenied(User user, String action, TransportMessage message, String[] roleNames, + @Nullable Set specificIndices) { if (licenseState.isAuditingAllowed()) { for (AuditTrail auditTrail : auditTrails) { auditTrail.accessDenied(user, action, message, roleNames, specificIndices); diff --git a/plugin/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceTests.java b/plugin/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceTests.java index d750a9e8921..56fc079a64f 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceTests.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/security/authz/AuthorizationServiceTests.java @@ -245,7 +245,8 @@ public class AuthorizationServiceTests extends ESTestCase { assertThrowsAuthorizationException( () -> authorize(createAuthentication(SystemUser.INSTANCE), "cluster:admin/whatever", request), "cluster:admin/whatever", SystemUser.INSTANCE.principal()); - verify(auditTrail).accessDenied(SystemUser.INSTANCE, "cluster:admin/whatever", request, new String[] { SystemUser.ROLE_NAME }, null); + verify(auditTrail).accessDenied(SystemUser.INSTANCE, "cluster:admin/whatever", request, new String[] { SystemUser.ROLE_NAME }, + null); verifyNoMoreInteractions(auditTrail); }