Remove Deprecation Warnings

- Address usage of new Integer
- Address missing deprecation markers

Closes gh-793
This commit is contained in:
Josh Cummings
2023-07-13 09:54:15 -06:00
parent b75f818415
commit 7fd89aa794
15 changed files with 51 additions and 29 deletions

View File

@@ -39,6 +39,7 @@ import org.springframework.ldap.query.LdapQuery;
* @deprecated This functionality is automatically available in LdapTemplate as of version
* 2.0
*/
@Deprecated
public interface OdmManager {
/**

View File

@@ -42,6 +42,7 @@ import org.springframework.util.StringUtils;
* @deprecated This functionality is automatically available in LdapTemplate as of version
* 2.0
*/
@Deprecated
public final class OdmManagerImpl implements OdmManager {
// The link to the LDAP directory

View File

@@ -45,6 +45,7 @@ import org.springframework.ldap.odm.typeconversion.ConverterManager;
* @deprecated This functionality is automatically available in LdapTemplate as of version
* 2.0
*/
@Deprecated
public final class OdmManagerImplFactoryBean implements FactoryBean {
private LdapOperations ldapOperations = null;

View File

@@ -188,7 +188,7 @@ public final class ConverterManagerTests {
Integer intSource = null;
if (source.getClass() == String.class) {
intSource = new Integer((String) source);
intSource = Integer.valueOf((String) source);
}
else {
if (source.getClass() == Integer.class) {
@@ -213,7 +213,7 @@ public final class ConverterManagerTests {
Integer intSource = null;
if (source.getClass() == String.class) {
intSource = new Integer((String) source);
intSource = Integer.valueOf((String) source);
}
else {
if (source.getClass() == Integer.class) {