Fix checkstyle errors with @Deprecated

This commit is contained in:
Daniel Garnier-Moiroux
2024-08-13 15:22:36 +02:00
committed by Marcus Hert Da Coregio
parent 79fb0113c8
commit b92ed92548
3 changed files with 1 additions and 2 deletions

View File

@@ -97,7 +97,6 @@ public final class LdapUtils {
/**
* Gets the full dn of a name by prepending the name of the context it is relative to.
* If the name already contains the base name, it is returned unaltered.
* @deprecated Use {@link #getFullDn(LdapName, Context)}
*/
public static DistinguishedName getFullDn(DistinguishedName dn, Context baseCtx) throws NamingException {
DistinguishedName baseDn = new DistinguishedName(baseCtx.getNameInNamespace());

View File

@@ -286,6 +286,7 @@ public class LdapUserDetailsManager implements UserDetailsManager {
* @return the DN of the corresponding group, including the groupSearchBase
* @deprecated
*/
@Deprecated
protected DistinguishedName buildGroupDn(String group) {
DistinguishedName dn = new DistinguishedName(this.groupSearchBase);
dn.add(this.groupRoleAttributeName, group.toLowerCase());