int recordedAnnotations = 0; for (int i = 0; i < length; i++) { ISourceRange positions = annotations[i].getSourceRange(); int start = positions.getOffset(); int end = start + positions.getLength();
int recordedAnnotations = 0; for (int i = 0; i < length; i++) { ISourceRange positions = annotations[i].getSourceRange(); int start = positions.getOffset(); int end = start + positions.getLength();
int recordedAnnotations = 0; for (int i = 0; i < length; i++) { ISourceRange positions = annotations[i].getSourceRange(); int start = positions.getOffset(); int end = start + positions.getLength();
int recordedAnnotations = 0; for (int i = 0; i < length; i++) { ISourceRange positions = annotations[i].getSourceRange(); int start = positions.getOffset(); int end = start + positions.getLength();
int recordedAnnotations = 0; for (int i = 0; i < length; i++) { ISourceRange positions = annotations[i].getSourceRange(); int start = positions.getOffset(); int end = start + positions.getLength();
int recordedAnnotations = 0; for (int i = 0; i < length; i++) { ISourceRange positions = annotations[i].getSourceRange(); int start = positions.getOffset(); int end = start + positions.getLength();
int recordedAnnotations = 0; for (int i = 0; i < length; i++) { ISourceRange positions = annotations[i].getSourceRange(); int start = positions.getOffset(); int end = start + positions.getLength();
private static String getAnnotationSourceFixed(IMember member, IAnnotation annotation, String startSimple) { try { ISourceRange annotSourceRange = annotation.getSourceRange(); ISourceRange ownerSourceRange = member.getSourceRange(); if (SourceRange.isAvailable(ownerSourceRange) && SourceRange.isAvailable(annotSourceRange) && ownerSourceRange.getOffset() > annotSourceRange.getOffset()) { String icuSource = member.getCompilationUnit().getSource(); if (icuSource != null && icuSource.length() >= ownerSourceRange.getOffset()) { String diff = icuSource.substring(annotSourceRange.getOffset(), ownerSourceRange.getOffset()); int offset = diff.lastIndexOf(startSimple); if (offset >= 0) { offset += annotSourceRange.getOffset(); int end = offset + annotSourceRange.getLength(); if (icuSource.length() >= end) { return icuSource.substring(offset, end); } } } } } catch (JavaModelException e) { SdkLog.warning("Unable to find source for annotation '{}' in '{}'.", annotation.getElementName(), member.getElementName(), e); } return null; }
@SuppressWarnings("squid:S2259") final IType otherParent = (IType) other.getAncestor(IJavaElement.TYPE); final ISourceRange sourceRange = duplicate.getSourceRange(); if (S2eUtils.exists(otherParent) && SourceRange.isAvailable(sourceRange)) { final IMarker marker = duplicate.getResource().createMarker(CLASS_ID_DUPLICATE_MARKER_ID);