Commit Graph

4000 Commits

Author SHA1 Message Date
Duncan Jones 5a28357bb5 Using Validate where possible in math package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593679 13f79535-47bb-0310-9956-ffa450edef68
2014-05-10 07:22:22 +00:00
Duncan Jones a2c356d7a6 Using Validate where possible in concurrent package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593668 13f79535-47bb-0310-9956-ffa450edef68
2014-05-10 05:58:17 +00:00
Duncan Jones 10641f9ae7 Using Validate where possible in builder package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593622 13f79535-47bb-0310-9956-ffa450edef68
2014-05-09 21:13:01 +00:00
Benedikt Ritter 3728344459 LANG-1008: Change min/max methods in NumberUtils/IEEE754rUtils from array input parameters to varargs. This also closes #23 from github. Thanks to Thiago Andrade.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593118 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 19:05:39 +00:00
Benedikt Ritter 10f136bb01 Use the term distance in documentation of getFuzzyDistance
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593115 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 18:45:59 +00:00
Benedikt Ritter a2f44d03fe Make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593114 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 18:44:01 +00:00
Benedikt Ritter b78295b4fa LANG-999: Add fuzzy String matching logic to StringUtils. This also closes #20 from github. Thanks to Ben Ripkens.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593112 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 18:42:33 +00:00
Sebastian Bazley 287aba5b2e Tab police
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593109 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 18:35:42 +00:00
Sebastian Bazley d16c62aed2 Clarify that 0.d is decimal, not octal
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592931 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 01:20:42 +00:00
Duncan Jones 21cbe9553f Explained treatment of leading zeroes in isNumber() method Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592890 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 21:32:31 +00:00
Duncan Jones 39a5b774ea Corrected Javadoc example.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592876 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 20:46:48 +00:00
Duncan Jones daf4b4f98c Further tidying of Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592873 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 20:41:59 +00:00
Benedikt Ritter 01fe91839a Correct wrong documentation regarding extensibility of ImmutablePair and ImmutableTriple. This closes #13 from github.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592817 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 17:57:38 +00:00
Benedikt Ritter bd7a8d5004 Dummy commit which closes #22 from github
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592816 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 17:49:51 +00:00
Benedikt Ritter 9376d1eb44 Dummy commit which closes #21 from github
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592815 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 17:49:13 +00:00
Benedikt Ritter da147fcb79 Add Thiago Andrade to the list of contributors for his contributions via github.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592812 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 17:30:15 +00:00
Benedikt Ritter 4b28af1e8a Fix typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592811 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 17:29:07 +00:00
Benedikt Ritter c3d65461a3 LANG-1006: Add wrap (with String or char) to StringUtils. This closes PR #21 from github. Thanks to Thiago Andrade.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592810 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 17:28:50 +00:00
Benedikt Ritter 80f1988264 Point potential contributors to the TagList report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592614 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 19:20:53 +00:00
Benedikt Ritter cef1ca2f77 Use finer grained TagList configuration proposed by Bernd Eckenfels for the csv components
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592613 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 19:14:12 +00:00
Benedikt Ritter 7d6e0beccb LANG-1005: Extend DurationFormatUtils#formatDurationISO default pattern to match #formatDurationHMS. Thanks to Michael Osipov.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592592 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 18:02:25 +00:00
Benedikt Ritter d910918faf LANG-1007: Fixing NumberUtils JAVADoc comments for max methods. This also fixes pull request #22 from github. Thanks to Thiago Andrade.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592587 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 17:48:48 +00:00
Duncan Jones 75fbc009dd LANG-731: Better Javadoc for BitField class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592457 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 07:05:33 +00:00
Benedikt Ritter d44f573f7c Add Michael Osipov to the list of contributors for his contributions to DurationFormatUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592361 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 15:43:34 +00:00
Benedikt Ritter fd54d42f78 LANG-1004: DurationFormatUtils#formatDurationHMS implementation does not correspond to Javadoc and vice versa. Thanks to Michael Osipov
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592360 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 15:40:59 +00:00
Benedikt Ritter 00dc479f6a Remove tab characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592330 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 09:36:59 +00:00
Benedikt Ritter 2f0beab7a8 Remove more debug output (which is never actually written out)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592326 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 09:02:19 +00:00
Benedikt Ritter 98f76f4c98 Remove debug output from test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592325 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 08:59:46 +00:00
Benedikt Ritter 4b74c38562 LANG-1003: DurationFormatUtils are not able to handle negative duration/periods. Document new behavior for negative inputs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592324 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 08:49:27 +00:00
Duncan Jones 2486300548 Removed unnecessary multiplication by one.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592163 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 08:21:49 +00:00
Benedikt Ritter 64ef8a8022 LANG-1003: DurationFormatUtils are not able to handle negative durations/periods. Reported by Michael Osipov.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1591840 13f79535-47bb-0310-9956-ffa450edef68
2014-05-02 09:21:14 +00:00
Benedikt Ritter 358f139d13 Organize imports, don't use wildcard imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1591831 13f79535-47bb-0310-9956-ffa450edef68
2014-05-02 08:56:42 +00:00
Benedikt Ritter 548e5c42f5 Use org.junit.Assert.assertArrayEquals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1591830 13f79535-47bb-0310-9956-ffa450edef68
2014-05-02 08:55:28 +00:00
Benedikt Ritter fe354beb93 Remove commented out test code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1591828 13f79535-47bb-0310-9956-ffa450edef68
2014-05-02 08:43:44 +00:00
Gary D. Gregory b4b51a8fc9 <action issue="LANG-1001" type="fix" dev="ggregory" due-to="Michael Osipov">ISO 8601 misspelled throughout the Javadocs</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1591488 13f79535-47bb-0310-9956-ffa450edef68
2014-04-30 21:49:35 +00:00
Benedikt Ritter 6125951060 LANG-993: Add zero copy write method to StrBuilder; LANG-994: Add zero copy read method to StrBuilder. Thanks to Mikhail Mazursky.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1590224 13f79535-47bb-0310-9956-ffa450edef68
2014-04-26 10:39:03 +00:00
Chas Honton d13a40266f Remove keyValues map per sebb's suggestion
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1590059 13f79535-47bb-0310-9956-ffa450edef68
2014-04-25 15:23:46 +00:00
Chas Honton d9bd12dc92 Rename TextStrategy to CaseInsensitiveTextStrategy per sebb's suggestion
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1590054 13f79535-47bb-0310-9956-ffa450edef68
2014-04-25 15:16:07 +00:00
Benedikt Ritter 454fd1ea0f Add another missing ticket to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1590013 13f79535-47bb-0310-9956-ffa450edef68
2014-04-25 12:54:19 +00:00
Benedikt Ritter b46471100b Add missing bug fix to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1590006 13f79535-47bb-0310-9956-ffa450edef68
2014-04-25 11:51:05 +00:00
Sebastian Bazley 804e5f8c4f Merge qualifiers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1589978 13f79535-47bb-0310-9956-ffa450edef68
2014-04-25 10:24:57 +00:00
Chas Honton f4b7d62ac5 LANG-998 - Javadoc is not clear on preferred pattern to instantiate FastDateParser / FastDatePrinter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1589551 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 00:17:12 +00:00
Chas Honton 649a089ddc LANG-1088 - toLowerCase should use locale, additional unit tests for case-insensitive matching
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1589508 13f79535-47bb-0310-9956-ffa450edef68
2014-04-23 20:17:54 +00:00
Chas Honton 3b2de24af3 LANG-1088 - FastDateParser should be case insensitive
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1589446 13f79535-47bb-0310-9956-ffa450edef68
2014-04-23 16:02:52 +00:00
Duncan Jones e288d39ba3 Use enhanced for loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1588859 13f79535-47bb-0310-9956-ffa450edef68
2014-04-21 08:37:46 +00:00
Duncan Jones 5d9141e206 Added Javadoc to clear checkstyle error
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1588857 13f79535-47bb-0310-9956-ffa450edef68
2014-04-21 08:18:43 +00:00
Benedikt Ritter fbb0f7f88c LANG-995: Fix bug with stripping spaces on last line in WordUtils.wrap(). This fixes #18 from github. Thanks to Andrey Khobnya
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586649 13f79535-47bb-0310-9956-ffa450edef68
2014-04-11 13:28:30 +00:00
Gary D. Gregory d99f581745 Clean up Javadocs. You do not need to refer to classes in java.lang with a FQCN.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586295 13f79535-47bb-0310-9956-ffa450edef68
2014-04-10 13:20:28 +00:00
Gary D. Gregory 3efd6ccdbf Refactor magic number into constant.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586293 13f79535-47bb-0310-9956-ffa450edef68
2014-04-10 13:15:20 +00:00
Gary D. Gregory 4eb70a5f43 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586292 13f79535-47bb-0310-9956-ffa450edef68
2014-04-10 13:14:08 +00:00