Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jaxb
diff options
context:
space:
mode:
authorPaul Fullbright2013-03-13 13:40:49 +0000
committerPaul Fullbright2013-03-13 13:49:43 +0000
commit0c9175c0b04fb556a80532b4bc5248d7370ae581 (patch)
tree4e3ea384a4b0aa14071c6b6e6029a1af552cc5b9 /jaxb
parent6b1904da40963b06b81bc502a70f8359415689e5 (diff)
downloadwebtools.dali-0c9175c0b04fb556a80532b4bc5248d7370ae581.tar.gz
webtools.dali-0c9175c0b04fb556a80532b4bc5248d7370ae581.tar.xz
webtools.dali-0c9175c0b04fb556a80532b4bc5248d7370ae581.zip
Fixed synchronize logic
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