mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
add a couple of StringBuffer.append overloads
This commit is contained in:
parent
6196f61938
commit
71f1efc4cb
@ -30,6 +30,16 @@ public class StringBuffer implements CharSequence {
|
||||
return this;
|
||||
}
|
||||
|
||||
public synchronized StringBuffer append(CharSequence s) {
|
||||
sb.append(s);
|
||||
return this;
|
||||
}
|
||||
|
||||
public synchronized StringBuffer append(StringBuffer s) {
|
||||
sb.append(s);
|
||||
return this;
|
||||
}
|
||||
|
||||
public synchronized StringBuffer append(Object o) {
|
||||
sb.append(o);
|
||||
return this;
|
||||
|
@ -54,6 +54,10 @@ public class StringBuilder implements CharSequence, Appendable {
|
||||
}
|
||||
}
|
||||
|
||||
public StringBuilder append(StringBuffer sb) {
|
||||
return append(sb.toString());
|
||||
}
|
||||
|
||||
public StringBuilder append(CharSequence sequence) {
|
||||
return append(sequence.toString());
|
||||
}
|
||||
@ -104,7 +108,6 @@ public class StringBuilder implements CharSequence, Appendable {
|
||||
return append(String.valueOf(v));
|
||||
}
|
||||
|
||||
|
||||
public char charAt(int i) {
|
||||
if (i < 0 || i >= length) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
|
Loading…
Reference in New Issue
Block a user