Questions tagged [pmd]

PMD scans source code and looks for potential problems like possible bugs, dead code, suboptimal code, overcomplicated expressions, and duplicate code. PMD supports Java, JavaScript, XML, and many more.

PMD scans source code and looks for potential problems like possible bugs, dead code, suboptimal code, overcomplicated expressions, and .

857 questions
-4
votes
1 answer

I need to get rid of a pmd violation stating "Definition of 'equals()' without corresponding definition of 'hashCode()'

I have a program where the equals() method has been overridden,but the hashcode() is not but according to the java contract between these two, the hashcode must also be overridden. in that case i just want to override the hashcode() without causing…
-5
votes
1 answer

Assignment Java Questions

I have a question regarding this programming code I get the following error message assertTrue(true); Error [PMD]: This assertion uses only values known at compile time, so it cannot test any useful behavior exhibited by your code at …
omegaprime12
  • 11
  • 1
  • 3
1 2 3
57
58