--- a/usr/src/java/util/org/opensolaris/os/vp/util/misc/TextUtil.java Fri Jun 05 08:02:37 2009 -0400
+++ b/usr/src/java/util/org/opensolaris/os/vp/util/misc/TextUtil.java Fri Jun 05 13:06:24 2009 -0400
@@ -42,6 +42,13 @@
}
/**
+ * Returns the base portion of the name of the given class.
+ */
+ public static String getBaseName(Class clazz) {
+ return getClassBaseName(clazz.getName());
+ }
+
+ /**
* Returns the package portion of a fully-qualified class name.
*/
public static String getPackageName(String name) {