1 19 package edu.umd.cs.findbugs.detect; 20 21 import edu.umd.cs.findbugs.props.AbstractWarningProperty; 22 import edu.umd.cs.findbugs.props.PriorityAdjustment; 23 24 29 public class RefComparisonWarningProperty extends AbstractWarningProperty { 30 private RefComparisonWarningProperty(String name, PriorityAdjustment priorityAdjustment) { 31 super(name, priorityAdjustment); 32 } 33 34 35 public static final RefComparisonWarningProperty SAW_CALL_TO_EQUALS = 36 new RefComparisonWarningProperty("SAW_CALL_TO_EQUALS", PriorityAdjustment.LOWER_PRIORITY); 37 38 public static final RefComparisonWarningProperty PRIVATE_METHOD = 39 new RefComparisonWarningProperty("PRIVATE_METHOD", PriorityAdjustment.LOWER_PRIORITY); 40 41 public static final RefComparisonWarningProperty COMPARE_STATIC_STRINGS = 42 new RefComparisonWarningProperty("COMPARE_STATIC_STRINGS", PriorityAdjustment.FALSE_POSITIVE); 43 44 public static final RefComparisonWarningProperty DYNAMIC_AND_UNKNOWN = 45 new RefComparisonWarningProperty("DYNAMIC_AND_UNKNOWN", PriorityAdjustment.RAISE_PRIORITY); 46 public static final RefComparisonWarningProperty STRING_PARAMETER_IN_PUBLIC_METHOD = 47 new RefComparisonWarningProperty("STATIC_AND_PARAMETER_IN_PUBLIC_METHOD", PriorityAdjustment.RAISE_PRIORITY); 48 public static final RefComparisonWarningProperty STRING_PARAMETER = 49 new RefComparisonWarningProperty("STATIC_AND_PARAMETER", PriorityAdjustment.NO_ADJUSTMENT); 50 51 52 public static final RefComparisonWarningProperty STATIC_AND_UNKNOWN = 53 new RefComparisonWarningProperty("STATIC_AND_UNKNOWN", PriorityAdjustment.LOWER_PRIORITY); 54 55 public static final RefComparisonWarningProperty SAW_INTERN = 56 new RefComparisonWarningProperty("SAW_INTERN", PriorityAdjustment.LOWER_PRIORITY); 57 } 58 | Popular Tags |