equal
deleted
inserted
replaced
191 result = tree.mods.annotations; |
191 result = tree.mods.annotations; |
192 } |
192 } |
193 public void visitVarDef(JCVariableDecl tree) { |
193 public void visitVarDef(JCVariableDecl tree) { |
194 result = tree.mods.annotations; |
194 result = tree.mods.annotations; |
195 } |
195 } |
|
196 @Override |
|
197 public void visitTypeParameter(JCTypeParameter tree) { |
|
198 result = tree.annotations; |
|
199 } |
196 } |
200 } |
197 Vis vis = new Vis(); |
201 Vis vis = new Vis(); |
198 tree.accept(vis); |
202 tree.accept(vis); |
199 if (vis.result == null) |
203 if (vis.result == null) |
200 return null; |
204 return null; |
201 |
205 |
202 List<Attribute.Compound> annos = sym.getRawAttributes(); |
206 List<Attribute.Compound> annos = sym.getAnnotationMirrors(); |
203 return matchAnnoToTree(cast(Attribute.Compound.class, findme), |
207 return matchAnnoToTree(cast(Attribute.Compound.class, findme), |
204 annos, |
208 annos, |
205 vis.result); |
209 vis.result); |
206 } |
210 } |
207 |
211 |