Remove Deprecation Warnings
- Address usage of new Integer - Address missing deprecation markers Closes gh-793
This commit is contained in:
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user