Skip to content

Commit 5214bae

Browse files
fixup! Merge pull request #8 from diffblue/remove-sun-imports
1 parent c77e6a1 commit 5214bae

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/main/java/java/lang/String.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,27 @@ public byte[] getBytes() {
13921392
* @diffblue.fullSupport
13931393
*/
13941394
public boolean equals(Object anObject) {
1395+
// if (this == anObject) {
1396+
// return true;
1397+
// }
1398+
// if (anObject instanceof String) {
1399+
// String anotherString = (String)anObject;
1400+
// int n = value.length;
1401+
// if (n == anotherString.value.length) {
1402+
// char v1[] = value;
1403+
// char v2[] = anotherString.value;
1404+
// int i = 0;
1405+
// while (n-- != 0) {
1406+
// if (v1[i] != v2[i])
1407+
// return false;
1408+
// i++;
1409+
// }
1410+
// return true;
1411+
// }
1412+
// }
1413+
// return false;
1414+
1415+
// DIFFBLUE MODEL LIBRARY Use CProverString function
13951416
if (anObject instanceof String) {
13961417
return CProverString.equals((String)anObject, this);
13971418
}

0 commit comments

Comments
 (0)