mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 19:06:48 +00:00
DottedChain equals fix
This commit is contained in:
@@ -208,9 +208,18 @@ public class DottedChain implements Serializable {
|
||||
return false;
|
||||
}
|
||||
final DottedChain other = (DottedChain) obj;
|
||||
if (!Arrays.equals(parts, other.parts)) {
|
||||
if (length != other.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < length; i++) {
|
||||
String s1 = parts[i];
|
||||
String s2 = other.parts[i];
|
||||
if (!s1.equals(s2)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user