Update of /cvsroot/fb-contrib/fb-contrib/samples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19847/samples
Modified Files:
SMII_Sample.java
Log Message:
don't report SMII for Class.forName("foo") and A.class.getName("foo") as the user can't do anything about it.
Index: SMII_Sample.java
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/samples/SMII_Sample.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- SMII_Sample.java 10 Dec 2005 03:41:02 -0000 1.3
+++ SMII_Sample.java 18 Feb 2006 23:43:14 -0000 1.4
@@ -37,4 +37,14 @@
Set s = new HashSet();
s.add(String.class);
}
+
+ public void test_ClassForName() throws ClassNotFoundException
+ {
+ Class c = Class.forName("java.lang.Object");
+ }
+
+ public void test_ClassGetName()
+ {
+ String name = Object.class.getName();
+ }
}
\ No newline at end of file
|