Commit Graph

4020 Commits

Author SHA1 Message Date
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 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