diff options
author | Ryan D. Brooks | 2015-09-28 18:49:18 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2015-09-28 18:49:18 +0000 |
commit | 071fcbc5cca4e22e650bb459701f5fc9be701013 (patch) | |
tree | ac629d866ecfea675bc4e134c68315440282d560 /plugins/org.eclipse.osee.authorization.admin.test/src | |
parent | b4f6f62b0d3af365b67a3786dbb24c97fa638536 (diff) | |
download | org.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.tar.gz org.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.tar.xz org.eclipse.osee-071fcbc5cca4e22e650bb459701f5fc9be701013.zip |
refactor: Use type inference when invoking a generic constructor
Change-Id: I5afeb235038dcf1dd0496930d15d6b42aeb46fec
Diffstat (limited to 'plugins/org.eclipse.osee.authorization.admin.test/src')
2 files changed, 9 insertions, 9 deletions
diff --git a/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationAdminImplTest.java b/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationAdminImplTest.java index cb0af22089c..318ddb08058 100644 --- a/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationAdminImplTest.java +++ b/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationAdminImplTest.java @@ -149,7 +149,7 @@ public class AuthorizationAdminImplTest { public void testAuthorizeExceptionProviderReturnsNull() { admin.addAuthorizationProvider(provider1); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_OVERRIDE, AuthorizationOverride.NONE); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, SCHEME_1); admin.update(properties); @@ -174,7 +174,7 @@ public class AuthorizationAdminImplTest { public void testAuthorizeExceptionProviderWasNull() { Date date = new Date(); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_OVERRIDE, AuthorizationOverride.NONE); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, SCHEME_1); admin.update(properties); @@ -198,7 +198,7 @@ public class AuthorizationAdminImplTest { Date date = new Date(); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_OVERRIDE, AuthorizationOverride.NONE); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, SCHEME_1); admin.update(properties); @@ -235,7 +235,7 @@ public class AuthorizationAdminImplTest { iterator = admin.getAllowedSchemes().iterator(); assertEquals(false, iterator.hasNext()); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, SCHEME_1); admin.update(properties); @@ -262,7 +262,7 @@ public class AuthorizationAdminImplTest { actual = admin.isSchemeAllowed(SCHEME_2); assertEquals(false, actual); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, SCHEME_1); admin.update(properties); @@ -290,7 +290,7 @@ public class AuthorizationAdminImplTest { assertEquals(DEFAULT_SCHEME, iterator.next()); assertEquals(false, iterator.hasNext()); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); admin.update(properties); iterator = admin.getAvailableSchemes().iterator(); @@ -310,7 +310,7 @@ public class AuthorizationAdminImplTest { public void testAuthorizeWithDefault() { Date date = new Date(); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, DEFAULT_SCHEME); admin.update(properties); @@ -340,7 +340,7 @@ public class AuthorizationAdminImplTest { Date date = new Date(); - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_OVERRIDE, AuthorizationOverride.NONE); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, SCHEME_1); admin.update(properties); diff --git a/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationConfigurationBuilderTest.java b/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationConfigurationBuilderTest.java index 39b0419f9a5..5da7222a1df 100644 --- a/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationConfigurationBuilderTest.java +++ b/plugins/org.eclipse.osee.authorization.admin.test/src/org/eclipse/osee/authorization/admin/internal/AuthorizationConfigurationBuilderTest.java @@ -69,7 +69,7 @@ public class AuthorizationConfigurationBuilderTest { @Test public void testConfigProperties() { - Map<String, Object> properties = new HashMap<String, Object>(); + Map<String, Object> properties = new HashMap<>(); properties.put(AuthorizationConstants.AUTHORIZATION_OVERRIDE, AuthorizationOverride.DENY_ALL); properties.put(AuthorizationConstants.AUTHORIZATION_SCHEME_ALLOWED, SCHEME_2); builder.properties(properties); |