Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ExtendedAnnotation.java')
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ExtendedAnnotation.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ExtendedAnnotation.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ExtendedAnnotation.java
index 078f80ed6..58b7a53ee 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ExtendedAnnotation.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ExtendedAnnotation.java
@@ -76,7 +76,7 @@ public class ExtendedAnnotation extends ClassFileStruct implements IExtendedAnno
private int parameterIndex;
private int exceptionTableIndex;
private ILocalVariableReferenceInfo[] localVariableTable = NO_LOCAL_VARIABLE_TABLE_ENTRIES;
-
+
/**
* Constructor for ExtendedAnnotation, builds an annotation from the supplied bytestream.
*
@@ -94,7 +94,7 @@ public class ExtendedAnnotation extends ClassFileStruct implements IExtendedAnno
int index = u1At(classFileBytes,0,offset);
this.targetType = index;
this.readOffset = 1;
-
+
readTargetInfo(index, classFileBytes, constantPool, offset);
// Read type_path
@@ -111,7 +111,7 @@ public class ExtendedAnnotation extends ClassFileStruct implements IExtendedAnno
typePathEntry[1] = u1At(classFileBytes, this.readOffset++, offset);
}
}
-
+
// Read annotation
index = u2At(classFileBytes, this.readOffset, offset);
this.typeIndex = index;
@@ -142,7 +142,7 @@ public class ExtendedAnnotation extends ClassFileStruct implements IExtendedAnno
this.annotationTypeIndex = -1;
}
}
-
+
private void readTargetInfo(
int localTargetType,
byte[] classFileBytes,
@@ -167,24 +167,24 @@ public class ExtendedAnnotation extends ClassFileStruct implements IExtendedAnno
this.typeParameterBoundIndex = u1At(classFileBytes, this.readOffset, localOffset);
this.readOffset++;
break;
-
+
case IExtendedAnnotationConstants.FIELD :
case IExtendedAnnotationConstants.METHOD_RETURN :
case IExtendedAnnotationConstants.METHOD_RECEIVER :
// nothing to do, target_info is empty_target
break;
-
+
case IExtendedAnnotationConstants.METHOD_FORMAL_PARAMETER :
this.parameterIndex = u1At(classFileBytes, this.readOffset, localOffset);
this.readOffset++;
break;
-
+
case IExtendedAnnotationConstants.THROWS :
this.annotationTypeIndex = u2At(classFileBytes, this.readOffset, localOffset);
this.readOffset+=2;
break;
-
+
case IExtendedAnnotationConstants.LOCAL_VARIABLE :
case IExtendedAnnotationConstants.RESOURCE_VARIABLE :
int tableLength = u2At(classFileBytes, this.readOffset, localOffset);
@@ -207,11 +207,11 @@ public class ExtendedAnnotation extends ClassFileStruct implements IExtendedAnno
case IExtendedAnnotationConstants.CONSTRUCTOR_REFERENCE :
this.offset = u2At(classFileBytes, this.readOffset, localOffset);
this.readOffset += 2;
- break;
+ break;
case IExtendedAnnotationConstants.CAST :
this.offset = u2At(classFileBytes, this.readOffset, localOffset);
- this.readOffset += 2;
+ this.readOffset += 2;
// read type_argument_index
this.annotationTypeIndex = u1At(classFileBytes, this.readOffset, localOffset);
this.readOffset++;
@@ -258,7 +258,7 @@ public class ExtendedAnnotation extends ClassFileStruct implements IExtendedAnno
public int getTargetType() {
return this.targetType;
}
-
+
@Override
public int getExceptionTableIndex() {
return this.exceptionTableIndex;

Back to the top