816 Commits

Author SHA1 Message Date
Benedikt Ritter
df37e605fe LANG-1112: MultilineRecursiveToStringStyle largely unusable due to being package-private. Thanks to Liam Jones for reporting this.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1674549 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 18:44:36 +00:00
Duncan Jones
73a8fba6fb Updates for LANG-1058: StringUtils.uncapitalize performance improvement. Similar fix also applied to StringUtils.capitalize (as mentioned in issue). Thanks to Leo Wang.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1673944 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 19:59:50 +00:00
Duncan Jones
71f6746f81 Update for LANG-1069: CharSet.getInstance documentation does not clearly explain how to include negation character in set. Javadoc expanded and unit tests added to match examples. Based on patch by Arno Noordover.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1672833 13f79535-47bb-0310-9956-ffa450edef68
2015-04-11 06:02:34 +00:00
Duncan Jones
7ef106b237 Implements LANG-1050: Change nullToEmpty methods to generics. Thanks to James Sawle. This closes #33 in GitHub too.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1672244 13f79535-47bb-0310-9956-ffa450edef68
2015-04-09 06:27:15 +00:00
Benedikt Ritter
29f03b5f63 Add missing issue to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1672137 13f79535-47bb-0310-9956-ffa450edef68
2015-04-08 18:38:31 +00:00
Duncan Jones
3051264e1b Implements LANG-1074: Add a method to ArrayUtils for removing all occurrences of a given element. Thanks to Haiyang Li.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1672025 13f79535-47bb-0310-9956-ffa450edef68
2015-04-08 07:53:49 +00:00
Chas Honton
86c76dd5ea LANG-1107 Fix parsing edge cases in FastDateParser
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671992 13f79535-47bb-0310-9956-ffa450edef68
2015-04-08 02:19:02 +00:00
Chas Honton
c9d3c58e44 revert muddled commit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671989 13f79535-47bb-0310-9956-ffa450edef68
2015-04-08 01:48:12 +00:00
Chas Honton
76cc69c3f0 LANG-1109 - Number percentage formatting with fractional digits
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671734 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 02:40:49 +00:00
Benedikt Ritter
1c532efdb5 Add next release to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671594 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 17:09:10 +00:00
Benedikt Ritter
cdbf4758ed Post release clean up: bump version number, document release date, add release to doap file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671578 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 16:45:16 +00:00
Benedikt Ritter
e83123d13c Fix copy past error
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671044 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 12:09:37 +00:00
Benedikt Ritter
09c42e7d12 LANG-821: Support OS X versions in SystemUtils. This also fixes #59 from github. Thanks to Timo Kockert.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671043 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 12:09:07 +00:00
Benedikt Ritter
9c7b0fb8e6 LANG-794: SystemUtils.IS_OS_WINDOWS_2008, VISTA are incorrect. This also fixes #60 from github. Thanks to Timo Kockert.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671040 13f79535-47bb-0310-9956-ffa450edef68
2015-04-03 12:01:59 +00:00
Chas Honton
06d724599d LANG-1104 - FastDateParserTest.testParses fails in TimeZone America/Sao_Paulo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1670560 13f79535-47bb-0310-9956-ffa450edef68
2015-04-01 04:07:43 +00:00
Benedikt Ritter
3225ba64ce LANG-1103: Add SystemUtils.IS_JAVA_1_9
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669753 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 12:26:01 +00:00
Benedikt Ritter
11c0df1d9e LANG-1102: Make logic for comparing OS versions in SystemUtils smarter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669750 13f79535-47bb-0310-9956-ffa450edef68
2015-03-28 12:08:17 +00:00
Benedikt Ritter
c8e96c0c73 LANG-1091: Shutdown thread pools in test cases. This fixes #58 from github. Thanks to Fabian Lange.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669310 13f79535-47bb-0310-9956-ffa450edef68
2015-03-26 10:21:24 +00:00
Chas Honton
0b7ef7f53f update changes.xml to set proper issue number for previously committed work
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1668781 13f79535-47bb-0310-9956-ffa450edef68
2015-03-24 03:24:30 +00:00
Benedikt Ritter
a74ed8ca04 Dummy commit to close github issue. This fixes #35 from github.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1668523 13f79535-47bb-0310-9956-ffa450edef68
2015-03-23 07:04:07 +00:00
Benedikt Ritter
aeaa333caa Add missing issues to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1668522 13f79535-47bb-0310-9956-ffa450edef68
2015-03-23 07:02:13 +00:00
Benedikt Ritter
7bb99bcb6b LANG-935: Possible performance improvement on string escape functions. Thanks to Fabian Lange and Thomas Neidhart.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1668348 13f79535-47bb-0310-9956-ffa450edef68
2015-03-22 09:52:25 +00:00
Benedikt Ritter
bf6ee5c56e LANG-948: Exception while using ExtendedMessageFormat and escaping braces. This fixes #19 from github. Thanks to Andrey Khobnya.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666679 13f79535-47bb-0310-9956-ffa450edef68
2015-03-14 12:46:02 +00:00
Benedikt Ritter
3328387a53 LANG-990: Avoid String allocation in StrBuilder.append(CharSequence). This fixes #51 from github. Thanks to Mikhail Mazurskiy and Fabian Lange.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666669 13f79535-47bb-0310-9956-ffa450edef68
2015-03-14 12:25:06 +00:00
Benedikt Ritter
1181552e7d Correct change types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666666 13f79535-47bb-0310-9956-ffa450edef68
2015-03-14 12:16:07 +00:00
Benedikt Ritter
adebbdc750 LANG-1098: Update maven-checkstyle-plugin to 2.14. This fixes #55 from github. Thanks to Michał Kordas.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666664 13f79535-47bb-0310-9956-ffa450edef68
2015-03-14 12:12:47 +00:00
Benedikt Ritter
d6f59c373f LANG-1097: Update org.easymock:easymock to 3.3.1. This fixes #54 from github. Thanks to Michał Kordas.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666662 13f79535-47bb-0310-9956-ffa450edef68
2015-03-14 12:07:56 +00:00
Benedikt Ritter
08a854a4f9 LANG-1096: Update maven-pmd-plugin to 3.4. This fixes #53 from github. Thanks to Michał Kordas.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666661 13f79535-47bb-0310-9956-ffa450edef68
2015-03-14 12:02:34 +00:00
Benedikt Ritter
bf3e77d897 LANG-1095: Update maven-antrun-plugin to 1.8. This fixes #52 from github. Thanks to Michał Kordas
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666658 13f79535-47bb-0310-9956-ffa450edef68
2015-03-14 11:55:43 +00:00
Benedikt Ritter
8aa1b44ada LANG-1092: Wrong formating of time zones with daylight saving time in FastDatePrinter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666568 13f79535-47bb-0310-9956-ffa450edef68
2015-03-13 20:29:06 +00:00
Benedikt Ritter
1f75a8f7cc LANG-877: Performance improvements for StringEscapeUtils. This fixes #49 from github. Thanks to Fabian Lange.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666535 13f79535-47bb-0310-9956-ffa450edef68
2015-03-13 18:18:59 +00:00
Benedikt Ritter
d38919fcbd LANG-1093: Add ClassUtils.getAbbreviatedName(). This fixes #48 from github. Thanks to Fabian Lange.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1666362 13f79535-47bb-0310-9956-ffa450edef68
2015-03-13 07:29:21 +00:00
Sebastian Bazley
ce7f4ed073 LANG-1090 FastDateParser does not set error indication in ParsePosition
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1663438 13f79535-47bb-0310-9956-ffa450edef68
2015-03-02 21:28:13 +00:00
Sebastian Bazley
7c8443f66c LANG-1089 FastDateParser does not handle excess hours as per SimpleDateFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1663348 13f79535-47bb-0310-9956-ffa450edef68
2015-03-02 16:29:45 +00:00
Sebastian Bazley
2367948a0f LANG-1061 FastDateParser error - timezones not handled correctly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1663140 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 17:59:34 +00:00
Benedikt Ritter
45a6467088 LANG-1087: NumberUtils#createNumber() returns positive BigDecimal when negative Float is expected. Thanks to Renat Zhilkibaev.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1663129 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 16:48:22 +00:00
Benedikt Ritter
61836183b1 Reverting changes from r1661762 (LANG-1086) for now until we have consensus about this change.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1662379 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 08:13:58 +00:00
Benedikt Ritter
bdb5d97230 LANG-1086: Remove busy wait from AtomicSafeInitializer.get(). This also fixes #46 from github. Thanks to github user artnaseef.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1661762 13f79535-47bb-0310-9956-ffa450edef68
2015-02-23 20:15:49 +00:00
Benedikt Ritter
ffc38b1f3b LANG-1081: DiffBuilder.append(String, Object left, Object right) does not do a left.equals(right) check. This fixes #41 from github. Thanks to Jonathan Baker.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1654137 13f79535-47bb-0310-9956-ffa450edef68
2015-01-23 08:25:43 +00:00
Benedikt Ritter
3181b40766 Add an additional test for LANG-1055
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1654135 13f79535-47bb-0310-9956-ffa450edef68
2015-01-23 08:10:41 +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
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
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
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
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
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
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