Skip to content

Commit f6bd637

Browse files
committed
Javadoc: The @deprecated tag should be last.
1 parent 90762e0 commit f6bd637

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/java/org/apache/commons/lang3/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8722,8 +8722,8 @@ public static String toRootUpperCase(final String source) {
87228722
* @param charsetName the encoding to use, if null then use the platform default.
87238723
* @return a new String.
87248724
* @throws NullPointerException if the input is null.
8725-
* @deprecated Use {@link StringUtils#toEncodedString(byte[], Charset)} instead of String constants in your code.
87268725
* @since 3.1
8726+
* @deprecated Use {@link StringUtils#toEncodedString(byte[], Charset)} instead of String constants in your code.
87278727
*/
87288728
@Deprecated
87298729
public static String toString(final byte[] bytes, final String charsetName) {

src/main/java/org/apache/commons/lang3/SystemUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public class SystemUtils {
8484
* </p>
8585
*
8686
* @see SystemProperties#getFileSeparator()
87-
* @deprecated Use {@link File#separator}, since it is guaranteed to be a string containing a single character and it does not require a privilege check.
8887
* @since Java 1.1
88+
* @deprecated Use {@link File#separator}, since it is guaranteed to be a string containing a single character and it does not require a privilege check.
8989
*/
9090
@Deprecated
9191
public static final String FILE_SEPARATOR = SystemProperties.getFileSeparator();

src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,10 @@ public static void removeFinalModifier(final Field field) {
576576
* if the field is {@code null}.
577577
* @throws SecurityException if an underlying accessible object's method denies the request.
578578
* @see SecurityManager#checkPermission
579+
* @since 3.3
579580
* @deprecated As of Java 12, we can no longer drop the {@code final} modifier, thus
580581
* rendering this method obsolete. The JDK discussion about this change can be found
581582
* here: https://mail.openjdk.java.net/pipermail/core-libs-dev/2018-November/056486.html
582-
* @since 3.3
583583
*/
584584
@Deprecated
585585
public static void removeFinalModifier(final Field field, final boolean forceAccess) {

src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,11 +1232,11 @@ String format(final Object obj) {
12321232
* Formats a {@link Date}, {@link Calendar} or
12331233
* {@link Long} (milliseconds) object.
12341234
*
1235-
* @deprecated Use {{@link #format(Date)}, {{@link #format(Calendar)}, {{@link #format(long)}.
12361235
* @param obj the object to format.
12371236
* @param toAppendTo the buffer to append to.
12381237
* @param pos the position; ignored.
12391238
* @return the buffer passed in.
1239+
* @deprecated Use {{@link #format(Date)}, {{@link #format(Calendar)}, {{@link #format(long)}.
12401240
*/
12411241
@Deprecated
12421242
@Override

0 commit comments

Comments
 (0)