Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2013-03-26 12:27:16 -0400
committerBrian Vosburgh2013-03-26 12:27:16 -0400
commit65a699f6a1054cddd60b957846148db6842af959 (patch)
tree1bac2154285d7394d8e770a870fcdea6601bcd90 /common/plugins/org.eclipse.jpt.common.core/src
parent90d5733cbc0cef31a40f3b4205fe3e7085a2dafe (diff)
downloadwebtools.dali-65a699f6a1054cddd60b957846148db6842af959.tar.gz
webtools.dali-65a699f6a1054cddd60b957846148db6842af959.tar.xz
webtools.dali-65a699f6a1054cddd60b957846148db6842af959.zip
clean up JDTAnnotatedElement
Diffstat (limited to 'common/plugins/org.eclipse.jpt.common.core/src')
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/jdt/JDTAnnotatedElement.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/jdt/JDTAnnotatedElement.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/jdt/JDTAnnotatedElement.java
index e1d0766d42..89499a22ed 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/jdt/JDTAnnotatedElement.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/utility/jdt/JDTAnnotatedElement.java
@@ -129,6 +129,7 @@ public abstract class JDTAnnotatedElement
ITextFileBuffer buffer = FileBuffers.getTextFileBufferManager().getTextFileBuffer(this.compilationUnit.getResource().getFullPath(), LocationKind.NORMALIZE);
boolean sharedDocument = (buffer != null); // documents are typically shared when they are already open in an editor
+ @SuppressWarnings("null") // erroneous compiler warning - 'buffer' will NOT be null
IDocument doc = sharedDocument ?
buffer.getDocument() :
new Document(this.compilationUnit.getBuffer().getContents());

Back to the top