Skip to content

Commit 7fd89aa

Browse files
committed
Remove Deprecation Warnings
- Address usage of new Integer - Address missing deprecation markers Closes gh-793
1 parent b75f818 commit 7fd89aa

File tree

15 files changed

+51
-29
lines changed

15 files changed

+51
-29
lines changed

core/src/main/java/org/springframework/ldap/core/DistinguishedName.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
* @deprecated As of 2.0 it is recommended to use {@link javax.naming.ldap.LdapName} along
9898
* with utility methods in {@link LdapUtils} instead.
9999
*/
100+
@Deprecated
100101
public class DistinguishedName implements Name {
101102

102103
/**

core/src/main/java/org/springframework/ldap/core/LdapEntryIdentification.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public class LdapEntryIdentification {
5454
* {@link #LdapEntryIdentification(javax.naming.ldap.LdapName, javax.naming.ldap.LdapName)}
5555
* instead.
5656
*/
57+
@Deprecated
5758
public LdapEntryIdentification(DistinguishedName absoluteDn, DistinguishedName relativeDn) {
5859
Assert.notNull(absoluteDn, "Absolute DN must not be null");
5960
Assert.notNull(relativeDn, "Relative DN must not be null");
@@ -103,6 +104,7 @@ public LdapName getRelativeName() {
103104
* @deprecated {@link DistinguishedName} and associated classes and methods are
104105
* deprecated as of 2.0. use {@link #getRelativeName()} instead.
105106
*/
107+
@Deprecated
106108
public DistinguishedName getRelativeDn() {
107109
return new DistinguishedName(this.relativeDn);
108110
}
@@ -114,6 +116,7 @@ public DistinguishedName getRelativeDn() {
114116
* @deprecated {@link DistinguishedName} and associated classes and methods are
115117
* deprecated as of 2.0. use {@link #getAbsoluteName()} instead.
116118
*/
119+
@Deprecated
117120
public DistinguishedName getAbsoluteDn() {
118121
return new DistinguishedName(this.absoluteDn);
119122
}

core/src/main/java/org/springframework/ldap/core/LdapOperations.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ <T> List<T> search(Name base, String filter, SearchControls controls, Attributes
11781178
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String)} or
11791179
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String, AuthenticatedLdapEntryContextMapper)}
11801180
*/
1181+
@Deprecated
11811182
boolean authenticate(Name base, String filter, String password);
11821183

11831184
/**
@@ -1203,6 +1204,7 @@ <T> List<T> search(Name base, String filter, SearchControls controls, Attributes
12031204
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String)} or
12041205
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String, AuthenticatedLdapEntryContextMapper)}
12051206
*/
1207+
@Deprecated
12061208
boolean authenticate(String base, String filter, String password);
12071209

12081210
/**
@@ -1226,6 +1228,7 @@ <T> List<T> search(Name base, String filter, SearchControls controls, Attributes
12261228
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String, AuthenticatedLdapEntryContextMapper)}
12271229
* @see #authenticate(Name, String, String)
12281230
*/
1231+
@Deprecated
12291232
boolean authenticate(Name base, String filter, String password, AuthenticatedLdapEntryContextCallback callback);
12301233

12311234
/**
@@ -1249,6 +1252,7 @@ <T> List<T> search(Name base, String filter, SearchControls controls, Attributes
12491252
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String, AuthenticatedLdapEntryContextMapper)}
12501253
* @see #authenticate(String, String, String)
12511254
*/
1255+
@Deprecated
12521256
boolean authenticate(String base, String filter, String password, AuthenticatedLdapEntryContextCallback callback);
12531257

12541258
/**
@@ -1276,6 +1280,7 @@ <T> List<T> search(Name base, String filter, SearchControls controls, Attributes
12761280
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String, AuthenticatedLdapEntryContextMapper)}
12771281
* @see #authenticate(Name, String, String, AuthenticatedLdapEntryContextCallback)
12781282
*/
1283+
@Deprecated
12791284
boolean authenticate(Name base, String filter, String password, AuthenticatedLdapEntryContextCallback callback,
12801285
AuthenticationErrorCallback errorCallback);
12811286

@@ -1304,6 +1309,7 @@ boolean authenticate(Name base, String filter, String password, AuthenticatedLda
13041309
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String, AuthenticatedLdapEntryContextMapper)}
13051310
* @see #authenticate(String, String, String, AuthenticatedLdapEntryContextCallback)
13061311
*/
1312+
@Deprecated
13071313
boolean authenticate(String base, String filter, String password, AuthenticatedLdapEntryContextCallback callback,
13081314
AuthenticationErrorCallback errorCallback);
13091315

@@ -1328,6 +1334,7 @@ boolean authenticate(String base, String filter, String password, AuthenticatedL
13281334
* @see #authenticate(Name, String, String, AuthenticatedLdapEntryContextCallback,
13291335
* AuthenticationErrorCallback)
13301336
*/
1337+
@Deprecated
13311338
boolean authenticate(Name base, String filter, String password, AuthenticationErrorCallback errorCallback);
13321339

13331340
/**
@@ -1350,6 +1357,7 @@ boolean authenticate(String base, String filter, String password, AuthenticatedL
13501357
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String)} or
13511358
* {@link #authenticate(org.springframework.ldap.query.LdapQuery, String, AuthenticatedLdapEntryContextMapper)}
13521359
*/
1360+
@Deprecated
13531361
boolean authenticate(String base, String filter, String password, AuthenticationErrorCallback errorCallback);
13541362

13551363
/**

core/src/main/java/org/springframework/ldap/core/LdapRdn.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* @author Mattias Hellborg Arthursson
3939
* @deprecated {@link DistinguishedName} and associated classes are deprecated as of 2.0.
4040
*/
41+
@Deprecated
4142
public class LdapRdn implements Serializable, Comparable {
4243

4344
private static final long serialVersionUID = 5681397547245228750L;

core/src/main/java/org/springframework/ldap/core/LdapRdnComponent.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* @author Mattias Hellborg Arthursson
3636
* @deprecated {@link DistinguishedName} and associated classes are deprecated as of 2.0.
3737
*/
38+
@Deprecated
3839
public class LdapRdnComponent implements Comparable, Serializable {
3940

4041
private static final long serialVersionUID = -3296747972616243038L;
@@ -111,6 +112,7 @@ public String getKey() {
111112
* @deprecated Using this method changes the internal state of surrounding
112113
* DistinguishedName instance. This should be avoided.
113114
*/
115+
@Deprecated
114116
public void setKey(String key) {
115117
Assert.hasText(key, "Key must not be empty");
116118
this.key = key;
@@ -130,6 +132,7 @@ public String getValue() {
130132
* @deprecated Using this method changes the internal state of surrounding
131133
* DistinguishedName instance. This should be avoided.
132134
*/
135+
@Deprecated
133136
public void setValue(String value) {
134137
Assert.hasText(value, "Value must not be empty");
135138
this.value = value;

core/src/main/java/org/springframework/ldap/core/support/BaseLdapPathSource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public interface BaseLdapPathSource {
3838
* @deprecated {@link DistinguishedName} and associated classes and methods are
3939
* deprecated as of 2.0. Use {@link #getBaseLdapName()} instead.
4040
*/
41+
@Deprecated
4142
DistinguishedName getBaseLdapPath();
4243

4344
/**

core/src/main/java/org/springframework/ldap/transaction/compensating/manager/ContextSourceAndDataSourceTransactionManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* probably not such a good idea after all. AbstractPlatformTransactionManager is not
3939
* designed for this usage.
4040
*/
41+
@Deprecated
4142
public class ContextSourceAndDataSourceTransactionManager extends DataSourceTransactionManager {
4243

4344
private static final long serialVersionUID = 6832868697460384648L;

core/src/main/java/org/springframework/ldap/transaction/compensating/manager/ContextSourceAndHibernateTransactionManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* probably not such a good idea after all. AbstractPlatformTransactionManager is not
4242
* designed for this usage.
4343
*/
44+
@Deprecated
4445
public class ContextSourceAndHibernateTransactionManager extends HibernateTransactionManager {
4546

4647
/**

odm/src/main/java/org/springframework/ldap/odm/core/OdmManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* @deprecated This functionality is automatically available in LdapTemplate as of version
4040
* 2.0
4141
*/
42+
@Deprecated
4243
public interface OdmManager {
4344

4445
/**

odm/src/main/java/org/springframework/ldap/odm/core/impl/OdmManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
* @deprecated This functionality is automatically available in LdapTemplate as of version
4343
* 2.0
4444
*/
45+
@Deprecated
4546
public final class OdmManagerImpl implements OdmManager {
4647

4748
// The link to the LDAP directory

0 commit comments

Comments
 (0)