Commit Graph

2755 Commits

Author SHA1 Message Date
Henri Yandell bd082cddc8 Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153350 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 05:29:21 +00:00
Henri Yandell 2d9e540fdf Adding Apache license header to placate RAT
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153349 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 05:29:13 +00:00
Henri Yandell 11ecc04c07 Added missing @since 3.0.1 tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153346 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 04:59:46 +00:00
Henri Yandell b2c23e4697 Rolling back r1153037 and r1153038 - the changes didn't help
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153343 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 04:49:45 +00:00
Joerg Schaible f761a82212 Missing method getRawMessage for ContextedException and ContextedRuntimeException (LANG-737).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153271 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 21:04:35 +00:00
Gary D. Gregory 2b5f7a79b0 Fix PMD issues: "These nested if statements could be combined"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153241 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 18:49:52 +00:00
Gary D. Gregory ad5b9b0149 [LANG-734] The CHAR_ARRAY cache in CharUtils duplicates the cache in java.lang.Character.
[LANG-735] Deprecate CharUtils.toCharacterObject(char) in favor of java.lang.Character.valueOf(char).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153229 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 18:04:51 +00:00
Gary D. Gregory 9c28c3538d Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153214 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 17:37:12 +00:00
Gary D. Gregory 6a14e228f5 Javadoc for generics.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153213 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 17:35:39 +00:00
Henri Yandell 2d4b3edff9 Escaping <T>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153058 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 07:39:30 +00:00
Henri Yandell 8bff241c54 Noting improved exception message
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153048 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 07:10:43 +00:00
Henri Yandell d43bde077e Updating changes.xml with all resolved items
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153047 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 07:04:13 +00:00
Henri Yandell b82ab99340 Applying Sven Ludwig's patch from LANG-626. This modifies the SerializationUtils.clone method to use the threadContextLoader if it is unable to find a class using the object's current classloader. This should (hopefully) help with Weblogic and Tomcat situations where Lang is outside the web-inf for some reason (likely user error with Tomcat, by design for Weblogic)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153046 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 06:57:04 +00:00
Henri Yandell 9908144874 Added comment on LANG-727
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153038 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 06:14:57 +00:00
Henri Yandell 656312f90a Rearranging the testReflectionHierarchyArrayList test per LANG-727; shouldn't make assumptions about ArrayList now
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153037 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 06:14:17 +00:00
Henri Yandell d94ef57853 Changing exception message per Sebb's comment iN LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1152021 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 22:21:38 +00:00
Henri Yandell a7fe1f5018 Improving error message when recursion fails TTL in replaceEachRepeatedly. LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151345 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 06:02:06 +00:00
Henri Yandell 64dd0a070b Fixing javadoc to use the right exception types. Related to LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151343 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 05:59:00 +00:00
Henri Yandell 85d6318351 Fixing javadoc. The replaceEachRepeatedly does in fact repeat. Related to LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151340 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 05:55:39 +00:00
Matthew Jason Benson 37b9565b26 require values parameter when generating bit vectors from enums, throwing NullPointerException if omitted; merge check for type eligibility; add E... generateBitVector() variant; alter generateBitVector(Class<E>, EnumSet<E>) to (Class<E>, Iterable<E>) by using |= << instead of + to accumulate values; process only specified values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1149320 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 19:11:47 +00:00
Matthew Jason Benson 42c7d34dff junit4ify EnumUtilsTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1149314 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 18:54:45 +00:00
Henri Yandell 4574329913 Adding Nelson Carpentier's patch adding an EnumSet to bit vector (and back again) to EnumUtils. LANG-730
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1149058 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 08:00:28 +00:00
Gary D. Gregory b1d97bc2fa Test that XML should be able to unescape >0x7f values with leading 0s.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148531 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 21:03:42 +00:00
Gary D. Gregory 2c3fa8366e Javadoc, comments, and message strings: Change "unicode" to "Unicode".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148520 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 20:53:23 +00:00
Henri Yandell e9a72d4552 Adding a link to the 2->3 clirr report and a note on 2 and 3 being in different packages to the front page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148233 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:40:02 +00:00
Henri Yandell cd7b32ad09 Adding 3.0 release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148227 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:31:05 +00:00
Henri Yandell eac36c633d Fixing the 3.0 release date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148225 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:30:03 +00:00
Henri Yandell 50d7884787 Added note on Lang 3.0 being useable beside earlier versions; and removing the lang3.exception header
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148224 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:28:56 +00:00
Henri Yandell de3285f462 Adding a unit test for LANG-729
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148172 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:17:03 +00:00
Henri Yandell 5997452fe7 Fixing test to use the right escaper; numeric entities and not unicode. LANG-728
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148167 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:10:03 +00:00
Henri Yandell 1a22532991 Fixing documentation; it was pointing to UnicodeEscaper and not NumericEntityEscaper. Also updated the API to not be Range based as we dropped that.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148166 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:09:46 +00:00
Henri Yandell 2556149b64 Fixing javadoc - it was pointing to the wrong translator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148164 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:08:14 +00:00
Henri Yandell 42dd1e1902 Dropping Ignore import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148163 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:04:00 +00:00
Henri Yandell 9fa142b118 Updating unit test for LANG-728 to work with Lang 3.0 way of using escapeXml with > 0x7f characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148162 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 04:58:03 +00:00
Henri Yandell 96156936d8 Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148160 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 04:54:58 +00:00
Henri Yandell c40ebb8edf Setting 3.0 release date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148140 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 03:41:22 +00:00
Matthew Jason Benson 2e072c1da8 [LANG-726] Add a method e.g. Range<T> Range<T>.intersectionWith(Range<T>)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147537 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 06:10:37 +00:00
Matthew Jason Benson 6c65862a68 junit4ify RangeTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147536 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 06:01:17 +00:00
Matthew Jason Benson fe235bbb83 junit expected exceptions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147531 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:33:33 +00:00
Matthew Jason Benson 2b0b97178b junit4ify NumberUtilstest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147528 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:18:14 +00:00
Matthew Jason Benson b46f9adc0b revert c1147524
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147526 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:16:30 +00:00
Matthew Jason Benson 4660e5159b [LANG-724] Convert Validate.noNullElements(Object[]) to varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147524 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:02:39 +00:00
Henri Yandell 30bae8f0ff Updating the clirr report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147523 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 04:48:14 +00:00
Matthew Jason Benson 81b5435a3a [LANG-723] Add mode and median Comparable... methods to ObjectUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147522 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 04:22:51 +00:00
Matthew Jason Benson aee1b76fb6 junit4ify ObjectUtilsTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147521 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 03:46:44 +00:00
Matthew Jason Benson afa12a7960 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147520 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 03:43:51 +00:00
Matthew Jason Benson b81dfde37c commentary
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147515 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 02:56:15 +00:00
Matthew Jason Benson 8ffdb2df2e ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147513 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:44:50 +00:00
Matthew Jason Benson b4a00f93bf add @since tags for and/or methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147512 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:43:57 +00:00
Matthew Jason Benson c808034989 [LANG-722] Add BooleanUtils.and/or varargs methods to complement xor
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147511 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:39:14 +00:00
Matthew Jason Benson 061a53be62 use exception expectations
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147510 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:24:38 +00:00
Matthew Jason Benson 655c442730 junit 4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147509 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:10:05 +00:00
Matthew Jason Benson 0bfa9cbfb8 reduce number of created arrays
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147508 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 00:43:55 +00:00
Matthew Jason Benson 4b047fc607 [LANG-721] Complement ArrayUtils.addAll() variants with by-index and by-value removal methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147507 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 00:30:04 +00:00
Gary D. Gregory fe645ed552 Use a private static final instead of an ivar.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147501 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 22:31:35 +00:00
Gary D. Gregory 12f8a472c0 Format consistently {}'s.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147500 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 22:29:57 +00:00
Gary D. Gregory 137d5f6753 [LANG-728] StringEscapeUtils.escapeXml(str) does not support supplemental characters. Add one failing test method with @Ignore (= it is not run.)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147499 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 22:28:34 +00:00
Gary D. Gregory d4319b1c17 Convert to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147498 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 22:26:43 +00:00
Gary D. Gregory c04611f260 Test for [LANG-720] StringEscapeUtils.escapeXml(input) outputs wrong results when an input contains characters in Supplementary Planes. [LANG-708] StringEscapeUtils.escapeEcmaScript from lang3 cuts off long unicode string.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147212 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 16:12:50 +00:00
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
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
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 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 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
Sebastian Bazley 114e59cc83 Revert r113289 - varargs invocation does not work with null
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132658 13f79535-47bb-0310-9956-ffa450edef68
2011-06-06 14:24:21 +00:00
Sebastian Bazley e909357fb4 Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132390 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 12:45:10 +00:00
Sebastian Bazley d3d4622998 Eliminate varargs warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132389 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 12:44:41 +00:00
Sebastian Bazley ffbc41e725 Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132388 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 12:44:13 +00:00
Henri Yandell 61cba9d9a4 Fixing accidental switch to 'int' in r1131309
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1131310 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 02:58:30 +00:00
Henri Yandell c1cb131f71 Adding comment on refactoring of API before making it public
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1131309 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 02:44:27 +00:00
Stephen Colebourne 0ad6c30b0e Refactor Range with lots of new methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1127565 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 15:43:35 +00:00
Stephen Colebourne f5682c4c70 Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1127563 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 15:43:04 +00:00
Stephen Colebourne 3513ecb0b7 Fix toString(format)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1127554 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 15:29:31 +00:00
Stephen Colebourne 7e6b6fce8d Remove Formattable from Pair
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1127546 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 14:44:04 +00:00
Stephen Colebourne 3933e63c7c Make ImmutablePair final; Minor fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1127544 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 14:35:42 +00:00
Gary D. Gregory 0431c59fe0 Format.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1125416 13f79535-47bb-0310-9956-ffa450edef68
2011-05-20 14:33:17 +00:00
Matthew Jason Benson facd90be6f rename MutablePair setters for bean compatibility
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1124337 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 17:01:47 +00:00
Matthew Jason Benson 68ba5d616a sp
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099434 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 12:51:15 +00:00
Sebastian Bazley 543bbb4d64 Suppress boxing warnings that are deliberate
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099422 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 11:44:41 +00:00
Sebastian Bazley 78de63c7c0 Make boxing explicit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099420 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 11:42:56 +00:00
Stephen Colebourne 154da561fd Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099416 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 11:22:29 +00:00
Stephen Colebourne 7699d19aaa Test impact on Pair of being Formattable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099414 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 11:13:51 +00:00
Stephen Colebourne f1db2dda80 Inline the Pair toString for performance, and specify the format
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099413 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 11:13:17 +00:00
Sebastian Bazley bfb76fae2f Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099412 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 11:11:39 +00:00
Stephen Colebourne 3149ea2511 Change Calendar.getInstance to new GregorianCalendar
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099402 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 10:39:14 +00:00
Stephen Colebourne 5f9fd135a2 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099401 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 10:37:14 +00:00
Stephen Colebourne 08cfc7ffba Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1099398 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 10:25:12 +00:00
Oliver Heger ad97691891 Fixed a test failure which occurred under certain circumstances (Java 1.5 with default locale GERMAN).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1098403 13f79535-47bb-0310-9956-ffa450edef68
2011-05-01 20:27:16 +00:00
Henri Yandell aed9a4bd31 Updating the clirr report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1097701 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 06:23:29 +00:00
Henri Yandell a1eee7b8d4 Adding notes on getSimpleName and FormattableUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1097700 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 06:14:46 +00:00
Henri Yandell f597044b43 Noting the difference between getSimpleName and getShortName in the getShortName javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1097697 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 05:59:53 +00:00
Gary D. Gregory 7f189bd416 Add test that omits arg to invoke constructor.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1097487 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 14:49:45 +00:00
Sebastian Bazley 2e73a40df5 Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096718 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 10:44:07 +00:00
Gary D. Gregory 3822209578 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096574 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 19:51:57 +00:00
Gary D. Gregory 8691eb0328 Set SIMPLEST_FORMAT to "%s", which is simpler that "%1$s"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096573 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 19:41:08 +00:00
Gary D. Gregory 28feb02b2e Add back Pair#toString(String format).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096506 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 16:00:32 +00:00
Matthew Jason Benson af9cbd35d5 typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096472 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 13:28:06 +00:00
Henri Yandell a9831e81fa Renaming the newly public pad(int, char) method to repeat(char, int) [note the swap of param order]. I've also pulled the faster implementation out of repeat(String, int).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096419 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 06:38:04 +00:00
Henri Yandell 8634371ec0 Updating clirr report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096106 13f79535-47bb-0310-9956-ffa450edef68
2011-04-23 06:11:56 +00:00
Henri Yandell d1b632acaf Adding javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096102 13f79535-47bb-0310-9956-ffa450edef68
2011-04-23 04:56:19 +00:00
Henri Yandell 32cd493435 Adding javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096101 13f79535-47bb-0310-9956-ffa450edef68
2011-04-23 04:55:17 +00:00
Gary D. Gregory b168f29106 Move new FormattableUtils class to .text from .util.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1096058 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 21:53:14 +00:00
Gary D. Gregory 95008b9efd Make the pad method public. I can use this now :) ! The method used to be private and named padding. It is used internally and covered by unit tests through leftPad(), rightPad() and repeat().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095998 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 19:28:58 +00:00
Gary D. Gregory 9d1a1d7816 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095955 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 15:57:37 +00:00
Gary D. Gregory 10e83fc8e6 Eat own dog food: Replace "" with StringUtils.EMPTY.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095935 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 13:51:53 +00:00
Matthew Jason Benson 9d2f0b9a18 Pair implements java.util.Formattable and defers toString() handling thereto.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095836 13f79535-47bb-0310-9956-ffa450edef68
2011-04-21 22:25:00 +00:00
Matthew Jason Benson 2fb208b8d8 [LANG-697] Add FormattableUtils class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095833 13f79535-47bb-0310-9956-ffa450edef68
2011-04-21 22:21:13 +00:00
Gary D. Gregory 0e3ec0b68e Add two new null-safe APIs: getSimpleName(*). See https://issues.apache.org/jira/browse/LANG-696
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095752 13f79535-47bb-0310-9956-ffa450edef68
2011-04-21 15:33:02 +00:00
Henri Yandell 9ef322c33c Refactoring FastDateFormat per LANG-462 to use the FormatCache class created for an upcoming DateParser functionality. I've kept FormatCache package-private for now.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095299 13f79535-47bb-0310-9956-ffa450edef68
2011-04-20 06:51:16 +00:00
Henri Yandell 5a7a09256e Adding a test related to LANG-693 for createNumber
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095285 13f79535-47bb-0310-9956-ffa450edef68
2011-04-20 06:27:28 +00:00
Henri Yandell 9d619172ee Moving from lang.xxx to lang3.xxx
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1095284 13f79535-47bb-0310-9956-ffa450edef68
2011-04-20 06:14:07 +00:00
Henri Yandell ddfb336e3e Moving indexOfAnyBut and containsAny to vararg APIs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1094098 13f79535-47bb-0310-9956-ffa450edef68
2011-04-17 04:26:20 +00:00
Henri Yandell 7d9ade1caa Moving lastIndexOfAny and indexOfAny to (CharSequence, CharSequence...) from (CharSequence, CharSequence[])
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1092824 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 21:44:56 +00:00
Henri Yandell e00c223382 Added more @since 3.0 CharSequence changes. Fixed an @since 3.1 to 3.0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1092822 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 21:42:21 +00:00
Henri Yandell 7271276871 Adding @since 3.0 CharSequence tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1092817 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 21:26:52 +00:00
Matthew Jason Benson ad83272aa8 remove javadoc param tag for nonexistent parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091967 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 22:44:40 +00:00
Matthew Jason Benson 3c977ad1fa cure warnings for arrays of component type other than Object are specified to StringUtils.join()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091966 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 22:32:13 +00:00
Gary D. Gregory 8256dbef70 Refactor all 3 three Pair classes from o.a.c.l to o.a.c.l.tuple.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091531 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 18:29:49 +00:00
Stephen Colebourne 079cf8b020 Simplify code; Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091471 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 15:34:43 +00:00
Stephen Colebourne 47132a3fcc Organize imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091457 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 15:18:09 +00:00
Stephen Colebourne 38b539ae39 LANG-692 - Add hashCodeMulti varargs method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091452 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 15:17:07 +00:00
Stephen Colebourne c60aa33843 LANG-692 - Add hashCodeMulti varargs method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091448 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 15:13:36 +00:00
Stephen Colebourne dbcaeecb4f Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091420 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 14:13:25 +00:00
Henri Yandell 7cf67797a0 Removing unncessary brackets
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091344 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 09:38:46 +00:00
Gary D. Gregory 329b2576f8 Javadoc the Java version reported by Android.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091246 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 22:49:04 +00:00
Gary D. Gregory a7530eae97 Rename getRightElement() to getRight(). Rename getLeftElement() to getLeft().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091241 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 22:39:35 +00:00
Henri Yandell 54de75b635 Noting LANG-691 in the release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091206 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 20:59:01 +00:00
Henri Yandell d827bb7604 Removing UTC_TIME_ZONE per LANG-691
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091202 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 20:52:18 +00:00
Matthew Jason Benson 7e73ff593f defer default toString() handling to toString(format)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091197 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 20:31:14 +00:00
Gary D. Gregory 8d0de8421b Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091158 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 18:10:23 +00:00
Gary D. Gregory 29066c6e89 Add Pair.toString(String)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091156 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 18:07:54 +00:00
Stephen Colebourne 37fa5d6fa4 Enhance pair classes; Shorten toString form; Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091146 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 17:48:14 +00:00
Matthew Jason Benson a283547d5c ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091096 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 15:07:29 +00:00
Matthew Jason Benson 77c0ffce3c varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091095 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 15:06:32 +00:00
Matthew Jason Benson 93666dd2f2 varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091094 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 15:05:49 +00:00
Matthew Jason Benson 359cb03882 remove unnecessary reflection parameter args
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091091 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 14:41:44 +00:00
Gary D. Gregory 0734a04ca7 Use Java 5 getSimpleName API.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091086 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 14:20:43 +00:00
Gary D. Gregory aaadcb2b54 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091085 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 14:18:46 +00:00
Matthew Jason Benson ca7f616594 remove javadocs detailing things the #getCause() methods no longer do
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091084 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 14:18:26 +00:00
Gary D. Gregory 82ce12fee3 Add a test for default toString behavior.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091075 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 13:53:29 +00:00
Matthew Jason Benson e8ea1dd79d javadoc correction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091072 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 13:42:03 +00:00
Matthew Jason Benson 9a901d2580 no point specifying public access to a constructor of a private class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091071 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 13:38:03 +00:00
Matthew Jason Benson 88c13f8e6b ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091070 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 13:36:15 +00:00
Matthew Jason Benson 83d1dbf5eb tab alignment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091066 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 13:30:11 +00:00
Phil Steitz f070298869 Restored Ant build.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090934 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 05:00:19 +00:00
Phil Steitz fc9dec48b8 Fixed javadoc spelling errors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090932 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 04:23:01 +00:00
Matthew Jason Benson 8d01b77e2e fix introduced failures having to do with removing the call to internal helper method #toNoNullStringArray()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090821 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 15:59:07 +00:00
Matthew Jason Benson 880c74f3a3 more varargs-related updates
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090813 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 15:03:23 +00:00
Matthew Jason Benson a681d650f6 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090811 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 14:51:19 +00:00
Henri Yandell 19e4076ee1 Updating the manual clirr report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090526 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 04:59:08 +00:00
Henri Yandell 83558381e3 Adding LANG-510
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090525 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 04:47:15 +00:00
Henri Yandell f08d8a2b0c Fixing documentation post translate move to Range API
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090522 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 04:30:12 +00:00
Henri Yandell 1a1145199e Moving 510 to below the beta fold. Adding LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090521 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 04:24:47 +00:00
Henri Yandell 944040db83 Fixing @see reference
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090514 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 02:41:19 +00:00
Henri Yandell b310b05700 Making it explicit that the else statement expects to jump to the next iteration of the loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090511 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 02:16:13 +00:00
Henri Yandell 0a1740cb4d Changing comment so PMD notices the NOPMD
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090510 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 02:14:26 +00:00
Henri Yandell 235040fa98 Making CharRange non-public. LANG-689
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090427 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 20:17:10 +00:00
Henri Yandell 4458775718 Note the CharSequence API change
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090426 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 20:17:00 +00:00
Henri Yandell 287b2cd800 Moving text translation classes to the Range class for its configuration
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090111 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 04:47:21 +00:00
Sebastian Bazley 0d01e050fa Fix broken test - Sun Java and Eclipse casting nasturtiums at each other
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090006 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:57:08 +00:00
Henri Yandell 6623901d3f My screwup. Rolling back didn't fix, so rolling forward again. No idea still why the build fails; needs investigation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090004 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:55:43 +00:00
Henri Yandell 22822da85e Rolling back the TypeUtilsTest change in r1089973 as it breaks the build. Unsure why.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090000 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:47:48 +00:00
Henri Yandell ee1dce15c2 Removing @author that was introduced by undeleting a file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089996 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:41:01 +00:00
Sebastian Bazley 937114b426 Missing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089974 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:10:40 +00:00
Sebastian Bazley 44a1c545c2 Comment out useless self-assigns
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089973 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:09:31 +00:00
Sebastian Bazley b084341cba Raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089971 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:06:21 +00:00
Sebastian Bazley 306b3880e1 Unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089970 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:05:50 +00:00
Sebastian Bazley 45be0392e8 Rewrap text
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089968 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 20:03:59 +00:00
Matthew Jason Benson 368fe5337c keywords fixup
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089964 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 19:49:02 +00:00
Matthew Jason Benson faae4b3b10 formatting
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089963 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 19:47:43 +00:00
Matthew Jason Benson f4c4d5ab24 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089961 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 19:46:58 +00:00
Matthew Jason Benson e490a84b17 [LANG-688] removed unnecessary elses and use of ternary operator with primitive boolean consequences e.g. (some boolean expression) ? true : false
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089904 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 15:03:21 +00:00
Henri Yandell 2541a62def Moving the CharSequence specific methods out of StringUtils and reintroducing the CharSequenceUtils class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089751 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 06:28:21 +00:00
Henri Yandell e5763ff6f0 Adding a test to enforce the CharSequence vs String contract for StringUtils. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089742 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:22:01 +00:00
Henri Yandell 7a37a3deb2 Adding missing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089741 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:02:00 +00:00
Henri Yandell fb79157dbb Adding NOPMD tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089740 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:01:54 +00:00
Henri Yandell d6fe7f6789 Adding NOPMD tags for various empty catch blocks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089736 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:39:33 +00:00
Henri Yandell b9b11b94c8 Adding javadoc for the new regionMatchesSequence method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089734 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:37:52 +00:00
Henri Yandell 5a7b17cf3e Reapplying more of Oliver's checkstyle fixes from r1083211
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089733 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:34:35 +00:00
Henri Yandell 3b180e56c3 Moving N.B. to NOTE: to standardize that tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089730 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:14:33 +00:00
Henri Yandell 473359a5cc Moving a startsWith test to the right test class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089726 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:05:57 +00:00
Henri Yandell 3dc67a2a4a Added CharSequence endsWithAny and startsWithAny tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089725 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:04:26 +00:00
Henri Yandell cc3b4d31bc Implemented the native CharSequence version of toCharArray
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089724 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:03:55 +00:00
Henri Yandell d1b24a3fea Moving equalsIgnoreCase, indexOfIgnoreCase, lastIndexOfIgnoreCase and containsIgnoreCase to the CharSequence API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089695 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 00:24:50 +00:00
Henri Yandell 3af0fd99d1 Adding green regionMatches implementation and moving endsWith and startsWith methods to use it; thus giving them CharSequence based APIs. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089540 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 17:21:36 +00:00
Henri Yandell 5b8fd90207 Rolling back accidental r1089306 commit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089307 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:36:35 +00:00
Henri Yandell 09cf7964fc Moving countMatches, ordinalIndexOf and lastOrdinalIndexOf over to a CharSequence-based API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089306 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:34:26 +00:00
Henri Yandell 50f136c874 Moving countMatches, ordinalIndexOf and lastOrdinalIndexOf over to a CharSequence-based API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089305 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:31:22 +00:00
Henri Yandell 3d041e3560 Moving stripAccents to accepting String instead of CharSequence. Even though the underlying Java API takes CharSequence, it makes for a clumsy interface and it is better to encourage the user to handle their own toString. Related to LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089303 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:16:17 +00:00
Henri Yandell 6dfc599a23 Replacing some of the older code. When performing a mutation operation (even if it's on an immutable by returning a new instance), String should go in and String should come out. When performing a non-mutation operation, CharSequence should be passed in. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089302 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:11:31 +00:00
Henri Yandell 3a0c152c22 Removing @author tags per thread on dev@: http://mail-archives.apache.org/mod_mbox/commons-dev/201104.mbox/%3CBANLkTikEa6GNSghx5VidxgNqi3nmKxxcVA@mail.gmail.com%3E
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088899 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 05:31:27 +00:00
Matthew Jason Benson 1dd3a636aa varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088656 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 14:55:08 +00:00
Henri Yandell 325648a185 Rolling capitalize and uncapitalize back from (CharSequence) to (String)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088505 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 08:42:38 +00:00
Henri Yandell 9946140913 Rolling StringUtils and test code back to r1082046. The move to CharSequence is theoretically desirable, but there are no common immutable CharSequence subclasses other than String, making this a complex and useless change. Instead StrBuilder should be enhanced. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088444 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 23:41:59 +00:00
Henri Yandell f5a6dc28f5 Setting the length of the new array to optimize speed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088439 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 23:35:59 +00:00
Henri Yandell a859fffc0a Removing unnecessary code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088424 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 21:45:35 +00:00
Matthew Jason Benson 9f7311fa2f varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088344 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:30:34 +00:00
Matthew Jason Benson ff5d71e1c1 varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088343 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:25:36 +00:00
Matthew Jason Benson f10738fcb5 merge CharSetUtils String[] and String method forms to String...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088340 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:19:31 +00:00