Commit Graph

3603 Commits

Author SHA1 Message Date
Benedikt Ritter fceafc5df8 Fix typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1620321 13f79535-47bb-0310-9956-ffa450edef68
2014-08-25 13:13:09 +00:00
Benedikt Ritter bc8e23808b LANG-1020: Improve performance of normalize space. Thanks to Libor Ondrusek. This closes #27 from github.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1620317 13f79535-47bb-0310-9956-ffa450edef68
2014-08-25 13:04:54 +00:00
Benedikt Ritter 092d6da566 Add missing fail calls. Errors would be silently ignored if those calls are missing.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1619994 13f79535-47bb-0310-9956-ffa450edef68
2014-08-23 09:30:12 +00:00
Gary D. Gregory 1384457a39 [LANG-1033] Add StringUtils.countMatches(CharSequence, char)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1616372 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 23:46:30 +00:00
Benedikt Ritter 9b2357cfb1 Fix JavaDoc problem
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1613587 13f79535-47bb-0310-9956-ffa450edef68
2014-07-26 09:27:19 +00:00
Benedikt Ritter 5ae1b02383 Document the changes from LANG-1027
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1612391 13f79535-47bb-0310-9956-ffa450edef68
2014-07-21 20:01:04 +00:00
Romain Manni-Bucau 3fa5334ac0 LANG-1027 don't fail if java version is unknown, lang is too much used to make apps and libs failling cause of an unknown java version.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1612075 13f79535-47bb-0310-9956-ffa450edef68
2014-07-20 11:31:17 +00:00
Benedikt Ritter de67dec077 LANG-1021: Provide methods to retrieve all fields/methods annotated with a specific type. Thanks to Alexander Müller.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1612063 13f79535-47bb-0310-9956-ffa450edef68
2014-07-20 09:15:04 +00:00
Gary D. Gregory 03aa1e7078 Use the more modern, compact, and flexible Javadoc "{@code ...}" instead of the HTML "<tt>...</tt>".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1612040 13f79535-47bb-0310-9956-ffa450edef68
2014-07-20 06:54:09 +00:00
Gary D. Gregory 88dd10fa4b Use the more modern, compact, and flexible Javadoc "{@code ...}" instead of the HTML "<tt>...</tt>".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1612038 13f79535-47bb-0310-9956-ffa450edef68
2014-07-20 06:46:57 +00:00
Benedikt Ritter b1caa21bf5 LANG-1026: Bring static method references in StringUtils to consistent style. Thanks to Alex Yursha
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1610149 13f79535-47bb-0310-9956-ffa450edef68
2014-07-13 09:27:57 +00:00
Benedikt Ritter 967fdd064c LANG-1024: Fix JavaDoc errors in test code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1609902 13f79535-47bb-0310-9956-ffa450edef68
2014-07-12 11:01:37 +00:00
Benedikt Ritter 6240a05c12 LANG-1016: NumberUtils#isParsable method(s). Apply Juan PabloSantos Rodríguez patch for handling negative numbers.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1609898 13f79535-47bb-0310-9956-ffa450edef68
2014-07-12 09:48:13 +00:00
Benedikt Ritter 673dbc5794 Tiddy up JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1609277 13f79535-47bb-0310-9956-ffa450edef68
2014-07-09 19:34:57 +00:00
Benedikt Ritter 7022c194e0 LANG-1016: NumberUtils#isParsable method(s). Thanks to Juan Pablo Santos Rodríguez.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1609273 13f79535-47bb-0310-9956-ffa450edef68
2014-07-09 19:21:48 +00:00
Gary D. Gregory 4fcfad957d Formating.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606463 13f79535-47bb-0310-9956-ffa450edef68
2014-06-29 11:52:24 +00:00
Gary D. Gregory c8e024f8cd Formating.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606461 13f79535-47bb-0310-9956-ffa450edef68
2014-06-29 11:50:39 +00:00
Gary D. Gregory 248fd21601 Restore previous behavior that allows function results (arrays of booleans) to be modified.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606449 13f79535-47bb-0310-9956-ffa450edef68
2014-06-29 11:11:26 +00:00
Gary D. Gregory 71966110f7 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606089 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:18:55 +00:00
Gary D. Gregory dd74cf1da5 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606088 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:18:34 +00:00
Gary D. Gregory 8a95db3d42 Format to 120 line length.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606086 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:09:03 +00:00
Gary D. Gregory 60b79a9082 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606084 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:06:42 +00:00
Gary D. Gregory 0ff8493544 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606082 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:03:36 +00:00
Gary D. Gregory 7b33ab10de Format to 120 line length.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606081 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:03:13 +00:00
Gary D. Gregory cf832560dd Format to 120 line length.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606076 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:56:14 +00:00
Gary D. Gregory 2e9a359fb5 Simplify using ternary expressions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606075 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:55:51 +00:00
Gary D. Gregory c9e3793ae7 Refactor commons constants (no need to generate new arrays on every call).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606073 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:52:37 +00:00
Gary D. Gregory e769c18954 Simplify using ternary expressions instead of nested if-elses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606071 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:47:09 +00:00
Gary D. Gregory 082eb39c9f Format to 120 line length.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606069 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:41:50 +00:00
Gary D. Gregory c987d1631f Simplify using ternary expressions instead of nested if-elses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606068 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:41:26 +00:00
Gary D. Gregory f7e5f2c877 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606066 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:36:18 +00:00
Gary D. Gregory 299ea79d66 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606065 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:35:56 +00:00
Gary D. Gregory 93b1808e52 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606063 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:34:37 +00:00
Gary D. Gregory 8e757f1138 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606060 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:33:07 +00:00
Gary D. Gregory b52a49ab1c Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606059 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:32:45 +00:00
Gary D. Gregory 38334883a6 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606058 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:30:51 +00:00
Gary D. Gregory 0ef747156b Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606056 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:28:05 +00:00
Gary D. Gregory e3ee532338 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606054 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:27:47 +00:00
Gary D. Gregory 5a1101da75 Remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606052 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:24:06 +00:00
Gary D. Gregory 96c30e248d Use final consistently.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606051 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 12:22:17 +00:00
Gary D. Gregory ba8c6f6d6f Add some missing tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1600868 13f79535-47bb-0310-9956-ffa450edef68
2014-06-06 12:33:44 +00:00
Benedikt Ritter d96586563c LANG-1017: Use non-ASCII digits in Javadoc examples for StringUtils.isNumeric. Thanks to Christoph Schneegans.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1599322 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 19:31:36 +00:00
Benedikt Ritter 8f9a427dc6 Fix broken JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1599316 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 19:19:40 +00:00
Matthew Jason Benson 68a6fd6125 TypeUtils wildcard fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1594387 13f79535-47bb-0310-9956-ffa450edef68
2014-05-13 21:13:04 +00:00
Matthew Jason Benson 6f688e40ba add some failing tests with wildcards
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1594385 13f79535-47bb-0310-9956-ffa450edef68
2014-05-13 21:12:31 +00:00
Duncan Jones 9a16b763d9 Using Validate where possible in time package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1594373 13f79535-47bb-0310-9956-ffa450edef68
2014-05-13 20:31:02 +00:00
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 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 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 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
Gary D. Gregory 70d9e8b23d Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586291 13f79535-47bb-0310-9956-ffa450edef68
2014-04-10 13:12:51 +00:00
Gary D. Gregory 39168bb734 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586290 13f79535-47bb-0310-9956-ffa450edef68
2014-04-10 13:12:12 +00:00
Gary D. Gregory 3e33304129 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586289 13f79535-47bb-0310-9956-ffa450edef68
2014-04-10 13:10:59 +00:00
Benedikt Ritter 6b438fe99b Add next version to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586100 13f79535-47bb-0310-9956-ffa450edef68
2014-04-09 19:41:57 +00:00
Benedikt Ritter d72d2b08dc Document 3.3.2 release date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1586077 13f79535-47bb-0310-9956-ffa450edef68
2014-04-09 18:46:07 +00:00
Benedikt Ritter 24767d6f49 Add description for 3.3.2
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1585293 13f79535-47bb-0310-9956-ffa450edef68
2014-04-06 12:03:39 +00:00
Benedikt Ritter d069f0c7c1 Add 3.3.2 release notes to archive
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1585291 13f79535-47bb-0310-9956-ffa450edef68
2014-04-06 11:58:32 +00:00
Benedikt Ritter 483a02a44c Add a note about 3.3.2 and DocLint, since I can not get the site build working without fixing all the warnings DocLint generates.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1585288 13f79535-47bb-0310-9956-ffa450edef68
2014-04-06 11:50:41 +00:00
Benedikt Ritter 78fccbbd30 Fix JavaDoc errors in *TEST CODE* since mvn site fails when using Java 8 otherwise. Thanks to Oracle for teaching us how to write well formed HTML.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1585287 13f79535-47bb-0310-9956-ffa450edef68
2014-04-06 11:24:03 +00:00
Benedikt Ritter b9b842d0d3 No need to repeat JavaDoc of hashCode method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1585282 13f79535-47bb-0310-9956-ffa450edef68
2014-04-06 10:43:47 +00:00
Benedikt Ritter 6f20b527e6 Fix JavaDoc warnings by explaning why UnsupportedOperationException is thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1585281 13f79535-47bb-0310-9956-ffa450edef68
2014-04-06 10:41:55 +00:00
Niall Pemberton a57ca055e7 Fix JavaDoc issues with JDK 1.8
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1583781 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 20:54:53 +00:00
Niall Pemberton 0e2e37bb83 Fix JavaDoc issues with JDK 1.8
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1583482 13f79535-47bb-0310-9956-ffa450edef68
2014-03-31 22:54:57 +00:00
Benedikt Ritter c95fa44d03 Update download page for upcoming 3.3.2 release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582986 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 10:52:01 +00:00
Benedikt Ritter a0b5cb5dd4 Update index page for upcomming 3.3.2 release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582985 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 10:50:15 +00:00
Benedikt Ritter acd41040fc Correct since tag, since next release will be 3.3.2
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582984 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 10:48:39 +00:00
Benedikt Ritter d00ee004b0 Remove trailing white spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582983 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 10:48:02 +00:00
Benedikt Ritter 1113ab56bc Document Niall's work on LANG-992
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582982 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 10:46:34 +00:00
Benedikt Ritter 186209aac5 Preparation for next release (which will be 3.3.2)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582977 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 10:30:14 +00:00
Benedikt Ritter 3cdb486869 Remove trailing whitespaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582973 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 10:28:40 +00:00
Sebastian Bazley 2b56945851 Drop temporary space
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582727 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 12:29:14 +00:00
Sebastian Bazley 6f176f87bf Check mailer uses correct encoding (added space at end temporarily)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582725 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 12:27:25 +00:00
Sebastian Bazley 0f1e07e1fe Tab police (added by pesky IDE)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582699 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 11:15:32 +00:00
Sebastian Bazley 03653e3911 Convert to UTF-8
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582693 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 11:05:51 +00:00
Benedikt Ritter dba302513c Fix JavaDoc problems in Conversion
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582687 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 10:49:04 +00:00
Benedikt Ritter d7e2aa2504 Fix typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582669 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 10:05:06 +00:00
Benedikt Ritter 95aa6af17c Fix JavaDoc problems in ClassUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582667 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 10:04:33 +00:00
Niall Pemberton cf03e6173b LANG-992 Fix NumberUtils#isNumber() returns false for "0.0", "0.4790", et al
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1582585 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 03:10:27 +00:00
Duncan Jones 708da45999 Minor Javadoc corrections.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1580464 13f79535-47bb-0310-9956-ffa450edef68
2014-03-23 07:28:42 +00:00
Gary D. Gregory 863bf52eae <action issue="LANG-989" type="add" dev="ggregory">Add org.apache.commons.lang3.SystemUtils.IS_JAVA_1_8</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1579865 13f79535-47bb-0310-9956-ffa450edef68
2014-03-21 02:02:04 +00:00
Gary D. Gregory 024a22b015 <action issue="LANG-989" type="add" dev="ggregory">Add org.apache.commons.lang3.SystemUtils.IS_JAVA_1_8</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1579864 13f79535-47bb-0310-9956-ffa450edef68
2014-03-21 02:01:34 +00:00
Benedikt Ritter 3a394317b0 Archive release notes for 3.3.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1579023 13f79535-47bb-0310-9956-ffa450edef68
2014-03-18 19:28:34 +00:00
Benedikt Ritter ac5451f0bb Add next version to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1578992 13f79535-47bb-0310-9956-ffa450edef68
2014-03-18 18:08:59 +00:00
Benedikt Ritter 2824f002cb Document release of 3.3.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1578990 13f79535-47bb-0310-9956-ffa450edef68
2014-03-18 18:08:09 +00:00
Gary D. Gregory 6a3dc33850 Fix Javadoc 8 doclint issues.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1578214 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 02:44:58 +00:00
Benedikt Ritter 6abb5453e7 Update index.xml for upcoming 3.3.1 release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577853 13f79535-47bb-0310-9956-ffa450edef68
2014-03-15 12:45:52 +00:00
Benedikt Ritter a66a5cb647 Add upcoming 3.3.1 release to release history page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577850 13f79535-47bb-0310-9956-ffa450edef68
2014-03-15 12:35:03 +00:00
Benedikt Ritter 79dac6677e Change next version in changes.xml to 3.3.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577845 13f79535-47bb-0310-9956-ffa450edef68
2014-03-15 12:27:06 +00:00
Benedikt Ritter b504d77013 Update download page for upcomming 3.3.1 release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577843 13f79535-47bb-0310-9956-ffa450edef68
2014-03-15 12:24:35 +00:00
Benedikt Ritter 3b681d4a78 Remove pointer to user guide, since it has been moved to JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577839 13f79535-47bb-0310-9956-ffa450edef68
2014-03-15 12:20:33 +00:00
Benedikt Ritter 11bbcd4a97 Correct indentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577837 13f79535-47bb-0310-9956-ffa450edef68
2014-03-15 12:17:48 +00:00
Duncan Jones 3ee44535b4 Make use of existing TimeUnit class to manage time units.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577519 13f79535-47bb-0310-9956-ffa450edef68
2014-03-14 13:23:25 +00:00
Duncan Jones 80bd3fdb42 LANG-987: DateUtils.getFragmentInDays(Date, Calendar.MONTH) returns wrong days, reported by Jay Xu.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1577332 13f79535-47bb-0310-9956-ffa450edef68
2014-03-13 21:40:26 +00:00
Benedikt Ritter 66a37174a0 Post release clean up: Set next development version, document release date of 3.3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1574137 13f79535-47bb-0310-9956-ffa450edef68
2014-03-04 17:15:06 +00:00
Sebastian Bazley 1ca3a263e1 Unnecessary array creation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573807 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 23:31:53 +00:00
Sebastian Bazley 19120b7224 Javadoc fix - method does not use a TimeZone
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573790 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 22:41:13 +00:00
Sebastian Bazley 5b32cabf3f Add some more tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573787 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 22:31:49 +00:00
Sebastian Bazley 1a97c7efe1 LANG-983 DurationFormatUtils does not describe format string fully
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573786 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 22:31:28 +00:00
Sebastian Bazley aadd8e172e LANG-981 DurationFormatUtils#lexx does not detect unmatched quote char
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573770 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 21:44:15 +00:00
Sebastian Bazley 8d360ae707 Don't assign parameter; use the work field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573762 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 21:36:16 +00:00
Sebastian Bazley 77f5fe29e3 LANG-978 Failing tests with Java 8 b128
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573756 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 21:32:07 +00:00
Sebastian Bazley 8b5e3eb81d LANG-982 DurationFormatUtils.formatDuration(61999, "s.SSSS") - ms field size should be 4 digits
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573754 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 21:29:58 +00:00
Sebastian Bazley cf4138d7bc LANG-984 DurationFormatUtils does not handle large durations correctly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573749 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 21:10:40 +00:00
Sebastian Bazley ddc06197e4 Close resource
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573188 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 16:11:01 +00:00
Sebastian Bazley 2ea3865e0c Deprecation warnings don't apply to references within the same class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573186 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 15:53:17 +00:00
Sebastian Bazley b6e5ed0586 Don't write parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1573185 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 15:51:39 +00:00
Benedikt Ritter 01329b7cf5 Make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572877 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 08:42:25 +00:00
Benedikt Ritter ffb07f08d8 Add missing AL header
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572875 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 08:34:55 +00:00
Benedikt Ritter 24f4c1c6ee Add a little teaser for 3.3 to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572870 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 08:24:58 +00:00
Benedikt Ritter edbd9842cf Restore binary compartibility
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572865 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 07:56:42 +00:00
Benedikt Ritter 057249fc70 Constructor param can be final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572846 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 07:45:37 +00:00
Benedikt Ritter 513347342a Replace tabs with whitespaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572845 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 07:44:50 +00:00
Benedikt Ritter aba9631464 Reverting changes from r1570821 since they didn't work as expected
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1572520 13f79535-47bb-0310-9956-ffa450edef68
2014-02-27 11:22:46 +00:00
Benedikt Ritter 9bc263f242 Update index page for upcoming 3.3 release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1571955 13f79535-47bb-0310-9956-ffa450edef68
2014-02-26 08:05:51 +00:00
Benedikt Ritter f18194f4d7 Add upcoming 3.3 release to release history page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1571954 13f79535-47bb-0310-9956-ffa450edef68
2014-02-26 08:03:57 +00:00
Benedikt Ritter ceea303ffb Add release notes for 3.3 to release notes archive
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1570827 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 11:58:13 +00:00
Benedikt Ritter e97d1e0b72 Preparation of Commons Lang 3.3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1570826 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 11:55:06 +00:00
Benedikt Ritter 70323b2834 Provide a possibility to use mvn deploy for uploading to nexus
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1570821 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 11:33:21 +00:00
Benedikt Ritter 5d478ec9a7 Fix JavaDoc link
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1570818 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 11:10:40 +00:00
Bruno P. Kinoshita 600432075b LANG-621: ReflectionToStringBuilder.toString does not debug 3rd party object fields within 3rd party object. Suggested by Philip Hodges. Final patch from Thomas Neidhart.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1569028 13f79535-47bb-0310-9956-ffa450edef68
2014-02-17 15:45:17 +00:00
Benedikt Ritter 74fa00c3c5 LANG-955: Add methods for removing all invalid characters according to XML 1.0 and XML 1.1 in an input string to StringEscapeUtils. Thanks to Adam Hooper
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1568639 13f79535-47bb-0310-9956-ffa450edef68
2014-02-15 16:13:27 +00:00
Benedikt Ritter ab14240150 LANG-977: NumericEntityEscaper incorrectly encodes supplementary characters. Thanks to Chris Karcher.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1568612 13f79535-47bb-0310-9956-ffa450edef68
2014-02-15 10:35:35 +00:00
Sebastian Bazley 408462e80d Don't mutate parameters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1567801 13f79535-47bb-0310-9956-ffa450edef68
2014-02-12 23:27:47 +00:00
Sebastian Bazley 9135f2d28c Don't mutate parameters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1567799 13f79535-47bb-0310-9956-ffa450edef68
2014-02-12 23:25:58 +00:00
Sebastian Bazley 5932b49770 LANG-973 Make some private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1567796 13f79535-47bb-0310-9956-ffa450edef68
2014-02-12 23:19:37 +00:00
Henri Yandell efa688d1f6 Switching i->em tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1567516 13f79535-47bb-0310-9956-ffa450edef68
2014-02-12 03:52:45 +00:00
Henri Yandell 56457611f3 Switching b->strong tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1567515 13f79535-47bb-0310-9956-ffa450edef68
2014-02-12 03:51:25 +00:00
Sebastian Bazley 3269d1bc7a Javadoc update
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1566972 13f79535-47bb-0310-9956-ffa450edef68
2014-02-11 02:57:40 +00:00
Sebastian Bazley 9397608dd3 LANG-971 NumberUtils#isNumber(String) fails to reject invalid Octal numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1566967 13f79535-47bb-0310-9956-ffa450edef68
2014-02-11 02:53:03 +00:00
Sebastian Bazley 5a509030a9 LANG-972 NumberUtils#isNumber does not allow for hex 0XABCD
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1566963 13f79535-47bb-0310-9956-ffa450edef68
2014-02-11 02:34:36 +00:00
Sebastian Bazley 159415855d Simplify tests by extracting common code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1566731 13f79535-47bb-0310-9956-ffa450edef68
2014-02-10 20:24:56 +00:00
Gary D. Gregory 44b4c8763d <action issue="LANG-966" type="add" dev="ggregory">Add IBM OS/400 detection</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1566705 13f79535-47bb-0310-9956-ffa450edef68
2014-02-10 19:12:03 +00:00
Gary D. Gregory 5feaa5fe2c <action issue="LANG-969" type="fix" dev="ggregory" due-to="Matt Bishop">StringUtils.toEncodedString(byte[], Charset) needlessly throws UnsupportedEncodingException</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1566489 13f79535-47bb-0310-9956-ffa450edef68
2014-02-10 02:06:06 +00:00
Gary D. Gregory 4b718f6e5a <action issue="LANG-970" type="add" dev="ggregory">Add APIs MutableBoolean setTrue() and setFalse()</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565915 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 04:35:17 +00:00
Gary D. Gregory 2d6fef59e6 Better Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565834 13f79535-47bb-0310-9956-ffa450edef68
2014-02-07 22:23:02 +00:00
Gary D. Gregory 84f392eaa4 [LANG-969] StringUtils.toEncodedString(byte[], Charset) needlessly throws exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565833 13f79535-47bb-0310-9956-ffa450edef68
2014-02-07 22:21:55 +00:00
Gary D. Gregory 555570c954 Better name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565488 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 23:45:12 +00:00
Gary D. Gregory af54765d0c Tests on our AS/400 shows the value to be "OS/400".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565487 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 23:44:53 +00:00
Sebastian Bazley d6a556dad7 Add explict default case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565257 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 13:51:45 +00:00
Sebastian Bazley 65392be352 Add explict default case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565252 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 13:48:08 +00:00
Sebastian Bazley eabd95a51c Additional samples
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565251 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 13:47:21 +00:00
Sebastian Bazley af74365e31 Rename to avoid clashing with parameter names
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565245 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 13:39:50 +00:00
Sebastian Bazley 32a260ff46 Don't assign parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565243 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 13:37:12 +00:00
Sebastian Bazley f27c439c8d Fall through is intentional
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565235 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 13:31:43 +00:00
Sebastian Bazley 5a001837b4 Clarify that leading zeros are not ignored
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565232 13f79535-47bb-0310-9956-ffa450edef68
2014-02-06 13:29:21 +00:00
Gary D. Gregory 4d51150a69 [LANG-966] Add IBM iSeries 5 OS detection.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1564150 13f79535-47bb-0310-9956-ffa450edef68
2014-02-04 01:48:15 +00:00
Gary D. Gregory 21c438188f Javadoc typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563993 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 18:45:16 +00:00
Gary D. Gregory c40d7c4d37 Add missing @since.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563680 13f79535-47bb-0310-9956-ffa450edef68
2014-02-02 17:41:15 +00:00
Gary D. Gregory 04d743f4f4 Add missing @since.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563679 13f79535-47bb-0310-9956-ffa450edef68
2014-02-02 17:40:52 +00:00
Gary D. Gregory 35a2c81ac4 Add missing @since.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563678 13f79535-47bb-0310-9956-ffa450edef68
2014-02-02 17:40:32 +00:00
Benedikt Ritter 717ac0c7b3 Set svn:keywords
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563407 13f79535-47bb-0310-9956-ffa450edef68
2014-02-01 12:47:15 +00:00
Benedikt Ritter 48652f5941 LANG-946: ConstantInitializerTest fails when building with IBM JDK 7
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563388 13f79535-47bb-0310-9956-ffa450edef68
2014-02-01 10:46:28 +00:00
Duncan Jones 954280893c Reverts changes introduced in r1563259. Discussion to be had over correct place for this functionality (likely org.apache.commons.lang3.Conversion).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563378 13f79535-47bb-0310-9956-ffa450edef68
2014-02-01 07:53:54 +00:00
Gary D. Gregory a3de60835e <action issue="LANG-962" type="add" dev="ggregory">Add SerializationUtils.roundtrip(T extends Serializable) to serialize then deserialize</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563309 13f79535-47bb-0310-9956-ffa450edef68
2014-01-31 22:32:03 +00:00
Duncan Jones 364d5912b2 LANG-341: Please add number to byte[] methods. Suggested by Lilianne E. Blaze. Final patch from Vincent Ricard (with thanks to Henri Yandell).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563259 13f79535-47bb-0310-9956-ffa450edef68
2014-01-31 21:12:57 +00:00
Gary D. Gregory 725a2be1ef More precise generics.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563016 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 23:37:23 +00:00
Gary D. Gregory 0c7b32a211 [LANG-961] org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(Field) does not clean up after itself. Only call setAccessible if neccessary and tell the caller about it so it can undo the change if need be.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1563014 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 23:28:26 +00:00
Gary D. Gregory 1bc33d2211 [LANG-961] org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(Field) does not clean up after itself.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562994 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 22:00:42 +00:00
Gary D. Gregory 2eecc96a53 [LANG-961] org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(Field) does not clean up after itself.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562991 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:53:52 +00:00
Gary D. Gregory 8c04a90ec5 Add in-line comment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562987 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:37:34 +00:00
Gary D. Gregory c79f82491a removeFinalModifier does not clean up after itself.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562985 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:36:38 +00:00
Gary D. Gregory 2c8822657d Javadoc: format.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562982 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:35:28 +00:00
Gary D. Gregory 9b07d9c306 Javadoc: Use the active voice.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562981 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:35:10 +00:00
Gary D. Gregory 8f06368cd4 Make the write*Field impl match its in-line comment and not rely on the default behavior of writeField(field,target,value).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562979 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:33:17 +00:00
Gary D. Gregory fd3057092d Make the write*Field impl match its in-line comment and not rely on the default behavior of writeField(field,target,value).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562978 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:32:19 +00:00
Gary D. Gregory fc41d6bb88 Make the readDeclaredField(final Object target, final String fieldName, final boolean forceAccess) impl match its in-line comment and not rely on the default behavior of readField(Field, Object).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562977 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:30:34 +00:00
Gary D. Gregory 5ba58d45d0 Make the readDeclaredField(final Object target, final String fieldName, final boolean forceAccess) impl match its in-line comment and not rely on the default behavior of readField(Field, Object).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562976 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:29:53 +00:00
Gary D. Gregory 03c16e857d Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562971 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 21:23:18 +00:00
Benedikt Ritter f67f7c27dc Remove unnecessary white spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562922 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 18:54:41 +00:00
Matthew Jason Benson 42ef7d6bc8 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562880 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 16:28:19 +00:00
Duncan Jones 82664d556c Removed two duplicated assertions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562018 13f79535-47bb-0310-9956-ffa450edef68
2014-01-28 09:35:29 +00:00
Duncan Jones ce9d841f79 Resolved compiler warnings shown in Eclipse and when compiling with -Xlint:unchecked.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562017 13f79535-47bb-0310-9956-ffa450edef68
2014-01-28 09:31:53 +00:00
Benedikt Ritter 1837ea7782 Fix raw type warnings, as pointed out by Duncan Jones
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561722 13f79535-47bb-0310-9956-ffa450edef68
2014-01-27 16:19:55 +00:00
Duncan Jones ef9db7e5c7 Lang is targeted at Java 1.6 now. Corrected text alignment issue (now left-aligned),
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561402 13f79535-47bb-0310-9956-ffa450edef68
2014-01-25 21:01:32 +00:00
Benedikt Ritter f074f784ef Add missing changes entry for LANG-958
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561276 13f79535-47bb-0310-9956-ffa450edef68
2014-01-25 08:53:31 +00:00
Chas Honton 1c050743c9 FastDateParser javadoc incorrectly states that SimpleDateFormat is used internally
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561228 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 23:29:17 +00:00
Duncan Jones 8a82d7b79b Renamed DiffList to DiffResult as per discussion in LANG-637.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561225 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 23:17:29 +00:00
Duncan Jones ea47f03c4d LANG-637: There should be a DifferenceBuilder with a ReflectionDifferenceBuilder implementation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561215 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 22:37:50 +00:00
Sebastian Bazley 054f2f9160 Oops - wrong section
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561071 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 17:09:46 +00:00
Sebastian Bazley 8630180fff LANG-954 uncaught PatternSyntaxException in FastDateFormat on Android
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561045 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 16:00:35 +00:00
Benedikt Ritter 2d55e408ed LANG-956: Improve JavaDoc of WordUtils.wrap methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561036 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 15:42:19 +00:00
Benedikt Ritter 5158ed5e23 Remove commented out code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561016 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 14:07:03 +00:00
Benedikt Ritter 731a7fa4b9 We are commons now
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561015 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 14:06:08 +00:00
Benedikt Ritter 66243d1058 Add test for ClassPathUtils accessebility
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561014 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 14:03:52 +00:00
Benedikt Ritter 1e355cfb10 Utilities in commons lang are not final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561013 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 14:02:49 +00:00
Benedikt Ritter 2b2eaf5af1 Document behavior for null inputs in class JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561010 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 13:58:55 +00:00
Benedikt Ritter 4403166697 Add missing quotes to JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561007 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 13:55:58 +00:00
Benedikt Ritter 1275bf6219 Add missing @since tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561005 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 13:52:46 +00:00
Benedikt Ritter 07ea480752 Use assertNull(actual) instead of assertEquals(null, actual)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1561003 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 13:48:26 +00:00
Benedikt Ritter fc52f1c7f8 Use annotation based testing for failure case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560762 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 17:15:48 +00:00
Benedikt Ritter 7a532bcc01 Keep tests for Levenshtein Distance together
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560759 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 17:10:58 +00:00
Benedikt Ritter 64e9b7f514 Remove unused local variables
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560757 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 17:10:09 +00:00
Benedikt Ritter 3eb4be60cf Reuse code already available in StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560756 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 17:07:46 +00:00
Benedikt Ritter 6f5f99440e Inline division operation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560753 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 17:03:13 +00:00
Benedikt Ritter b44b35129e More source code to format...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560751 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 17:01:48 +00:00
Benedikt Ritter 7d4041d827 Format source code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560746 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 16:57:58 +00:00
Benedikt Ritter 5a770a121a Use final modifier where possible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560744 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 16:55:58 +00:00
Benedikt Ritter bf37bd5d74 Remove unnecessary try-catch-block
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560742 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 16:53:42 +00:00
Benedikt Ritter d47495f3f1 Correct indentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560741 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 16:51:30 +00:00
Benedikt Ritter 8d815d8f8d Tiddy up JavaDoc for Jaro Winkler Distance calculation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560740 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 16:48:17 +00:00
Benedikt Ritter 7460a856f2 LANG-944: Add the Jaro-Winkler string distance algorithm to StringUtils - partially applying the patch by Rekha Joshi as submitted for further refinement
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560727 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 16:27:51 +00:00
Henri Yandell 8cd2339a97 Applying Eli Lindsey's patch to Yaniv Kunda's report in LANG-936 that StringUtils.getLevensteinDistance(String, String, int) gave the wrong answer when the int threshold is near Integer.MAX_VALUE
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560275 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 08:19:22 +00:00
Benedikt Ritter 3a8595f1a5 LANG-954: uncaught PatternSyntaxException in FastDateFormat - add test for the pattern in question; works at least with JDK 1.7.0_45
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1560137 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 18:45:08 +00:00
Bruno P. Kinoshita 5d10a4a6aa [LANG-943] Test DurationFormatUtilsTest.testEdgeDuration fails in JDK 1.6, 1.7 and 1.8, BRST time zone
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1559802 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 18:37:44 +00:00
Benedikt Ritter b5a9cd944c LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH - fix test that failed because of wrong assertions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1559787 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 17:33:09 +00:00
Benedikt Ritter b3c1a78dab Add LANG-613 to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1559783 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 17:26:50 +00:00
Benedikt Ritter 0942ef04f1 LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH - applying patch provided by Sebastian Götz, several tests now fail because of wrong assertions, will fix them in a separate commit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1559780 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 17:19:59 +00:00
Matthew Jason Benson 8252b04a45 [LANG-613] ConstructorUtils.getAccessibleConstructor() Does Not Check the Accessibility of Enclosing Classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1559779 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 17:19:02 +00:00
Benedikt Ritter 43008052af LANG-417: New class ClassPathUtils with methods for turning FQN into resource path
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1559495 13f79535-47bb-0310-9956-ffa450edef68
2014-01-19 13:26:45 +00:00