Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jaxb
diff options
context:
space:
mode:
Diffstat (limited to 'jaxb')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbNode.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbNode.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbNode.java
index f1d01c9db7..313eff6c4c 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbNode.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbNode.java
@@ -415,7 +415,8 @@ public abstract class AbstractJaxbNode
int index = 0;
for (R resourceElement : resourceElements) {
if (this.getContextElementsSize() > index) {
- if (this.getContextElement(index) != resourceElement) {
+ C contextElement = this.getContextElement(index);
+ if (! ObjectTools.equals(this.getResourceElement(contextElement), resourceElement)) {
this.addContextElement(index, resourceElement);
}
}

Back to the top