提交 82fa24a0 authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

performance - do not check for string == when equals will be called

equals implementation for String begins with  == equality check
上级 e3a1473c
......@@ -2871,7 +2871,7 @@ public class Database implements DataHandler {
* @return true if they match
*/
public boolean equalsIdentifiers(String a, String b) {
if (a == b || a.equals(b)) {
if (a.equals(b)) {
return true;
}
if (!dbSettings.databaseToUpper && a.equalsIgnoreCase(b)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论