From 01cb7b943d33305398f2cb76e2ce97a3f277ee62 Mon Sep 17 00:00:00 2001 From: Romain Pelisse Date: Tue, 28 Feb 2012 09:40:10 +0000 Subject: [PATCH] Add some tests to reproduce reported bugs git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7636 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/changelog.txt | 1 + .../rule/strings/xml/UselessStringValueOf.xml | 16 ++++++++++++++++ .../sunsecure/xml/MethodReturnsInternalArray.xml | 11 +++++++++++ 3 files changed, 28 insertions(+) diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index eab990fb61..d15634df28 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -27,6 +27,7 @@ TODO - Release blockers - Must implement before this release can be finally fini and pmd-java:typeof). Fixed bug 3470274: Using Label for lines in XMLRenderer +Fixed bug 3175710: NPE in InsufficientStringBufferDeclaration --- diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/strings/xml/UselessStringValueOf.xml b/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/strings/xml/UselessStringValueOf.xml index fc39879bfe..0b4626740d 100644 --- a/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/strings/xml/UselessStringValueOf.xml +++ b/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/strings/xml/UselessStringValueOf.xml @@ -80,4 +80,20 @@ public class Foo { } ]]> + + + 0 + + diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/sunsecure/xml/MethodReturnsInternalArray.xml b/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/sunsecure/xml/MethodReturnsInternalArray.xml index c85a45b48a..2a27296fa9 100644 --- a/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/sunsecure/xml/MethodReturnsInternalArray.xml +++ b/pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/sunsecure/xml/MethodReturnsInternalArray.xml @@ -135,6 +135,17 @@ Interface with array declaration + + + + 0 +