提交 54a02409 编写于 作者: S shade

8060485: (str) contentEquals checks the String contents twice on mismatch

Reviewed-by: martin, chegar, alanb
上级 3c0ebbe9
......@@ -1045,8 +1045,9 @@ public final class String
}
}
// Argument is a String
if (cs.equals(this))
return true;
if (cs instanceof String) {
return equals(cs);
}
// Argument is a generic CharSequence
char v1[] = value;
int n = v1.length;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册