Contents
-
Deprecated Classes
Java 7 introduced
StandardCharsets
, which defines these constants as
Charset
objects. Use
Charset.name()
to get the string values provided in this class.
This class will be removed in a future release.
as of 3.6, use commons-text
WordUtils instead
-
Deprecated Fields
Use
File.separator
, since it is guaranteed to be a
string containing a single character and it does not require a privilege check.
Use
File.pathSeparator
, since it is guaranteed to be a
string containing a single character and it does not require a privilege check.
- as of 4.0, ISO_DATE_FORMAT will be replaced by ISO_8601_EXTENDED_DATE_FORMAT.
- as of 4.0, ISO_DATE_TIME_ZONE_FORMAT will be removed.
- as of 4.0, ISO_DATETIME_FORMAT will be replaced by ISO_8601_EXTENDED_DATETIME_FORMAT.
- as of 4.0, ISO_DATETIME_TIME_ZONE_FORMAT will be replaced by ISO_8601_EXTENDED_DATETIME_TIME_ZONE_FORMAT.
- as of 4.0, ISO_TIME_FORMAT will be removed.
- as of 4.0, ISO_TIME_NO_T_FORMAT will be replaced by ISO_8601_EXTENDED_TIME_FORMAT.
- as of 4.0, ISO_TIME_NO_T_TIME_ZONE_FORMAT will be replaced by ISO_8601_EXTENDED_TIME_TIME_ZONE_FORMAT.
- as of 4.0, ISO_TIME_TIME_ZONE_FORMAT will be removed.
-
Deprecated Methods
this method has been superseded by
ArrayUtils.insert(int, boolean[], boolean...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
ArrayUtils.insert(int, byte[], byte...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
ArrayUtils.insert(int, char[], char...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
ArrayUtils.insert(int, double[], double...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
ArrayUtils.insert(int, float[], float...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
ArrayUtils.insert(int, int[], int...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
ArrayUtils.insert(int, long[], long...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
ArrayUtils.insert(int, short[], short...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been superseded by
insert(int, T[], T...)
and
may be removed in a future release. Please note the handling of
null
input arrays differs
in the new method: inserting
X
into a
null
array results in
null
not
X
.
this method has been replaced by java.util.Objects.deepEquals(Object, Object)
and will be
removed from future releases.
This feature will be removed in Lang 4.0
this method has been replaced by java.util.Objects.equals(Object, Object)
in Java 7 and will
be removed from future releases.
this method has been replaced by java.util.Objects.hashCode(Object)
in Java 7 and will be
removed in future releases
this method has been replaced by java.util.Objects.hash(Object...)
in Java 7 and will be
removed in future releases.
as of 3.6, because StrBuilder was moved to commons-text,
use one of the other identityToString
methods instead
this method has been replaced by java.util.Objects.toString(Object)
in Java 7 and will be
removed in future releases. Note however that said method will return "null" for null references, while this
method returns an empty String. To preserve behavior use java.util.Objects.toString(myObject, "")
this method has been replaced by java.util.Objects.toString(Object, String)
in Java 7 and
will be removed in future releases.
As of Java 12, we can no longer drop the final
modifier, thus
rendering this method obsolete. The JDK discussion about this change can be found
here: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-November/056486.html
-
Deprecated Enum Constants