Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 71054 invoked from network); 8 Jul 2008 19:03:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2008 19:03:31 -0000 Received: (qmail 81994 invoked by uid 500); 8 Jul 2008 19:03:32 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 81945 invoked by uid 500); 8 Jul 2008 19:03:32 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 81936 invoked by uid 99); 8 Jul 2008 19:03:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 12:03:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 19:02:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C4B2623889FE; Tue, 8 Jul 2008 12:03:10 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r674914 - in /cxf/trunk: buildtools/pom.xml buildtools/src/main/java/org/apache/cxf/pmd/ buildtools/src/main/java/org/apache/cxf/pmd/UnsafeStringConstructorRule.java buildtools/src/main/resources/cxf-pmd-custom.xml parent/pom.xml Date: Tue, 08 Jul 2008 19:03:10 -0000 To: commits@cxf.apache.org From: bimargulies@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080708190310.C4B2623889FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bimargulies Date: Tue Jul 8 12:03:10 2008 New Revision: 674914 URL: http://svn.apache.org/viewvc?rev=674914&view=rev Log: Add a PMD rule that catches String operations that use the default charset. These can lead to trouble when users use funny charsets. Custom rules like this don't work on Eclipse, so this is not enabled for the PMD plugin. Added: cxf/trunk/buildtools/src/main/java/org/apache/cxf/pmd/ cxf/trunk/buildtools/src/main/java/org/apache/cxf/pmd/UnsafeStringConstructorRule.java (with props) cxf/trunk/buildtools/src/main/resources/cxf-pmd-custom.xml (with props) Modified: cxf/trunk/buildtools/pom.xml cxf/trunk/parent/pom.xml Modified: cxf/trunk/buildtools/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/buildtools/pom.xml?rev=674914&r1=674913&r2=674914&view=diff ============================================================================== --- cxf/trunk/buildtools/pom.xml (original) +++ cxf/trunk/buildtools/pom.xml Tue Jul 8 12:03:10 2008 @@ -80,6 +80,11 @@ 1.0-alpha-15 true + + pmd + pmd + 4.2 + + + PMD Plugin rules with custom Javascript. + + + Don't use new String(byte[]) or new String(byte[], int, int). + + 3 + + + + + + Propchange: cxf/trunk/buildtools/src/main/resources/cxf-pmd-custom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: cxf/trunk/buildtools/src/main/resources/cxf-pmd-custom.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: cxf/trunk/buildtools/src/main/resources/cxf-pmd-custom.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: cxf/trunk/parent/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/parent/pom.xml?rev=674914&r1=674913&r2=674914&view=diff ============================================================================== --- cxf/trunk/parent/pom.xml (original) +++ cxf/trunk/parent/pom.xml Tue Jul 8 12:03:10 2008 @@ -216,6 +216,7 @@ cxf-pmd-ruleset.xml + cxf-pmd-custom.xml 1.5 false