1 19 20 package edu.umd.cs.findbugs; 21 22 import edu.umd.cs.findbugs.ba.AnalysisContext; 23 import edu.umd.cs.findbugs.ba.AnalysisFeatures; 24 25 32 public abstract class FindBugsAnalysisFeatures { 33 private static final int START; 34 static { 35 START = AnalysisFeatures.NUM_BOOLEAN_ANALYSIS_PROPERTIES; 36 } 37 38 45 public static final int RELAXED_REPORTING_MODE = START + 0; 46 47 50 public static final int INTERPROCEDURAL_ANALYSIS = START + 1; 51 public static final int INTERPROCEDURAL_ANALYSIS_OF_REFERENCED_CLASSES = START + 2; 52 53 private static void setProperty(int property, boolean value) { 54 AnalysisContext.currentAnalysisContext().setBoolProperty(property, value); 55 } 56 57 private static boolean getProperty(int property) { 58 return AnalysisContext.currentAnalysisContext().getBoolProperty(property); 59 } 60 61 66 public static void setRelaxedMode(boolean relaxedMode) { 67 setProperty(RELAXED_REPORTING_MODE, relaxedMode); 68 } 69 70 75 public static boolean isRelaxedMode() { 76 return getProperty(RELAXED_REPORTING_MODE); 77 } 78 } 79 | Popular Tags |