From 01e2e998cc5c4710bc68409c5f2927a116efbb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Chicchiricc=C3=B2?= Date: Fri, 12 Jan 2024 14:28:05 +0100 Subject: [PATCH] Checkstyle --- .../net/tirasa/connid/bundles/ldap/LdapConfiguration.java | 2 +- .../net/tirasa/connid/bundles/ldap/search/LdapSearch.java | 1 - .../tirasa/connid/bundles/ldap/modify/LdapCreateTests.java | 1 - .../tirasa/connid/bundles/ldap/search/LdapSearchTests.java | 7 ++++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/tirasa/connid/bundles/ldap/LdapConfiguration.java b/src/main/java/net/tirasa/connid/bundles/ldap/LdapConfiguration.java index d5d3ea9..82b06bd 100644 --- a/src/main/java/net/tirasa/connid/bundles/ldap/LdapConfiguration.java +++ b/src/main/java/net/tirasa/connid/bundles/ldap/LdapConfiguration.java @@ -246,7 +246,7 @@ public enum SearchScope { false, CollectionUtil.newList("cn")); private final ObjectClassMappingConfig anyObjectConfig = new ObjectClassMappingConfig( - LdapSchemaMapping.ANY_OBJECT_CLASS, + LdapSchemaMapping.ANY_OBJECT_CLASS, CollectionUtil.newList("top"), false, CollectionUtil.newList(DEFAULT_ID_ATTRIBUTE)); diff --git a/src/main/java/net/tirasa/connid/bundles/ldap/search/LdapSearch.java b/src/main/java/net/tirasa/connid/bundles/ldap/search/LdapSearch.java index 6de4ab8..795bccc 100644 --- a/src/main/java/net/tirasa/connid/bundles/ldap/search/LdapSearch.java +++ b/src/main/java/net/tirasa/connid/bundles/ldap/search/LdapSearch.java @@ -40,7 +40,6 @@ import net.tirasa.connid.bundles.ldap.commons.LdapEntry; import net.tirasa.connid.bundles.ldap.commons.LdapUtil; import net.tirasa.connid.bundles.ldap.commons.StatusManagement; -import net.tirasa.connid.bundles.ldap.schema.LdapSchemaMapping; import org.identityconnectors.common.CollectionUtil; import org.identityconnectors.common.StringUtil; import org.identityconnectors.common.logging.Log; diff --git a/src/test/java/net/tirasa/connid/bundles/ldap/modify/LdapCreateTests.java b/src/test/java/net/tirasa/connid/bundles/ldap/modify/LdapCreateTests.java index 8671d2d..64951bf 100644 --- a/src/test/java/net/tirasa/connid/bundles/ldap/modify/LdapCreateTests.java +++ b/src/test/java/net/tirasa/connid/bundles/ldap/modify/LdapCreateTests.java @@ -239,7 +239,6 @@ private void doCreateDevice(ConnectorFacade facade) { } - @Test public void createBinaryAttributes() throws IOException { ConnectorFacade facade = newFacade(); diff --git a/src/test/java/net/tirasa/connid/bundles/ldap/search/LdapSearchTests.java b/src/test/java/net/tirasa/connid/bundles/ldap/search/LdapSearchTests.java index 922a972..f9139d1 100644 --- a/src/test/java/net/tirasa/connid/bundles/ldap/search/LdapSearchTests.java +++ b/src/test/java/net/tirasa/connid/bundles/ldap/search/LdapSearchTests.java @@ -416,7 +416,7 @@ public void configurableGroupScope() { @Test public void configurableAnyObjectScope() { LdapConfiguration configuration = newConfiguration(); - configuration.setAnyObjectSearchScope("object"); + configuration.setAnyObjectSearchScope("object"); configuration.setAnyObjectClasses("top", "organization"); ConnectorFacade facade = newFacade(configuration); @@ -435,7 +435,8 @@ public void configurableAnyObjectScope() { facade = newFacade(configuration); // We can get the 'carrot laptop' device with an 'object' search by DN - ConnectorObject carrotLaptop = searchByAttribute(facade, LdapSchemaMapping.ANY_OBJECT_CLASS, new Name(CARROT_LAPTOP_DN)); + ConnectorObject carrotLaptop = searchByAttribute( + facade, LdapSchemaMapping.ANY_OBJECT_CLASS, new Name(CARROT_LAPTOP_DN)); assertNotNull(carrotLaptop); // Reconfigure for 'onelevel' search @@ -554,7 +555,7 @@ public void anyObjectSearchFilter() { // Find an organization to pass in OP_CONTAINER. ObjectClass oclass = new ObjectClass("organization"); ConnectorObject organization = searchByAttribute(facade, oclass, new Name(ACME_DN)); - + OperationOptionsBuilder optionsBuilder = new OperationOptionsBuilder(); optionsBuilder.setScope(OperationOptions.SCOPE_SUBTREE); optionsBuilder.setContainer(new QualifiedUid(oclass, organization.getUid()));