Commit Graph

3150 Commits

Author SHA1 Message Date
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
Matthew Jason Benson 1d41504168 [LANG-709] Increase test coverage of MethodUtils invoke methods and a few test corrections
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1140015 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 04:58:35 +00:00
Matthew Jason Benson 9036626a13 formatting/ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1139924 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 19:32:14 +00:00
Matthew Jason Benson da62188954 reset to SNAPSHOT; per our release instructions there is at least one way to create the tag such that the removal of the SNAPSHOT designation takes place in the same commit as the tag creation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1137089 13f79535-47bb-0310-9956-ffa450edef68
2011-06-18 00:03:40 +00:00
Matthew Jason Benson 2d64d32596 use commons.release.version property as instructed in http://wiki.apache.org/commons/UsingNexus
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1137088 13f79535-47bb-0310-9956-ffa450edef68
2011-06-17 23:58:24 +00:00
Matthew Jason Benson a0512c014e note LANG-684 in release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1137084 13f79535-47bb-0310-9956-ffa450edef68
2011-06-17 23:47:52 +00:00
Matthew Jason Benson 15f4c21a3b javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1136518 13f79535-47bb-0310-9956-ffa450edef68
2011-06-16 16:12:40 +00:00
Matthew Jason Benson f1b8ec1888 ws only
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1136516 13f79535-47bb-0310-9956-ffa450edef68
2011-06-16 16:11:20 +00:00
Matthew Jason Benson a6f4e95950 match exception message from threshold-free LD implementation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1136508 13f79535-47bb-0310-9956-ffa450edef68
2011-06-16 16:03:51 +00:00
Matthew Jason Benson 0467966f4b [LANG-684] Levenshtein Distance Within a Given Threshold; submitted by Eli Lindsey
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1136496 13f79535-47bb-0310-9956-ffa450edef68
2011-06-16 15:52:09 +00:00
Stephen Colebourne 734d218eb5 Fix Javadoc bug; Improve implementation and tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1133336 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 10:51:27 +00:00
Sebastian Bazley 6887d0f09c Additional varargs tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132845 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 00:50:50 +00:00
Sebastian Bazley d3e471045c Additional null cast tests for varargs methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132837 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 00:03:16 +00:00