Package edu.umd.cs.findbugs.ba.obl
Class Obligation
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.obl.Obligation
-
public class Obligation extends java.lang.Object
An obligation that must be cleaned up by error handling code. Examples include open streams and database connections.See Weimer and Necula, Finding and preventing run-time error handling mistakes, OOPSLA 2004.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
className
private int
id
private org.apache.bcel.generic.ObjectType
type
private boolean
userObligationType
-
Constructor Summary
Constructors Constructor Description Obligation(java.lang.String className, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassName()
int
getId()
org.apache.bcel.generic.ObjectType
getType()
boolean
isUserObligationType()
void
setUserObligationType(boolean userObligationType)
java.lang.String
toString()
-
-
-
Field Detail
-
className
@DottedClassName private final java.lang.String className
-
type
private final org.apache.bcel.generic.ObjectType type
-
id
private final int id
-
userObligationType
private boolean userObligationType
-
-
Constructor Detail
-
Obligation
public Obligation(@DottedClassName java.lang.String className, int id)
-
-
Method Detail
-
getClassName
@DottedClassName public java.lang.String getClassName()
-
getType
public org.apache.bcel.generic.ObjectType getType()
-
getId
public int getId()
-
isUserObligationType
public boolean isUserObligationType()
-
setUserObligationType
public void setUserObligationType(boolean userObligationType)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-