|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
/* |
|
|
|
|
* Copyright 2000-2016 JetBrains s.r.o. |
|
|
|
|
* Copyright 2000-2017 JetBrains s.r.o. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -21,6 +21,7 @@ import org.jetbrains.java.decompiler.struct.consts.ConstantPool; |
|
|
|
|
import org.jetbrains.java.decompiler.struct.consts.PrimitiveConstant; |
|
|
|
|
import org.jetbrains.java.decompiler.struct.gen.FieldDescriptor; |
|
|
|
|
import org.jetbrains.java.decompiler.struct.gen.VarType; |
|
|
|
|
import org.jetbrains.java.decompiler.util.DataInputFullStream; |
|
|
|
|
|
|
|
|
|
import java.io.DataInputStream; |
|
|
|
|
import java.io.IOException; |
|
|
|
@ -32,8 +33,8 @@ public class StructAnnotationAttribute extends StructGeneralAttribute { |
|
|
|
|
private List<AnnotationExprent> annotations; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void initContent(ConstantPool pool) throws IOException { |
|
|
|
|
annotations = parseAnnotations(pool, stream()); |
|
|
|
|
public void initContent(DataInputFullStream data, ConstantPool pool) throws IOException { |
|
|
|
|
annotations = parseAnnotations(pool, data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static List<AnnotationExprent> parseAnnotations(ConstantPool pool, DataInputStream data) throws IOException { |
|
|
|
|