KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > umd > cs > findbugs > props > GeneralWarningProperty


1 /*
2  * FindBugs - Find bugs in Java programs
3  * Copyright (C) 2005, University of Maryland
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19 package edu.umd.cs.findbugs.props;
20
21 /**
22  * General warning properties.
23  * These are properties that could be attached to any warning
24  * to provide information which might be useful in determining
25  * whether or not the bug is a false positive, and/or the
26  * severity of the warning.
27  *
28  * @author David Hovemeyer
29  */

30 public class GeneralWarningProperty extends AbstractWarningProperty {
31     private GeneralWarningProperty(String JavaDoc name, PriorityAdjustment priorityAdjustment) {
32         super(name, priorityAdjustment);
33     }
34     
35     /** The type of the receiver object in a method call or instance field access. */
36     public static final GeneralWarningProperty RECEIVER_OBJECT_TYPE =
37         new GeneralWarningProperty("RECEIVER_OBJECT_TYPE", PriorityAdjustment.NO_ADJUSTMENT);
38     
39     /** Name of most recently called method. */
40     public static final GeneralWarningProperty CALLED_METHOD_1 =
41         new GeneralWarningProperty("CALLED_METHOD_1", PriorityAdjustment.NO_ADJUSTMENT);
42     /** Name of second-most recently called method. */
43     public static final GeneralWarningProperty CALLED_METHOD_2 =
44         new GeneralWarningProperty("CALLED_METHOD_2", PriorityAdjustment.NO_ADJUSTMENT);
45     /** Name of third-most recently called method. */
46     public static final GeneralWarningProperty CALLED_METHOD_3 =
47         new GeneralWarningProperty("CALLED_METHOD_3", PriorityAdjustment.NO_ADJUSTMENT);
48     /** Name of fourth-most recently called method. */
49     public static final GeneralWarningProperty CALLED_METHOD_4 =
50         new GeneralWarningProperty("CALLED_METHOD_4", PriorityAdjustment.NO_ADJUSTMENT);
51     
52     /** Warning occurs on an exception control path. */
53     public static final GeneralWarningProperty ON_EXCEPTION_PATH =
54         new GeneralWarningProperty("ON_EXCEPTION_PATH", PriorityAdjustment.NO_ADJUSTMENT);
55 }
56
Popular Tags