Skip to content

Commit 82fea1d

Browse files
committed
Avoid deprecation warning in tests
1 parent 30e53e9 commit 82fea1d

File tree

1 file changed

+1
-1
lines changed
  • net.sourceforge.pmd.eclipse.plugin.test.fragment/src/main/resources/rulesets

1 file changed

+1
-1
lines changed

net.sourceforge.pmd.eclipse.plugin.test.fragment/src/main/resources/rulesets/extra1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Override both public boolean Object.equals(Object other), and public int Object.
273273
<![CDATA[
274274
//ClassOrInterfaceDeclaration[@Interface='false']//MethodDeclarator
275275
[(@Image = 'equals' and count(FormalParameters/*) = 1
276-
and not(//MethodDeclarator[count(FormalParameters/*) = 0][@Image = 'hashCode']))
276+
and not(//MethodDeclarator[count(FormalParameters/*) = 0][@Name = 'hashCode']))
277277
or
278278
(@Image='hashCode' and count(FormalParameters/*) = 0
279279
and

0 commit comments

Comments
 (0)