Lines 253-259
Link Here
|
253 |
public ISourceRange getJavadocRange() throws JavaModelException { |
253 |
public ISourceRange getJavadocRange() throws JavaModelException { |
254 |
ISourceRange range= this.getSourceRange(); |
254 |
ISourceRange range= this.getSourceRange(); |
255 |
if (range == null) return null; |
255 |
if (range == null) return null; |
256 |
IBuffer buf= this.isBinary() ? this.getClassFile().getBuffer() : this.getCompilationUnit().getBuffer(); |
256 |
IBuffer buf= null; |
|
|
257 |
if (this.isBinary()) { |
258 |
buf = this.getClassFile().getBuffer(); |
259 |
} else { |
260 |
ICompilationUnit compilationUnit = this.getCompilationUnit(); |
261 |
if (!compilationUnit.isConsistent()) { |
262 |
return null; |
263 |
} |
264 |
buf = compilationUnit.getBuffer(); |
265 |
} |
257 |
final int start= range.getOffset(); |
266 |
final int start= range.getOffset(); |
258 |
final int length= range.getLength(); |
267 |
final int length= range.getLength(); |
259 |
if (length > 0 && buf.getChar(start) == '/') { |
268 |
if (length > 0 && buf.getChar(start) == '/') { |