pmd
pmd rule overridable method called during object construction
I am initializing some member variables in my DTO via sette开发者_Python百科rs from inside the constructor.[详细]
2023-04-12 14:08 分类:问答Java collapsible if statements
I use PMD to check my code. It gives me very useful hints in most cases, but I can\'t figure out what could be improved in the following scenario.[详细]
2023-04-09 14:58 分类:问答Pmd ant script gives java.lang.NoClassDefFoundError: org/jaxen/JaxenException
<?xml version=\"1.0\" encoding=\"UTF-8\"?> <project name=\"Example\" default=\"pmd\" basedir=\".\">[详细]
2023-04-05 23:43 分类:问答Any current workarounds to use Sonar for Java 7 code?
I try to use Sonar on a Java 7 project (which relies on new syntactic features) and the PMD part and the Checkstyle part fail to parse those files.[详细]
2023-03-27 10:13 分类:问答PMD compliant stream copy in java
I have a piece of code for stream copying. OutputStream os = ...; InputStream is = ...; int bufferLength;[详细]
2023-03-27 02:26 分类:问答Custom PMD rule integration with hudson
I have written a custom PMD rule specific to my project requirements that is working fine with sonar in standalone mode (following the steps given in this link). I need to integrate the same to hudson[详细]
2023-03-25 03:04 分类:问答Explanation and fix for Possible null pointer dereference of
Code review tool is complaining Possible null pointer dereference of safeScanWarnings in saveSafeScan(...) At the line if (safeScanWarnings != Null & safeScanWarnings.size() > 0)[详细]
2023-03-23 03:36 分类:问答Finding encoding issues in Java Project/Source
I\'m currently working on a Java project where it\'s part of my job to watch over the quality. As tools I use Jenkins in combination with Sonar. These tools are great and the helped me to track issues[详细]
2023-03-16 17:48 分类:问答Java error: New exception is thrown in catch block, original stack trace may be lost
try { // code which throws exception. } catch (SQLException sqlex) { logger.error(\"Custom message\", sqlex);[详细]
2023-03-14 12:21 分类:问答Wicket and the 'constructor calls overridable method' PMD warning
We\'ve been avoiding this PMD warning by moving most of our constructor code into onInitialize(). But are we just moving the problem (design flaw?) into a difference place?[详细]
2023-03-11 07:18 分类:问答