private boolean typesMatch(Object first, Object second) { if (first.equals(second)) { return true; } if (first instanceof XMLType && second instanceof XMLType) { XMLType t1 = (XMLType)first; XMLType t2 = (XMLType)second; // TUSCANY-2113, we should compare element names only return matches(t1.getElementName(), t2.getElementName()); } return false; }
private boolean typesMatch(Object first, Object second) { if (first.equals(second)) { return true; } if (first instanceof XMLType && second instanceof XMLType) { XMLType t1 = (XMLType)first; XMLType t2 = (XMLType)second; // TUSCANY-2113, we should compare element names only return matches(t1.getElementName(), t2.getElementName()); } return false; }