Commit Graph

4203 Commits

Author SHA1 Message Date
Benedikt Ritter cc991feadb Add since tag to new constructor of DiffBuilder
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1654132 13f79535-47bb-0310-9956-ffa450edef68
2015-01-23 07:58:58 +00:00
Benedikt Ritter 38ed1a0725 LANG-1082: Add option to disable the objectsTriviallyEqual test in DiffBuilder. This fixes #44 from github. Thanks to Jonathan Baker.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1654131 13f79535-47bb-0310-9956-ffa450edef68
2015-01-23 07:56:14 +00:00
Benedikt Ritter 6eac3468d4 LANG-1083: Add (T) casts to get unit tests to pass in old JDK. This fixes #42 from github. Thanks to Jonathan Baker.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1653307 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 17:30:11 +00:00
Benedikt Ritter 89c8519238 Update copyright year
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1651132 13f79535-47bb-0310-9956-ffa450edef68
2015-01-12 16:34:15 +00:00
Benedikt Ritter 9af6c5e07c Use README.md and CONTRIBUTING.md generated by commons build plugin
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1649111 13f79535-47bb-0310-9956-ffa450edef68
2015-01-02 20:09:51 +00:00
Benedikt Ritter 51607308c7 Add test for merging toString with super toString
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648925 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 19:24:07 +00:00
Benedikt Ritter d903279e44 Remove assertions in error cases. They won't be executed.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648924 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 19:19:44 +00:00
Benedikt Ritter 42728e8e53 Test against static value
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648922 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 19:13:32 +00:00
Benedikt Ritter 2515b3eb32 Format source code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648921 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 19:08:07 +00:00
Benedikt Ritter 8d9662e0a1 JsonToStringStyle doesn't use line breaks. Change JavaDoc to reflect this.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648920 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 19:04:19 +00:00
Benedikt Ritter c4ddbe6456 LANG-1015: Add JsonToStringStyle implementation to ToStringStyle. This fixes #12 and #26 from github. Thanks to Thiago Andrade.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648919 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 19:01:41 +00:00
Benedikt Ritter c87380f0d9 LANG-1080: add NoClassNameToStringStyle implementation of ToStringStyle. This closes #40 from github. Thanks to Innokenty Shuvalov.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648730 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 16:34:49 +00:00
Benedikt Ritter e22e0669cd Revert to using cobertura. The Jacoco instrumentation will add fields to all classes. This in turn breaks the tests for FieldUtils.getAllFields(Class).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648078 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 18:06:43 +00:00
Benedikt Ritter 2f97b43563 Don't redefine plugin default values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648075 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 17:57:20 +00:00
Benedikt Ritter 00f00cce4a Need to set MaxPermSize as well or the site build will fail with OutOfMemoryError
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648074 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 17:56:53 +00:00
Benedikt Ritter 867d318faf Update JavaNCSS plugin to latest version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648073 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 17:40:19 +00:00
Benedikt Ritter e4bcd50db3 Add jacoco file to activate report via parent pom (forgot that in last commit)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648072 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 17:39:43 +00:00
Benedikt Ritter 517b43041a Use jacoco via parent pom configuration file instead of cobertura (which takes forever to run)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648071 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 17:38:35 +00:00
Benedikt Ritter c5332828bd LANG-1071: Fix wrong examples in JavaDoc of StringUtils.replaceEachRepeatedly(...), StringUtils.replaceEach(...). Thanks to Arno Noordover.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648067 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 16:45:42 +00:00
Benedikt Ritter 5cb1ae6024 Add examples for containsAny(CharSequence, CharSequence...)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648066 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 16:29:28 +00:00
Benedikt Ritter a169e866c1 Use enhanced for loop instead of indexed based iteration
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648064 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 16:25:02 +00:00
Benedikt Ritter 9e26c7b6e9 LANG-883: Add StringUtils.containsAny(CharSequence, CharSequence...) method. Thanks to Daniel Stewart.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648063 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 16:20:55 +00:00
Benedikt Ritter 23d55b0b9c Can't link to private inner classes, use public field instead
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648061 13f79535-47bb-0310-9956-ffa450edef68
2014-12-27 16:08:20 +00:00
Benedikt Ritter 5f61aa0718 Update to latest parent pom
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1647981 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 14:00:52 +00:00
Benedikt Ritter 39022255c5 Add another assertion documention the current behavior of StringUtils.join
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1647902 13f79535-47bb-0310-9956-ffa450edef68
2014-12-25 15:31:16 +00:00
Bruno P. Kinoshita 4a2cc4f5da LANG-1073 Read wrong component type of array in add in ArrayUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1645483 13f79535-47bb-0310-9956-ffa450edef68
2014-12-14 18:22:06 +00:00
Bruno P. Kinoshita e5a3039f7a LANG-1077 StringUtils.ordinalIndexOf("aaaaaa", "aa", 2) != 3 in StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1645101 13f79535-47bb-0310-9956-ffa450edef68
2014-12-13 02:00:18 +00:00
Matthew Jason Benson 05763470e5 clarify behavior of #isNumber() with blanks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1645076 13f79535-47bb-0310-9956-ffa450edef68
2014-12-12 21:15:18 +00:00
Sebastian Bazley d4cf0864ff Typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1643399 13f79535-47bb-0310-9956-ffa450edef68
2014-12-05 19:04:31 +00:00
Benedikt Ritter a25d6d800b Update to latest junit release
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1643281 13f79535-47bb-0310-9956-ffa450edef68
2014-12-05 13:44:20 +00:00
Sebastian Bazley 0162032aa4 LANG-1072 Duplicated "0x" check in createBigInteger in NumberUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1643038 13f79535-47bb-0310-9956-ffa450edef68
2014-12-03 01:35:22 +00:00
Gary D. Gregory 21201210e2 maven-pmd-plugin 3.2 -> 3.3.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1641146 13f79535-47bb-0310-9956-ffa450edef68
2014-11-23 00:38:35 +00:00
Duncan Jones 2afdf4d05e Javadoc fix for LANG-1064.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1639624 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 12:49:15 +00:00
Benedikt Ritter 635e41ea18 LANG-1052: Multiline recursive to string style. This fixes #34 from github. Thanks to Jan Matèrne.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1637671 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 12:47:12 +00:00
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