Fix AnnotationSetRefPool.getOffset

This commit is contained in:
Ben Gruver 2012-12-29 11:44:52 -08:00
parent db81d89c2a
commit 3360e18c53

View File

@ -69,7 +69,7 @@ public class AnnotationSetRefPool {
public int getOffset(@Nonnull Method method) {
Key annotationSetRefKey = new Key(method);
Integer offset = internedAnnotationSetRefItems.put(annotationSetRefKey, 0);
Integer offset = internedAnnotationSetRefItems.get(annotationSetRefKey);
if (offset == null) {
throw new ExceptionWithContext("Annotation set ref not found.");
}