Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2008-02-06 07:22:14 +0000
committernitind2008-02-06 07:22:14 +0000
commit5b597905ad7bbdc7b833470b90703e274a9a00d6 (patch)
tree7ed7e4f55ce1c08495c0874ab88cdb22f1c38226 /bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml
parentd2789c8ff95adb980da82024af79066f59e03ff2 (diff)
downloadwebtools.sourceediting-5b597905ad7bbdc7b833470b90703e274a9a00d6.tar.gz
webtools.sourceediting-5b597905ad7bbdc7b833470b90703e274a9a00d6.tar.xz
webtools.sourceediting-5b597905ad7bbdc7b833470b90703e274a9a00d6.zip
fixup compiler warning
Diffstat (limited to 'bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml')
-rw-r--r--bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/TextImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/TextImpl.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/TextImpl.java
index e7bbd43f80..d386910e0d 100644
--- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/TextImpl.java
+++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/TextImpl.java
@@ -145,7 +145,7 @@ public class TextImpl extends CharacterDataImpl implements IDOMText {
TextImpl text = (TextImpl) newText;
String newSource = text.getSource();
- if (newSource == null && newSource.length() == 0)
+ if (newSource == null || newSource.length() == 0)
return;
String source = getSource();
if (source != null)

Back to the top