Skip to content

Commit 5fbcd9b

Browse files
committed
Pointing to the correct functions in @deprecated now
1 parent 3499915 commit 5fbcd9b

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

javaparser-core/src/main/java/com/github/javaparser/ast/expr/IntegerLiteralExpr.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@
3838
* All ways to specify an int literal.
3939
*
4040
* <ul>
41-
* <li><code>8934</code>
42-
* <li><code>0x01</code>
43-
* <li><code>022</code>
44-
* <li><code>0B10101010</code>
45-
* <li><code>99999999L</code>
41+
* <li><code>8934</code></li>
42+
* <li><code>0x01</code></li>
43+
* <li><code>022</code></li>
44+
* <li><code>0B10101010</code></li>
4645
* </ul>
4746
*
4847
* @author Julio Vilmar Gesser
@@ -72,8 +71,8 @@ public IntegerLiteralExpr(TokenRange tokenRange, String value) {
7271
}
7372

7473
/**
75-
* @deprecated This function is deprecated in favor of constructing the literal by a string value. Please refer to
76-
* the {@link #asNumber()} function especially on how to construct literals holding negative values.
74+
* @deprecated This function is deprecated in favor of {@link #IntegerLiteralExpr(String)}. Please refer to the
75+
* {@link #asNumber()} function for valid formats and how to construct literals holding negative values.
7776
*/
7877
@Deprecated
7978
public IntegerLiteralExpr(final int value) {
@@ -150,8 +149,8 @@ public Number asNumber() {
150149
}
151150

152151
/**
153-
* @deprecated This function is deprecated in favor of constructing the literal by a string value. Please refer to
154-
* the {@link #asNumber()} function especially on how to construct literals holding negative values.
152+
* @deprecated This function is deprecated in favor of {@link #setValue(String)}. Please refer to the {@link
153+
* #asNumber()} function for valid formats and how to construct literals holding negative values.
155154
*/
156155
@Deprecated
157156
public IntegerLiteralExpr setInt(int value) {

javaparser-core/src/main/java/com/github/javaparser/ast/expr/LongLiteralExpr.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
* All ways to specify a long literal.
4040
*
4141
* <ul>
42-
* <li><code>8934l</code>
43-
* <li><code>0x01L</code>
44-
* <li><code>022l</code>
45-
* <li><code>0B10101010L</code>
46-
* <li><code>99999999L</code>
42+
* <li><code>8934l</code></li>
43+
* <li><code>0x01L</code></li>
44+
* <li><code>022l</code></li>
45+
* <li><code>0B10101010L</code></li>
46+
* <li><code>99999999L</code></li>
4747
* </ul>
4848
*
4949
* @author Julio Vilmar Gesser
@@ -73,8 +73,8 @@ public LongLiteralExpr(TokenRange tokenRange, String value) {
7373
}
7474

7575
/**
76-
* @deprecated This function is deprecated in favor of constructing the literal by a string value. Please refer to
77-
* the {@link #asNumber()} function especially on how to construct literals holding negative values.
76+
* @deprecated This function is deprecated in favor of {@link #LongLiteralExpr(String)}. Please refer to the {@link
77+
* #asNumber()} function for valid formats and how to construct literals holding negative values.
7878
*/
7979
@Deprecated
8080
public LongLiteralExpr(final long value) {
@@ -155,8 +155,8 @@ public Number asNumber() {
155155
}
156156

157157
/**
158-
* @deprecated This function is deprecated in favor of constructing the literal by a string value. Please refer to
159-
* the {@link #asNumber()} function especially on how to construct literals holding negative values.
158+
* @deprecated This function is deprecated in favor of {@link #setValue(String)}. Please refer to the {@link
159+
* #asNumber()} function for valid formats and how to construct literals holding negative values.
160160
*/
161161
@Deprecated
162162
public LongLiteralExpr setLong(long value) {

0 commit comments

Comments
 (0)