< prev index next >
src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/PropertyMap.java
Print this page
*** 997,1018 ****
boolean found = false;
for (final Property p : map0.getProperties()) {
final Property p2 = map1.findProperty(p.getKey());
if (p2 == null) {
! sb.append("FIRST ONLY : [" + p + "]");
found = true;
} else if (p2 != p) {
! sb.append("DIFFERENT : [" + p + "] != [" + p2 + "]");
found = true;
}
}
for (final Property p2 : map1.getProperties()) {
final Property p1 = map0.findProperty(p2.getKey());
if (p1 == null) {
! sb.append("SECOND ONLY: [" + p2 + "]");
found = true;
}
}
//assert found;
--- 997,1018 ----
boolean found = false;
for (final Property p : map0.getProperties()) {
final Property p2 = map1.findProperty(p.getKey());
if (p2 == null) {
! sb.append("FIRST ONLY : [").append(p).append("]");
found = true;
} else if (p2 != p) {
! sb.append("DIFFERENT : [").append(p).append("] != [").append(p2).append("]");
found = true;
}
}
for (final Property p2 : map1.getProperties()) {
final Property p1 = map0.findProperty(p2.getKey());
if (p1 == null) {
! sb.append("SECOND ONLY: [").append(p2).append("]");
found = true;
}
}
//assert found;
< prev index next >