@@ -131,6 +131,7 @@ public class BuildException extends RuntimeException { | |||||
* exception is associated with this one | * exception is associated with this one | ||||
* @deprecated Use {@link #getCause} instead. | * @deprecated Use {@link #getCause} instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public Throwable getException() { | public Throwable getException() { | ||||
return getCause(); | return getCause(); | ||||
} | } | ||||
@@ -88,6 +88,7 @@ public final class Diagnostics { | |||||
* @deprecated Obsolete since Ant 1.8.2 | * @deprecated Obsolete since Ant 1.8.2 | ||||
* @return <tt>true</tt> | * @return <tt>true</tt> | ||||
*/ | */ | ||||
@Deprecated | |||||
public static boolean isOptionalAvailable() { | public static boolean isOptionalAvailable() { | ||||
return true; | return true; | ||||
} | } | ||||
@@ -96,6 +97,7 @@ public final class Diagnostics { | |||||
* Doesn't do anything. | * Doesn't do anything. | ||||
* @deprecated Obsolete since Ant 1.8.2 | * @deprecated Obsolete since Ant 1.8.2 | ||||
*/ | */ | ||||
@Deprecated | |||||
public static void validateVersion() throws BuildException { | public static void validateVersion() throws BuildException { | ||||
} | } | ||||
@@ -32,6 +32,7 @@ public abstract class ProjectComponent implements Cloneable { | |||||
* You should access project object via the getProject() | * You should access project object via the getProject() | ||||
* or setProject() accessor/mutators. | * or setProject() accessor/mutators. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected Project project; | protected Project project; | ||||
/** | /** | ||||
@@ -40,6 +41,7 @@ public abstract class ProjectComponent implements Cloneable { | |||||
* You should not be accessing this variable directly. | * You should not be accessing this variable directly. | ||||
* Please use the {@link #getLocation()} method. | * Please use the {@link #getLocation()} method. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected Location location = Location.UNKNOWN_LOCATION; | protected Location location = Location.UNKNOWN_LOCATION; | ||||
/** | /** | ||||
@@ -47,6 +49,7 @@ public abstract class ProjectComponent implements Cloneable { | |||||
* @deprecated since 1.6.x. | * @deprecated since 1.6.x. | ||||
* You should not be accessing this variable directly. | * You should not be accessing this variable directly. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected String description; | protected String description; | ||||
// CheckStyle:VisibilityModifier ON | // CheckStyle:VisibilityModifier ON | ||||
@@ -305,6 +305,7 @@ public class ProjectHelper { | |||||
* @return the current context class loader, or <code>null</code> | * @return the current context class loader, or <code>null</code> | ||||
* if the context class loader is unavailable. | * if the context class loader is unavailable. | ||||
*/ | */ | ||||
@Deprecated | |||||
public static ClassLoader getContextClassLoader() { | public static ClassLoader getContextClassLoader() { | ||||
return LoaderUtils.isContextLoaderAvailable() ? LoaderUtils.getContextClassLoader() : null; | return LoaderUtils.isContextLoaderAvailable() ? LoaderUtils.getContextClassLoader() : null; | ||||
} | } | ||||
@@ -327,6 +328,7 @@ public class ProjectHelper { | |||||
* @exception BuildException if any of the attributes can't be handled by | * @exception BuildException if any of the attributes can't be handled by | ||||
* the target | * the target | ||||
*/ | */ | ||||
@Deprecated | |||||
public static void configure(Object target, AttributeList attrs, | public static void configure(Object target, AttributeList attrs, | ||||
Project project) throws BuildException { | Project project) throws BuildException { | ||||
if (target instanceof TypeAdapter) { | if (target instanceof TypeAdapter) { | ||||
@@ -430,6 +432,7 @@ public class ProjectHelper { | |||||
* Use project.replaceProperties(). | * Use project.replaceProperties(). | ||||
* @since 1.5 | * @since 1.5 | ||||
*/ | */ | ||||
@Deprecated | |||||
public static String replaceProperties(Project project, String value) throws BuildException { | public static String replaceProperties(Project project, String value) throws BuildException { | ||||
// needed since project properties are not accessible | // needed since project properties are not accessible | ||||
return project.replaceProperties(value); | return project.replaceProperties(value); | ||||
@@ -455,6 +458,7 @@ public class ProjectHelper { | |||||
* @deprecated since 1.6.x. | * @deprecated since 1.6.x. | ||||
* Use PropertyHelper. | * Use PropertyHelper. | ||||
*/ | */ | ||||
@Deprecated | |||||
public static String replaceProperties(Project project, String value, Hashtable<String, Object> keys) | public static String replaceProperties(Project project, String value, Hashtable<String, Object> keys) | ||||
throws BuildException { | throws BuildException { | ||||
PropertyHelper ph = PropertyHelper.getPropertyHelper(project); | PropertyHelper ph = PropertyHelper.getPropertyHelper(project); | ||||
@@ -482,6 +486,7 @@ public class ProjectHelper { | |||||
* @exception BuildException if the string contains an opening | * @exception BuildException if the string contains an opening | ||||
* <code>${</code> without a closing <code>}</code> | * <code>${</code> without a closing <code>}</code> | ||||
*/ | */ | ||||
@Deprecated | |||||
public static void parsePropertyString(String value, Vector<String> fragments, Vector<String> propertyRefs) | public static void parsePropertyString(String value, Vector<String> fragments, Vector<String> propertyRefs) | ||||
throws BuildException { | throws BuildException { | ||||
PropertyHelper.parsePropertyStringDefault(value, fragments, propertyRefs); | PropertyHelper.parsePropertyStringDefault(value, fragments, propertyRefs); | ||||
@@ -347,6 +347,7 @@ public class PropertyHelper implements GetProperty { | |||||
* @param next the next property helper in the chain. | * @param next the next property helper in the chain. | ||||
* @deprecated use the delegate mechanism instead | * @deprecated use the delegate mechanism instead | ||||
*/ | */ | ||||
@Deprecated | |||||
public void setNext(PropertyHelper next) { | public void setNext(PropertyHelper next) { | ||||
this.next = next; | this.next = next; | ||||
} | } | ||||
@@ -362,6 +363,7 @@ public class PropertyHelper implements GetProperty { | |||||
* @return the next property helper. | * @return the next property helper. | ||||
* @deprecated use the delegate mechanism instead | * @deprecated use the delegate mechanism instead | ||||
*/ | */ | ||||
@Deprecated | |||||
public PropertyHelper getNext() { | public PropertyHelper getNext() { | ||||
return next; | return next; | ||||
} | } | ||||
@@ -432,6 +434,7 @@ public class PropertyHelper implements GetProperty { | |||||
* has a good reason not to). | * has a good reason not to). | ||||
* @deprecated PropertyHelper chaining is deprecated. | * @deprecated PropertyHelper chaining is deprecated. | ||||
*/ | */ | ||||
@Deprecated | |||||
public boolean setPropertyHook(String ns, String name, | public boolean setPropertyHook(String ns, String name, | ||||
Object value, | Object value, | ||||
boolean inherited, boolean user, | boolean inherited, boolean user, | ||||
@@ -459,6 +462,7 @@ public class PropertyHelper implements GetProperty { | |||||
* @return The property, if returned by a hook, or null if none. | * @return The property, if returned by a hook, or null if none. | ||||
* @deprecated PropertyHelper chaining is deprecated. | * @deprecated PropertyHelper chaining is deprecated. | ||||
*/ | */ | ||||
@Deprecated | |||||
public Object getPropertyHook(String ns, String name, boolean user) { | public Object getPropertyHook(String ns, String name, boolean user) { | ||||
if (getNext() != null) { | if (getNext() != null) { | ||||
Object o = getNext().getPropertyHook(ns, name, user); | Object o = getNext().getPropertyHook(ns, name, user); | ||||
@@ -506,6 +510,7 @@ public class PropertyHelper implements GetProperty { | |||||
* <code>}</code> | * <code>}</code> | ||||
* @deprecated use the other mechanisms of this class instead | * @deprecated use the other mechanisms of this class instead | ||||
*/ | */ | ||||
@Deprecated | |||||
public void parsePropertyString(String value, Vector<String> fragments, | public void parsePropertyString(String value, Vector<String> fragments, | ||||
Vector<String> propertyRefs) throws BuildException { | Vector<String> propertyRefs) throws BuildException { | ||||
parsePropertyStringDefault(value, fragments, propertyRefs); | parsePropertyStringDefault(value, fragments, propertyRefs); | ||||
@@ -605,6 +610,7 @@ public class PropertyHelper implements GetProperty { | |||||
* @return true if the property is set. | * @return true if the property is set. | ||||
* @deprecated namespaces are unnecessary. | * @deprecated namespaces are unnecessary. | ||||
*/ | */ | ||||
@Deprecated | |||||
public boolean setProperty(String ns, String name, Object value, boolean verbose) { | public boolean setProperty(String ns, String name, Object value, boolean verbose) { | ||||
return setProperty(name, value, verbose); | return setProperty(name, value, verbose); | ||||
} | } | ||||
@@ -662,6 +668,7 @@ public class PropertyHelper implements GetProperty { | |||||
* @since Ant 1.6 | * @since Ant 1.6 | ||||
* @deprecated namespaces are unnecessary. | * @deprecated namespaces are unnecessary. | ||||
*/ | */ | ||||
@Deprecated | |||||
public void setNewProperty(String ns, String name, Object value) { | public void setNewProperty(String ns, String name, Object value) { | ||||
setNewProperty(name, value); | setNewProperty(name, value); | ||||
} | } | ||||
@@ -713,6 +720,7 @@ public class PropertyHelper implements GetProperty { | |||||
* Must not be <code>null</code>. | * Must not be <code>null</code>. | ||||
* @deprecated namespaces are unnecessary. | * @deprecated namespaces are unnecessary. | ||||
*/ | */ | ||||
@Deprecated | |||||
public void setUserProperty(String ns, String name, Object value) { | public void setUserProperty(String ns, String name, Object value) { | ||||
setUserProperty(name, value); | setUserProperty(name, value); | ||||
} | } | ||||
@@ -755,6 +763,7 @@ public class PropertyHelper implements GetProperty { | |||||
* Must not be <code>null</code>. | * Must not be <code>null</code>. | ||||
* @deprecated namespaces are unnecessary. | * @deprecated namespaces are unnecessary. | ||||
*/ | */ | ||||
@Deprecated | |||||
public void setInheritedProperty(String ns, String name, Object value) { | public void setInheritedProperty(String ns, String name, Object value) { | ||||
setInheritedProperty(name, value); | setInheritedProperty(name, value); | ||||
} | } | ||||
@@ -801,6 +810,7 @@ public class PropertyHelper implements GetProperty { | |||||
* or if a <code>null</code> name is provided. | * or if a <code>null</code> name is provided. | ||||
* @deprecated namespaces are unnecessary. | * @deprecated namespaces are unnecessary. | ||||
*/ | */ | ||||
@Deprecated | |||||
public Object getProperty(String ns, String name) { | public Object getProperty(String ns, String name) { | ||||
return getProperty(name); | return getProperty(name); | ||||
} | } | ||||
@@ -849,6 +859,7 @@ public class PropertyHelper implements GetProperty { | |||||
* or if a <code>null</code> name is provided. | * or if a <code>null</code> name is provided. | ||||
* @deprecated namespaces are unnecessary. | * @deprecated namespaces are unnecessary. | ||||
*/ | */ | ||||
@Deprecated | |||||
public Object getUserProperty(String ns, String name) { | public Object getUserProperty(String ns, String name) { | ||||
return getUserProperty(name); | return getUserProperty(name); | ||||
} | } | ||||
@@ -63,6 +63,7 @@ public class RuntimeConfigurable implements Serializable { | |||||
* XML attributes for the element. | * XML attributes for the element. | ||||
* @deprecated since 1.6.x | * @deprecated since 1.6.x | ||||
*/ | */ | ||||
@Deprecated | |||||
private transient AttributeList attributes; | private transient AttributeList attributes; | ||||
// The following is set to true if any of the attributes are namespaced | // The following is set to true if any of the attributes are namespaced | ||||
@@ -39,6 +39,7 @@ public abstract class Task extends ProjectComponent { | |||||
* You should not be accessing this variable directly. | * You should not be accessing this variable directly. | ||||
* Please use the {@link #getOwningTarget()} method. | * Please use the {@link #getOwningTarget()} method. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected Target target; | protected Target target; | ||||
/** | /** | ||||
@@ -52,6 +53,7 @@ public abstract class Task extends ProjectComponent { | |||||
* You should not be accessing this variable directly. | * You should not be accessing this variable directly. | ||||
* Please use the {@link #getTaskName()} method. | * Please use the {@link #getTaskName()} method. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected String taskName; | protected String taskName; | ||||
/** | /** | ||||
@@ -61,6 +63,7 @@ public abstract class Task extends ProjectComponent { | |||||
* You should not be accessing this variable directly. | * You should not be accessing this variable directly. | ||||
* Please use the {@link #getTaskType()} method. | * Please use the {@link #getTaskType()} method. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected String taskType; | protected String taskType; | ||||
/** | /** | ||||
@@ -70,6 +73,7 @@ public abstract class Task extends ProjectComponent { | |||||
* You should not be accessing this variable directly. | * You should not be accessing this variable directly. | ||||
* Please use the {@link #getWrapper()} method. | * Please use the {@link #getWrapper()} method. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected RuntimeConfigurable wrapper; | protected RuntimeConfigurable wrapper; | ||||
// CheckStyle:VisibilityModifier ON | // CheckStyle:VisibilityModifier ON | ||||
@@ -39,7 +39,7 @@ import org.apache.tools.ant.util.FileUtils; | |||||
* obsoleted by ResourceCollection support in Copy available since Ant | * obsoleted by ResourceCollection support in Copy available since Ant | ||||
* 1.7.0. Don't use it. | * 1.7.0. Don't use it. | ||||
*/ | */ | ||||
@Deprecated | |||||
public class CopyPath extends Task { | public class CopyPath extends Task { | ||||
// Error messages | // Error messages | ||||
@@ -51,6 +51,7 @@ public abstract class DefBase extends AntlibDefinition { | |||||
* stop using this attribute | * stop using this attribute | ||||
* @ant.attribute ignore="true" | * @ant.attribute ignore="true" | ||||
*/ | */ | ||||
@Deprecated | |||||
public void setReverseLoader(boolean reverseLoader) { | public void setReverseLoader(boolean reverseLoader) { | ||||
getDelegate().setReverseLoader(reverseLoader); | getDelegate().setReverseLoader(reverseLoader); | ||||
log("The reverseloader attribute is DEPRECATED. It will be removed", | log("The reverseloader attribute is DEPRECATED. It will be removed", | ||||
@@ -32,7 +32,7 @@ import org.apache.tools.ant.Task; | |||||
* @deprecated The deltree task is deprecated since Ant 1.2. Use | * @deprecated The deltree task is deprecated since Ant 1.2. Use | ||||
* delete instead. | * delete instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public class Deltree extends Task { | public class Deltree extends Task { | ||||
private File dir; | private File dir; | ||||
@@ -38,6 +38,7 @@ import org.apache.tools.ant.util.FileUtils; | |||||
* @deprecated since 1.2. | * @deprecated since 1.2. | ||||
* Merged into the class Javac. | * Merged into the class Javac. | ||||
*/ | */ | ||||
@Deprecated | |||||
public class Jikes { | public class Jikes { | ||||
// There have been reports that 300 files could be compiled | // There have been reports that 300 files could be compiled | ||||
// on a command line so 250 is a conservative approach | // on a command line so 250 is a conservative approach | ||||
@@ -38,6 +38,7 @@ import org.apache.tools.ant.Task; | |||||
* @deprecated since 1.2. | * @deprecated since 1.2. | ||||
* Use Jikes' exit value to detect compilation failure. | * Use Jikes' exit value to detect compilation failure. | ||||
*/ | */ | ||||
@Deprecated | |||||
public class JikesOutputParser implements ExecuteStreamHandler { | public class JikesOutputParser implements ExecuteStreamHandler { | ||||
// CheckStyle:VisibilityModifier OFF - bc | // CheckStyle:VisibilityModifier OFF - bc | ||||
protected Task task; | protected Task task; | ||||
@@ -43,6 +43,7 @@ import org.apache.tools.ant.util.StringUtils; | |||||
* @deprecated KeySubst is deprecated since Ant 1.1. Use Filter + Copy | * @deprecated KeySubst is deprecated since Ant 1.1. Use Filter + Copy | ||||
* instead. | * instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public class KeySubst extends Task { | public class KeySubst extends Task { | ||||
private File source = null; | private File source = null; | ||||
private File dest = null; | private File dest = null; | ||||
@@ -32,6 +32,7 @@ import org.apache.tools.ant.util.FileUtils; | |||||
* @deprecated The rename task is deprecated since Ant 1.2. Use move instead. | * @deprecated The rename task is deprecated since Ant 1.2. Use move instead. | ||||
* @since Ant 1.1 | * @since Ant 1.1 | ||||
*/ | */ | ||||
@Deprecated | |||||
public class Rename extends Task { | public class Rename extends Task { | ||||
private static final FileUtils FILE_UTILS = FileUtils.getFileUtils(); | private static final FileUtils FILE_UTILS = FileUtils.getFileUtils(); | ||||
@@ -39,6 +39,7 @@ public class SendEmail extends EmailTask { | |||||
* @deprecated since 1.5.x. | * @deprecated since 1.5.x. | ||||
* Use {@link #setMailport(int)} instead. | * Use {@link #setMailport(int)} instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public void setMailport(Integer value) { | public void setMailport(Integer value) { | ||||
setMailport(value.intValue()); | setMailport(value.intValue()); | ||||
} | } | ||||
@@ -38,7 +38,7 @@ import org.apache.tools.ant.Task; | |||||
* @deprecated since 1.2.x. | * @deprecated since 1.2.x. | ||||
* Use LogOutputStream instead. | * Use LogOutputStream instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public class TaskOutputStream extends OutputStream { | public class TaskOutputStream extends OutputStream { | ||||
private Task task; | private Task task; | ||||
@@ -37,6 +37,7 @@ import org.apache.tools.ant.util.JavaEnvUtils; | |||||
* @since Ant 1.3 | * @since Ant 1.3 | ||||
* @deprecated Use {@link Javac13} instead. | * @deprecated Use {@link Javac13} instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public class Javac12 extends DefaultCompilerAdapter { | public class Javac12 extends DefaultCompilerAdapter { | ||||
protected static final String CLASSIC_COMPILER_CLASSNAME = "sun.tools.javac.Main"; | protected static final String CLASSIC_COMPILER_CLASSNAME = "sun.tools.javac.Main"; | ||||
@@ -47,6 +47,7 @@ public abstract class DataType extends ProjectComponent implements Cloneable { | |||||
* The user should not be directly referencing | * The user should not be directly referencing | ||||
* variable. Please use {@link #getRefid} instead. | * variable. Please use {@link #getRefid} instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected Reference ref; | protected Reference ref; | ||||
/** | /** | ||||
@@ -62,6 +63,7 @@ public abstract class DataType extends ProjectComponent implements Cloneable { | |||||
* variable. Please use {@link #setChecked} or | * variable. Please use {@link #setChecked} or | ||||
* {@link #isChecked} instead. | * {@link #isChecked} instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
protected boolean checked = true; | protected boolean checked = true; | ||||
// CheckStyle:VisibilityModifier ON | // CheckStyle:VisibilityModifier ON | ||||
@@ -275,6 +275,7 @@ public class Mapper extends DataType { | |||||
* FileNameMapper implementation directly. | * FileNameMapper implementation directly. | ||||
* @return the referenced Mapper | * @return the referenced Mapper | ||||
*/ | */ | ||||
@Deprecated | |||||
protected Mapper getRef() { | protected Mapper getRef() { | ||||
return getCheckedRef(Mapper.class, getDataTypeName()); | return getCheckedRef(Mapper.class, getDataTypeName()); | ||||
} | } | ||||
@@ -36,6 +36,7 @@ public class Reference { | |||||
* Please use {@link Reference#Reference(Project,String)} | * Please use {@link Reference#Reference(Project,String)} | ||||
* instead. | * instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public Reference() { | public Reference() { | ||||
} | } | ||||
@@ -46,6 +47,7 @@ public class Reference { | |||||
* Please use {@link Reference#Reference(Project,String)} | * Please use {@link Reference#Reference(Project,String)} | ||||
* instead. | * instead. | ||||
*/ | */ | ||||
@Deprecated | |||||
public Reference(String id) { | public Reference(String id) { | ||||
setRefId(id); | setRefId(id); | ||||
} | } | ||||
@@ -38,6 +38,7 @@ public class FileResourceIterator implements Iterator<Resource> { | |||||
* Construct a new FileResourceIterator. | * Construct a new FileResourceIterator. | ||||
* @deprecated in favor of {@link FileResourceIterator#FileResourceIterator(Project)} | * @deprecated in favor of {@link FileResourceIterator#FileResourceIterator(Project)} | ||||
*/ | */ | ||||
@Deprecated | |||||
public FileResourceIterator() { | public FileResourceIterator() { | ||||
} | } | ||||
@@ -56,6 +57,7 @@ public class FileResourceIterator implements Iterator<Resource> { | |||||
* @param basedir the base directory of this instance. | * @param basedir the base directory of this instance. | ||||
* @deprecated in favor of {@link FileResourceIterator#FileResourceIterator(Project, File)} | * @deprecated in favor of {@link FileResourceIterator#FileResourceIterator(Project, File)} | ||||
*/ | */ | ||||
@Deprecated | |||||
public FileResourceIterator(File basedir) { | public FileResourceIterator(File basedir) { | ||||
this(null, basedir); | this(null, basedir); | ||||
} | } | ||||
@@ -79,6 +81,7 @@ public class FileResourceIterator implements Iterator<Resource> { | |||||
* @param filenames the String[] of filenames. | * @param filenames the String[] of filenames. | ||||
* @deprecated in favor of {@link FileResourceIterator#FileResourceIterator(Project, File, String[])} | * @deprecated in favor of {@link FileResourceIterator#FileResourceIterator(Project, File, String[])} | ||||
*/ | */ | ||||
@Deprecated | |||||
public FileResourceIterator(File basedir, String[] filenames) { | public FileResourceIterator(File basedir, String[] filenames) { | ||||
this(null, basedir, filenames); | this(null, basedir, filenames); | ||||
} | } | ||||
@@ -50,6 +50,7 @@ public class CollectionUtils { | |||||
* @since Ant 1.5 | * @since Ant 1.5 | ||||
* @deprecated since 1.6.x. | * @deprecated since 1.6.x. | ||||
*/ | */ | ||||
@Deprecated | |||||
public static boolean equals(Vector<?> v1, Vector<?> v2) { | public static boolean equals(Vector<?> v1, Vector<?> v2) { | ||||
return Objects.equals(v1, v2); | return Objects.equals(v1, v2); | ||||
} | } | ||||
@@ -65,6 +66,7 @@ public class CollectionUtils { | |||||
* @since Ant 1.5 | * @since Ant 1.5 | ||||
* @deprecated since 1.6.x. | * @deprecated since 1.6.x. | ||||
*/ | */ | ||||
@Deprecated | |||||
public static boolean equals(Dictionary<?, ?> d1, Dictionary<?, ?> d2) { | public static boolean equals(Dictionary<?, ?> d1, Dictionary<?, ?> d2) { | ||||
if (d1 == d2) { | if (d1 == d2) { | ||||
return true; | return true; | ||||
@@ -115,6 +117,7 @@ public class CollectionUtils { | |||||
* @since Ant 1.6 | * @since Ant 1.6 | ||||
* @deprecated since 1.6.x. | * @deprecated since 1.6.x. | ||||
*/ | */ | ||||
@Deprecated | |||||
public static <K, V> void putAll(Dictionary<? super K, ? super V> m1, | public static <K, V> void putAll(Dictionary<? super K, ? super V> m1, | ||||
Dictionary<? extends K, ? extends V> m2) { | Dictionary<? extends K, ? extends V> m2) { | ||||
for (Enumeration<? extends K> it = m2.keys(); it.hasMoreElements();) { | for (Enumeration<? extends K> it = m2.keys(); it.hasMoreElements();) { | ||||
@@ -111,11 +111,13 @@ public final class JavaEnvUtils { | |||||
* Version constant for Java 1.9 | * Version constant for Java 1.9 | ||||
* @deprecated use #JAVA_9 instead | * @deprecated use #JAVA_9 instead | ||||
*/ | */ | ||||
@Deprecated | |||||
public static final String JAVA_1_9 = "1.9"; | public static final String JAVA_1_9 = "1.9"; | ||||
/** | /** | ||||
* Number Version constant for Java 1.9 | * Number Version constant for Java 1.9 | ||||
* @deprecated use #VERSION_9 instead | * @deprecated use #VERSION_9 instead | ||||
*/ | */ | ||||
@Deprecated | |||||
public static final int VERSION_1_9 = 19; | public static final int VERSION_1_9 = 19; | ||||
/** | /** | ||||
@@ -250,6 +252,7 @@ public final class JavaEnvUtils { | |||||
* be 0 for all versions of Java starting with Java 9. | * be 0 for all versions of Java starting with Java 9. | ||||
* @deprecated use #getParsedJavaVersion instead | * @deprecated use #getParsedJavaVersion instead | ||||
*/ | */ | ||||
@Deprecated | |||||
public static int getJavaVersionNumber() { | public static int getJavaVersionNumber() { | ||||
return javaVersionNumber; | return javaVersionNumber; | ||||
} | } | ||||
@@ -85,6 +85,7 @@ public final class StringUtils { | |||||
* @return the new string with replaced occurrences. | * @return the new string with replaced occurrences. | ||||
* @deprecated Use {@link String#replace(CharSequence, CharSequence)} now. | * @deprecated Use {@link String#replace(CharSequence, CharSequence)} now. | ||||
*/ | */ | ||||
@Deprecated | |||||
public static String replace(String data, String from, String to) { | public static String replace(String data, String from, String to) { | ||||
return data.replace(from, to); | return data.replace(from, to); | ||||
} | } | ||||