minor tweak

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4536 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Brian Remedios
2006-09-23 20:50:38 +00:00
parent f975de9947
commit 35d08541a4

View File

@ -75,8 +75,8 @@ public class TypeSet {
String importStmt = (String) i.next();
if (importStmt.endsWith("*")) {
try {
String importPkg = importStmt.substring(0, importStmt.indexOf("*") - 1);
return Class.forName(importPkg + "." + name);
String importPkg = importStmt.substring(0, importStmt.indexOf('*') - 1);
return Class.forName(importPkg + '.' + name);
} catch (ClassNotFoundException cnfe) {
}
}