Commit Graph

2743 Commits

Author SHA1 Message Date
Henri Yandell 8b7f1e5c99 Missed 3.0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156021 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:40:48 +00:00
Henri Yandell 92cd620d4b Upgrading version in site.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156020 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:39:35 +00:00
Henri Yandell 2b0a81b899 Adding 2.x release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156018 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:04:22 +00:00
Henri Yandell 03bcf46acd Linking in release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156017 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:02:34 +00:00
Henri Yandell a644b32010 More release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156016 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:01:38 +00:00
Henri Yandell c600bccaeb Adding the 3.0.1 release notes as text. Managing a copy in HTML is a real pain in the arse, especially as it primarily duplicates changes.xml. Instead I'm going to build a dir with all the release notes we've had
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156015 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 03:58:11 +00:00
Henri Yandell 5716bf685b Improving the text to work with our having released more than one 3.x version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156014 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 03:56:45 +00:00
Sebastian Bazley f59609bb4d eol-style
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1155421 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 16:13:53 +00:00
Henri Yandell 64003a07a7 Updating site to 3.0.1. Realizing that I'll have some fun keeping the compare/ package out of the site upon 3.0.1 release :)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154847 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:49:27 +00:00
Henri Yandell b0e216a208 Fixing package names and adding excludes to the pom.xml for the parts of the collections framework that followed over
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154844 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:26:12 +00:00
Henri Yandell 2093b8da08 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154842 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:20:03 +00:00
Henri Yandell f971e82651 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154841 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:59 +00:00
Henri Yandell 4d0f6ab3f0 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154840 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:56 +00:00
Henri Yandell 12c7493a52 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154839 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:54 +00:00
Henri Yandell c66005b91f Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154838 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:51 +00:00
Henri Yandell 359d7d225e Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154837 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:01 +00:00
Henri Yandell 0597723492 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154836 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:18:36 +00:00
Henri Yandell f32ee938f3 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154835 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:18:14 +00:00
Henri Yandell 9c96f2a222 Fixing package names so things compile. Removing Boolean and Transform usages in ComparatorUtils as those classes didn't come accross
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154833 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:15:51 +00:00
Henri Yandell 6f279ce78b Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154832 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:11:36 +00:00
Henri Yandell cebecbbca8 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154831 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:11:26 +00:00
Henri Yandell 2276b288b8 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154830 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:11:16 +00:00
Henri Yandell c405a2bac5 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154829 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:59 +00:00
Henri Yandell c409d49153 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154828 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:47 +00:00
Henri Yandell 8650ed30a0 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154827 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:33 +00:00
Henri Yandell 8fb580f1a8 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154826 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:00 +00:00
Henri Yandell c80a3d41d7 Generating a txt file as well as the xml for the changes report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154814 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 04:07:20 +00:00
Joerg Schaible ef346b48b2 Ignore assertions for IBM JDK 1.6.0 in ToStringBuilderTest.testReflectionHierarchyArrayList because the test makes assumptions on the internal representation of an ArrayList (LANG-727).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154530 13f79535-47bb-0310-9956-ffa450edef68
2011-08-06 15:43:07 +00:00
Matthew Jason Benson 31bd69942f junit4ify ToStringBuilderTest + some generics-related fixup
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154217 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 13:58:52 +00:00
Matthew Jason Benson 391375b08a missing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154216 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 13:57:16 +00:00
Henri Yandell 18c02cbd9b Adding a '.' to the end of every <action>. This fits the subsequent addition of 'Fixes' in the generated report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154113 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 07:58:55 +00:00
Gary D. Gregory e6e215d960 [LANG-738] Use internal Java's Number caches instead creating new objects
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153491 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:55:53 +00:00
Gary D. Gregory f5026c122d Use internal Java's Number caches instead creating new objects:
- Use more efficient Integer cache: Use "Integer.valueOf(int)" instead of "new Integer(int)".
- Use more efficient Long cache: Use "Long.valueOf(int)" instead of "new Long(long)".
- Use more efficient Short cache: Use "Short.valueOf(int)" instead of "new Short(short)".

In Java version 1.6.0_24 (vendor: Sun Microsystems Inc.), Float and Double do not implement caches, but I've made the same changes for consistency and future proofing.

- Use "Double.valueOf(int)" instead of "new Double(double)".
- Use "Float.valueOf(int)" instead of "new Float(float)".

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153490 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:53:35 +00:00
Gary D. Gregory 16d92dc923 Use more efficient Short cache: Use "Short.valueOf(int)" instead of "new Short(short)"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153488 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:47:49 +00:00
Gary D. Gregory 4b1702489c Use more efficient Long cache: Use "Long.valueOf(int)" instead of "new Long(long)"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153487 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:44:51 +00:00
Gary D. Gregory ddeba76d0b Use more efficient Integer cache: Use "Integer.valueOf(int)" instead of "new Integer(int)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153484 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:39:42 +00:00
Gary D. Gregory 9d6f32538c Use more efficient Integer cache.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153479 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:28:39 +00:00
Gary D. Gregory 6869f0abad Generify.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153477 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:26:35 +00:00
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