diff options
author | nitind | 2008-02-06 07:22:14 +0000 |
---|---|---|
committer | nitind | 2008-02-06 07:22:14 +0000 |
commit | 5b597905ad7bbdc7b833470b90703e274a9a00d6 (patch) | |
tree | 7ed7e4f55ce1c08495c0874ab88cdb22f1c38226 /bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml | |
parent | d2789c8ff95adb980da82024af79066f59e03ff2 (diff) | |
download | webtools.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.java | 2 |
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) |