Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17182/src/com/mebigfatguy/fbcontrib/detect
Modified Files:
OverlyConcreteParameter.java
Log Message:
add the (an) interface name to the bug report
Index: OverlyConcreteParameter.java
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/OverlyConcreteParameter.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- OverlyConcreteParameter.java 11 Sep 2005 05:34:13 -0000 1.15
+++ OverlyConcreteParameter.java 22 Sep 2005 02:04:37 -0000 1.16
@@ -175,10 +175,11 @@
parm--;
parm++; //users expect 1 based parameters
+ String infName = definers.keySet().iterator().next().getClassName();
bugReporter.reportBug( new BugInstance( this, "OCP_OVERLY_CONCRETE_PARAMETER", NORMAL_PRIORITY)
.addClass(this)
.addMethod(this)
- .addString("Parameter [" + reg.intValue() + "] " + name));
+ .addString("Parameter [" + reg.intValue() + "] " + name + " implements " + infName));
}
}
}
|