Skip to content

Commit

Permalink
fixed files form Lang #60
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 220df7c commit 06b5d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/Lang/60/org/apache/commons/lang/text/StrBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ public String midString(int index, int length) {
*/
public boolean contains(char ch) {
char[] thisBuf = buffer;
for (int i = 0; i < thisBuf.length; i++) {
for (int i = 0; i < this.size; i++) {
if (thisBuf[i] == ch) {
return true;
}
Expand Down Expand Up @@ -1727,7 +1727,7 @@ public int indexOf(char ch, int startIndex) {
return -1;
}
char[] thisBuf = buffer;
for (int i = startIndex; i < thisBuf.length; i++) {
for (int i = startIndex; i < size; i++) {
if (thisBuf[i] == ch) {
return i;
}
Expand Down

0 comments on commit 06b5d36

Please sign in to comment.