From 5819e469452cdad43026eddc5b446f1d96f77739 Mon Sep 17 00:00:00 2001 From: Max Gerlings <124243961+gerlingsm@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:47:36 +0200 Subject: [PATCH] Negated checks for String checking and remove unnecessary question marks --- Kitodo/src/main/java/org/kitodo/production/ldap/LdapUser.java | 4 ++-- Kitodo/src/main/resources/messages/messages_en.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Kitodo/src/main/java/org/kitodo/production/ldap/LdapUser.java b/Kitodo/src/main/java/org/kitodo/production/ldap/LdapUser.java index a9aad2e65dd..fc6a9f348c9 100644 --- a/Kitodo/src/main/java/org/kitodo/production/ldap/LdapUser.java +++ b/Kitodo/src/main/java/org/kitodo/production/ldap/LdapUser.java @@ -279,7 +279,7 @@ public static String toHexString(byte[] bytes) { @Override public Attributes getAttributes(String name) throws NamingException { - if (StringUtils.isBlank(name)) { + if (StringUtils.isNotBlank(name)) { throw new NameNotFoundException(); } return (Attributes) this.attributes.clone(); @@ -292,7 +292,7 @@ public Attributes getAttributes(Name name) throws NamingException { @Override public Attributes getAttributes(String name, String[] ids) throws NamingException { - if (StringUtils.isBlank(name)) { + if (StringUtils.isNotBlank(name)) { throw new NameNotFoundException(); } diff --git a/Kitodo/src/main/resources/messages/messages_en.properties b/Kitodo/src/main/resources/messages/messages_en.properties index 9d4db78f416..28c7ee6dc74 100644 --- a/Kitodo/src/main/resources/messages/messages_en.properties +++ b/Kitodo/src/main/resources/messages/messages_en.properties @@ -680,7 +680,7 @@ lastPage=Last page lastUpdatedBy=Last updated by later=Please try again in a few minutes. ldapKonfigurationSchreiben=Write LDAP configuration -ldapWritten=LDAP configuration successfully written for user\: ???? +ldapWritten=LDAP configuration successfully written for user\: # ldapgroupSaving is used in ldapgroupEdit.xhtml - line 39 ldapGroupSaving=Saving LDAP group... ldapGroup=LDAP group