Skip to content

Commit

Permalink
Compare against source string
Browse files Browse the repository at this point in the history
fixes #57
  • Loading branch information
eltos committed Dec 9, 2021
1 parent 9ea9c85 commit 608ac62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ public void visitMethod(JavaContext context, UCallExpression node, PsiMethod met

} else {
// when called as static reference
if (!callingExpression.toString().equals(definingClass.getName())) {
if (!callingExpression.asSourceString().equals(definingClass.getName())) {
context.report(BUILD_CALL, context.getLocation(node), String.format(
BUILD_CALL_MESSAGE, callingExpression, definingClass.getName()));
BUILD_CALL_MESSAGE, callingExpression.asSourceString(), definingClass.getName()));
}
}

Expand Down

0 comments on commit 608ac62

Please sign in to comment.