Commit Graph

3012 Commits

Author SHA1 Message Date
Matthew Jason Benson 4c2ae062ff typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147189 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 15:20:54 +00:00
Matthew Jason Benson 2c1b5be146 [LANG-720] StringEscapeUtils.escapeXml(input) outputs wrong results when an input contains characters in Supplementary Planes. ALSO rewrite method to avoid modification of counter variable in for loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1146844 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 18:49:51 +00:00
Henri Yandell 8a3e860345 Removing unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1146554 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 04:43:15 +00:00
Henri Yandell 6abc96c55b Setting version to 3.0 in prep for RC4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1146550 13f79535-47bb-0310-9956-ffa450edef68
2011-07-14 03:49:27 +00:00
Joerg Schaible 34a6449c90 Adjust FastDateFormat for Java 7 behavior regarding format of the year pattern (LANG-719).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1146138 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 17:01:37 +00:00
Henri Yandell c023bfb593 Removing the option around whether or not to support the + in \u+0000. JDK 7 now supports the + sign, so UnicodeUnescaper will unescape \u0000 or \u+0000.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1145851 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 03:31:14 +00:00
Gary D. Gregory 262c708b91 Make field static.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1145339 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 20:45:58 +00:00
Henri Yandell 501363c813 Adding NOPMD statement to empty catch
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1145035 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 06:09:39 +00:00
Gary D. Gregory d12a0bf808 [LANG-718] build.xml Java 1.5+ updates.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144999 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 01:02:13 +00:00
Gary D. Gregory 9d6bc2827e Should be a static variable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144995 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:53:09 +00:00
Gary D. Gregory 782ea59054 Make instance variables final where possible.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144993 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:51:16 +00:00
Gary D. Gregory 14373ad1b1 Convert to Java 5 enhanced for loops.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144992 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 00:49:04 +00:00
Gary D. Gregory fab64bbdc7 Convert to Java 5 enhanced loops.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144929 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 18:26:16 +00:00
Gary D. Gregory f3fbf1e4fa Eat own dog food: Call StringUtils.isEmpty().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144925 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 18:07:05 +00:00
Gary D. Gregory 18adf4f0fb Remove unnecessary parens.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144922 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 18:02:50 +00:00
Gary D. Gregory fa4f5d8019 [LANG-716] swapCase and *capitalize speedups.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144921 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 18:01:56 +00:00
Gary D. Gregory 0502919490 [LANG-715] CharSetUtils.squeeze() speedup.
[LANG-714] StringUtils doc/comment spelling fixes.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144917 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 17:52:52 +00:00
Gary D. Gregory 48920b44f0 [LANG-715] CharSetUtils.squeeze() speedup.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144916 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 17:50:21 +00:00
Gary D. Gregory a4f287acdb [LANG-714] StringUtils doc/comment spelling fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144884 13f79535-47bb-0310-9956-ffa450edef68
2011-07-10 15:55:47 +00:00
Joerg Schaible f7bebfacca Remove add and set methods of ExceptionContext types taking a pair. Format entries with index. Improve Javadoc. Add serialization test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144022 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 20:29:51 +00:00
Joerg Schaible 1275959be9 typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144010 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 20:02:10 +00:00
Stephen Colebourne 7526bbfac4 Javdoc and minor tweaks to contexted exception
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143746 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 10:07:06 +00:00
Stephen Colebourne 6fd8000cce Review and cleanup Javadoc in ConstructorUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143735 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 09:52:00 +00:00
Henri Yandell d70baf1370 Moving to an IllegalArgumentException: LANG-710
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143643 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 03:47:17 +00:00
Henri Yandell 458cf9df78 Updating javadoc to mention all three options
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143642 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 03:46:18 +00:00
Henri Yandell 9642e11aac Making unescapeHtml _NOT_ escape unfinished numeric entities by default (it ignores them); however adding options that will fire an exception or unescape the numeric entity. LANG-710
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143641 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 03:44:22 +00:00
Joerg Schaible 6be2343397 Refactor ExceptionContext and derived. Context contract stipulates a sequence of label-value entries with support for multiple entries for the same label.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143612 13f79535-47bb-0310-9956-ffa450edef68
2011-07-06 23:54:57 +00:00
Joerg Schaible 913ddd55dd Typos. Parameter name mismatch in Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143538 13f79535-47bb-0310-9956-ffa450edef68
2011-07-06 19:38:31 +00:00
Joerg Schaible 551346f0f6 Typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1143537 13f79535-47bb-0310-9956-ffa450edef68
2011-07-06 19:30:22 +00:00
Joerg Schaible 53358b1219 Enrich ClasUtils tests for inner types.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142841 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 22:49:33 +00:00
Gary D. Gregory e883181ff4 Port to JUnit 4. Not 100% done.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142704 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 15:03:00 +00:00
Gary D. Gregory 765297b79c Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142700 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 14:50:30 +00:00
Gary D. Gregory c55cbbdd8c Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142699 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 14:48:51 +00:00
Gary D. Gregory bcdfd12ebc Use the active voice in Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142561 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 06:26:45 +00:00
Gary D. Gregory 068bb229f2 Misc Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142560 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 06:24:53 +00:00
Gary D. Gregory 0605c3e044 Use the active voice in Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142559 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 06:23:23 +00:00
Gary D. Gregory 1bb1765bd8 Use the active voice in Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142558 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 06:21:49 +00:00
Gary D. Gregory 3e792ce0c5 [LANG-713] [patch] Increase test coverage of FieldUtils read methods and tweak javadoc. Apply patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142555 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 06:18:26 +00:00
Henri Yandell 0b1db833f2 Adding missing private method javadoc and removing 'unused' import in favour of fully qualified javadoc link
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142401 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 08:30:12 +00:00
Henri Yandell a783018094 Escaping &
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142400 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 08:28:05 +00:00
Henri Yandell 874438dfc1 Documenting LANG-710 in the release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142394 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 08:10:42 +00:00
Henri Yandell 4509b8a49c Removing leftover trace statement
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142390 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 07:57:13 +00:00
Henri Yandell 8914d7f617 Adding tests and resolving LANG-710, reported by Benjamin Valentin. Note that this changed such that the code will now escape an unfinished entity (i.e. &#030). This matches browser behaviour.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142389 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 07:55:33 +00:00
Henri Yandell 23a71e792b Noting LANG-703 in the release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142382 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 07:07:32 +00:00
Henri Yandell a80f11cf9d Applying Ilya's patch from LANG-703 fixing an NPE when toString returns null
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142381 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 07:04:38 +00:00
Henri Yandell f5cb67acd9 Additional tests for MethodUtils from Nathan Beyer - LANG-712
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142380 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 06:59:59 +00:00
Gary D. Gregory e3cb1c6c0a Add build.properties to svn:ignore.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142201 13f79535-47bb-0310-9956-ffa450edef68
2011-07-02 11:02:44 +00:00
Gary D. Gregory 1794482d33 (LANG-711) [patch] add includeantruntime=false to javac targets to quell warnings in ant 1.8.1 and better (and modest performance gain). Apply patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142199 13f79535-47bb-0310-9956-ffa450edef68
2011-07-02 10:58:55 +00:00
Gary D. Gregory d42188e89b (LANG-711) [patch] add includeantruntime=false to javac targets to quell warnings in ant 1.8.1 and better (and modest performance gain). Apply patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142198 13f79535-47bb-0310-9956-ffa450edef68
2011-07-02 10:57:20 +00:00
Henri Yandell 8de2366fc1 Reverting r1090111 - moving the text.translate escapers back from using Range to replicating parts of the Range API. See the list for details ('unnecessary boxing in StringEscapeUtils etc'), the move to Range was an uncomfortable fit.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142151 13f79535-47bb-0310-9956-ffa450edef68
2011-07-02 04:06:23 +00:00