Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Dykov committed Feb 14, 2022
1 parent 04b4282 commit 622e289
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import net.sourceforge.pmd.lang.java.ast.ASTPrimarySuffix;
import net.sourceforge.pmd.lang.java.ast.ASTType;
import net.sourceforge.pmd.lang.java.ast.ASTVariableDeclaratorId;
import net.sourceforge.pmd.lang.java.ast.TypeNode;
import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule;
import net.sourceforge.pmd.lang.java.symboltable.JavaNameOccurrence;
import net.sourceforge.pmd.lang.java.xpath.TypeIsFunction;
Expand Down Expand Up @@ -185,7 +186,7 @@ private static boolean hasDirectToStringInvocation(final ASTExpression expressio
* @param node Expression node, logger argument.
* @return True if the argument contains in the prohibited package.
*/
private boolean isInProhibitedPackage(final net.sourceforge.pmd.lang.java.ast.TypeNode node) {
private boolean isInProhibitedPackage(final TypeNode node) {
final String fulltypename = Optional.ofNullable(node.getType())
.map(Class::getTypeName)
.orElse(null);
Expand Down

0 comments on commit 622e289

Please sign in to comment.