I am initializing some member variables in my DTO via sette开发者_Python百科rs from inside the constructor.
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.
<?xml version=\"1.0\" encoding=\"UTF-8\"?> <project name=\"Example\" default=\"pmd\" basedir=\".\">
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.
I have a piece of code for stream copying. OutputStream os = ...; InputStream is = ...; int bufferLength;
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
Code review tool is complaining Possible null pointer dereference of safeScanWarnings in saveSafeScan(...) At the line if (safeScanWarnings != Null & safeScanWarnings.size() > 0)
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
try { // code which throws exception. } catch (SQLException sqlex) { logger.error(\"Custom message\", sqlex);
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?