mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-09 09:59:48 +01:00
Update StringMan.java
This commit is contained in:
parent
fba7eac6d8
commit
75bcd1adec
@ -240,8 +240,10 @@ public class StringMan {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isEqual(String a, String b) {
|
public static boolean isEqual(String a, String b) {
|
||||||
return a.equals(b) || b != null && a.length() == b.length() && a.hashCode() == b.hashCode()
|
return (a == b) || ((a != null) && (b != null) && (a.length() == b.length()) &&
|
||||||
&& a.equals(b);
|
(a.hashCode() == b.hashCode()) && a.equals(b));
|
||||||
|
// return a.equals(b) || b != null && a.length() == b.length() && a.hashCode() == b.hashCode()
|
||||||
|
// && a.equals(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isEqualIgnoreCase(String a, String b) {
|
public static boolean isEqualIgnoreCase(String a, String b) {
|
||||||
|
Loading…
Reference in New Issue
Block a user