apply patch 3084292: character reference in xml report - thanks to Seko

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7319 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Romain Pelisse
2011-09-23 17:55:34 +00:00
parent 275fcc6def
commit 9102b422bf
3 changed files with 69 additions and 79 deletions

View File

@ -439,6 +439,7 @@ The RuleSet XML Schema is located in the source at: etc/ruleset_2_0_0.xsd
The RuleSet DTD is located in the source at: etc/ruleset_2_0_0.dtd
Improved include/exclude pattern matching performance for ends-with type patterns.
Modify (and hopefully fixed) CPD algorithm thanks to a patch from Juan Jesús García de Soria.
Fixed character reference in xml report - thanks to Seko
New Java rules:

View File

@ -37,7 +37,7 @@ public class StringUtilTest {
/**
* Usually you would set the system property "net.sourceforge.pmd.supportUTF8" to either "no" or "yes", to
* switch UTF8 support.
*
*
* e.g.
* <code>System.setProperty("net.sourceforge.pmd.supportUTF8","yes");</code>
*/
@ -46,7 +46,7 @@ public class StringUtilTest {
StringBuilder sb = new StringBuilder();
String test = "é";
StringUtil.appendXmlEscaped(sb, test, false);
assertEquals("&#233;", sb.toString());
assertEquals("&#xe9;", sb.toString());
}
@Test

File diff suppressed because it is too large Load Diff