Skip to content

Commit 761bdd3

Browse files
committed
adds GradientPaint (not tested)
adds support for TextMeasurer
1 parent 1a589e6 commit 761bdd3

File tree

5 files changed

+277
-150
lines changed

5 files changed

+277
-150
lines changed

sources/net.sf.j2s.java.core/src/java/lang/AbstractStringBuilder.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -665,17 +665,19 @@ public AbstractStringBuilder append(int i) {
665665
* @return a reference to this object.
666666
*/
667667
public AbstractStringBuilder append(long l) {
668-
if (l == Long.MIN_VALUE) {
669-
append("-9223372036854775808");
670-
return this;
671-
}
672-
int appendedLength = (l < 0) ? Long.stringSize(-l) + 1
673-
: Long.stringSize(l);
674-
int spaceNeeded = count + appendedLength;
675-
ensureCapacityInternal(spaceNeeded);
676-
Long.getChars(l, spaceNeeded, value);
677-
count = spaceNeeded;
678-
return this;
668+
append("" + l);
669+
return this;
670+
// if (l == Long.MIN_VALUE) {
671+
// append("-9223372036854775808");
672+
// return this;
673+
// }
674+
// int appendedLength = (l < 0) ? Long.stringSize(-l) + 1
675+
// : Long.stringSize(l);
676+
// int spaceNeeded = count + appendedLength;
677+
// ensureCapacityInternal(spaceNeeded);
678+
// Long.getChars(l, spaceNeeded, value);
679+
// count = spaceNeeded;
680+
// return this;
679681
}
680682

681683
/**

0 commit comments

Comments
 (0)