Skip to content

Commit

Permalink
fixed files form Lang #14
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent cdf3159 commit 54a3d0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/Lang/14/org/apache/commons/lang3/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,10 @@ public static boolean equals(CharSequence cs1, CharSequence cs2) {
if (cs1 == null || cs2 == null) {
return false;
}
if (cs1 instanceof String && cs2 instanceof String) {
return cs1.equals(cs2);
}
return CharSequenceUtils.regionMatches(cs1, false, 0, cs2, 0, Math.max(cs1.length(), cs2.length()));
}

/**
Expand Down

0 comments on commit 54a3d0f

Please sign in to comment.