forked from phoedos/pmd
rm unnecessary cast
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4535 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -40,7 +40,7 @@ public class StringInstantiation extends AbstractRule {
|
||||
return data;
|
||||
}
|
||||
|
||||
NameDeclaration nd = (NameDeclaration) name.getNameDeclaration();
|
||||
NameDeclaration nd = name.getNameDeclaration();
|
||||
if (!(nd instanceof VariableNameDeclaration)) {
|
||||
return data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user