cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r591199 - /incubator/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml
Date Fri, 02 Nov 2007 02:49:17 GMT
Author: jliu
Date: Thu Nov  1 19:49:16 2007
New Revision: 591199

URL: http://svn.apache.org/viewvc?rev=591199&view=rev
Log:
Disabled PMD rule "AssignmentInOperand", i.e., "Avoid assignments in operands.". As I believe
following code snippet is the best way to write this code:        
int i = 0;
InputStream is = new FileInputStream(inputFile);
try {
    while ((i = is.read(tmp)) >= 0) {
    outputstream.write(tmp, 0, i);
}

Modified:
    incubator/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml

Modified: incubator/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml?rev=591199&r1=591198&r2=591199&view=diff
==============================================================================
--- incubator/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml (original)
+++ incubator/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml Thu Nov  1 19:49:16
2007
@@ -59,7 +59,7 @@
     <!--<rule ref="rulesets/codesize.xml/ExcessivePublicCount"/>-->
     <!--<rule ref="rulesets/codesize.xml/TooManyFields"/>-->
 
-    <rule ref="rulesets/controversial.xml/AssignmentInOperand"/>
+    <!--<rule ref="rulesets/controversial.xml/AssignmentInOperand"/>-->
     <!--<rule ref="rulesets/controversial.xml/AtLeastOneConstructor"/>-->
     <!--<rule ref="rulesets/controversial.xml/CallSuperInConstructor"/>-->
     <!--<rule ref="rulesets/controversial.xml/DontImportSun"/>-->



Mime
View raw message