Remove redundant syntax
This commit is contained in:
parent
a2fe02fc0c
commit
55a9cb915a
|
@ -122,7 +122,7 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
|
|||
if (!ready()) {
|
||||
return -1;
|
||||
}
|
||||
return StrBuilder.this.charAt(pos++);
|
||||
return charAt(pos++);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
@ -135,11 +135,11 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
|
|||
if (len == 0) {
|
||||
return 0;
|
||||
}
|
||||
if (pos >= StrBuilder.this.size()) {
|
||||
if (pos >= size()) {
|
||||
return -1;
|
||||
}
|
||||
if (pos + len > size()) {
|
||||
len = StrBuilder.this.size() - pos;
|
||||
len = size() - pos;
|
||||
}
|
||||
StrBuilder.this.getChars(pos, pos + len, b, off);
|
||||
pos += len;
|
||||
|
@ -149,7 +149,7 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
|
|||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public boolean ready() {
|
||||
return pos < StrBuilder.this.size();
|
||||
return pos < size();
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
@ -161,8 +161,8 @@ public class StrBuilder implements CharSequence, Appendable, Serializable, Build
|
|||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public long skip(long n) {
|
||||
if (pos + n > StrBuilder.this.size()) {
|
||||
n = StrBuilder.this.size() - pos;
|
||||
if (pos + n > size()) {
|
||||
n = size() - pos;
|
||||
}
|
||||
if (n < 0) {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue