Commit Graph

4219 Commits

Author SHA1 Message Date
Benedikt Ritter 85c18d0ee8 Update to latest commons parent pom
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1634465 13f79535-47bb-0310-9956-ffa450edef68
2014-10-27 07:50:22 +00:00
Gary D. Gregory 0661ab5c77 No need to explicitly extend Object.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1633907 13f79535-47bb-0310-9956-ffa450edef68
2014-10-23 18:10:33 +00:00
Duncan Jones ef26a66763 LANG-536 - Add isSorted() to ArrayUtils. Patch supplied by James Sawle. Closes #32 in GitHub.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1632874 13f79535-47bb-0310-9956-ffa450edef68
2014-10-19 05:52:37 +00:00
Duncan Jones 09cee6a4ad Use isEmpty() where possible. Thanks to James Sawle for pointing this out.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1632416 13f79535-47bb-0310-9956-ffa450edef68
2014-10-16 19:16:30 +00:00
Sebastian Bazley b199af8d82 LANG-1043 - isAllUpperCase should only check Alpha characters
Document and test additional cases

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1630619 13f79535-47bb-0310-9956-ffa450edef68
2014-10-09 23:19:32 +00:00
Gary D. Gregory 0d3d31972b Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1630277 13f79535-47bb-0310-9956-ffa450edef68
2014-10-09 04:37:38 +00:00
Gary D. Gregory ab570625ff Update maven-checkstyle-plugin from 2.9.1 to 2.13.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1630269 13f79535-47bb-0310-9956-ffa450edef68
2014-10-09 02:29:00 +00:00
Gary D. Gregory a11351107e [LANG-1044] Add method org.apache.commons.lang3.reflect.MethodUtils.invokeExactMethod(Object, String)</action>
[LANG-1045] Add method org.apache.commons.lang3.reflect.MethodUtils.invokeMethod(Object, String)</action>


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1630268 13f79535-47bb-0310-9956-ffa450edef68
2014-10-09 02:22:34 +00:00
Duncan Jones 0648a3096b Javadoc examples looked better wrapped in {@code} tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1630076 13f79535-47bb-0310-9956-ffa450edef68
2014-10-08 11:49:54 +00:00
Benedikt Ritter 4477ae6952 LANG-1041: Fix MethodUtilsTest so it does not depend on JDK method ordering. This fixes #30 from github. Thanks to Alexandre Bartel.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1628922 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 10:12:12 +00:00
Benedikt Ritter aa3f174986 Remove tab characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1628921 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 10:07:11 +00:00
Duncan Jones 7406d02eb0 Fix for LANG-827: CompareToBuilder's doc doesn't specify precedence of fields it uses in performing comparisons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1628165 13f79535-47bb-0310-9956-ffa450edef68
2014-09-29 12:02:11 +00:00
Duncan Jones 22b6781a0b Added missing support for ISO 8601 parsing and printing using "ZZ" pattern (code now matches Javadoc). Addresses LANG-1000.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1628061 13f79535-47bb-0310-9956-ffa450edef68
2014-09-28 10:11:17 +00:00
Duncan Jones 2aae22de23 Removed redundant static modifier (thanks, Matt).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1627984 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 17:33:00 +00:00
Duncan Jones 52e854e3bd Replaced private integer constants with private static enum.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1627974 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 15:03:26 +00:00
Duncan Jones bc91bedd45 Made it clear that the fields of the object form the hash code (LANG-1039).
Pulled magic values into constants.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1627889 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 21:19:12 +00:00
Duncan Jones bdb1a684a7 Added Javadoc warnings related to LANG-796.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1627753 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 11:19:32 +00:00
Duncan Jones 2154d5fbf8 Fix for LANG-1035: Javadoc for EqualsBuilder.reflectionEquals() is unclear
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1623970 13f79535-47bb-0310-9956-ffa450edef68
2014-09-10 11:32:53 +00:00
Benedikt Ritter 1e6c8c1495 Simplify statement by calling substring on str directly. StringUtils.startsWith makes sure that str is not null at this point. Improvement suggested by sebb.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1623872 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 19:32:31 +00:00
Benedikt Ritter 161ef971c4 Add fixme regarding a JDK 1.3 workaround
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1620579 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 11:53:51 +00:00
Benedikt Ritter 01a950e320 Better JavaDoc formatting
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1620574 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 11:28:18 +00:00
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 84c43fee7b Update plugins to current versions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1616373 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 23:47:31 +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 a67075b783 Update to latest parent pom
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1613603 13f79535-47bb-0310-9956-ffa450edef68
2014-07-26 10:47:18 +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