comparison truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeGenFactory.java @ 21978:844d6d053d1b

added local SuppressFBWarnings annotation
author Doug Simon <doug.simon@oracle.com>
date Thu, 25 Jun 2015 13:37:44 +0200
parents 9c8c0937da41
children 5bc7f7b867ab
comparison
equal deleted inserted replaced
21977:1ecffe20e460 21978:844d6d053d1b
276 276
277 return clazz; 277 return clazz;
278 } 278 }
279 279
280 private void avoidFindbugsProblems(CodeTypeElement clazz) { 280 private void avoidFindbugsProblems(CodeTypeElement clazz) {
281 TypeElement type = context.getEnvironment().getElementUtils().getTypeElement("edu.umd.cs.findbugs.annotations.SuppressFBWarnings"); 281 TypeElement type = context.getEnvironment().getElementUtils().getTypeElement(SuppressFBWarnings.class.getName());
282 if (type == null) {
283 return;
284 }
285 boolean foundComparison = false; 282 boolean foundComparison = false;
286 outer: for (SpecializationData specialization : node.getSpecializations()) { 283 outer: for (SpecializationData specialization : node.getSpecializations()) {
287 for (GuardExpression guard : specialization.getGuards()) { 284 for (GuardExpression guard : specialization.getGuards()) {
288 if (guard.getExpression().containsComparisons()) { 285 if (guard.getExpression().containsComparisons()) {
289 foundComparison = true; 286 foundComparison = true;