Commit Graph

3442 Commits

Author SHA1 Message Date
Gary D. Gregory 310edf6439 [LANG-849] FastDateFormat generates Date objects wastefully.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1406026 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 01:58:29 +00:00
Gary D. Gregory 641aa249c3 [LANG-845] Spelling fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1401523 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 00:50:52 +00:00
Gary D. Gregory 6a0bcc6d0f Update Commons Parent from version 26 to 27.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396376 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 22:07:38 +00:00
Gary D. Gregory f7a8fa91ea [LANG-841] Add StringUtils API to call String.replaceAll in DOTALL a.k.a. single-line mode.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396375 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 22:07:08 +00:00
Thomas Neidhart 22d050b781 [LANG-844] Fix javadoc of StringUtils.center methods, thanks to John Lindwall.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396313 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 20:58:50 +00:00
Sebastian Bazley 307c280caf Fail if BitSet not faster overall
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396215 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 19:28:59 +00:00
Sebastian Bazley 8bbf8a9e2f LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Eliminate conversion of BitSet to int[]

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396075 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 15:37:05 +00:00
Sebastian Bazley 49685a4156 Add test for FreeBSD
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395965 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 11:02:02 +00:00
Sebastian Bazley f381f00df8 Show what we could not test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395961 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:52:27 +00:00
Sebastian Bazley de34665f51 sync with pom.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395948 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:44:31 +00:00
Sebastian Bazley d1207af833 sync with pom.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395946 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:37:01 +00:00
Sebastian Bazley 43a2736e22 LANG-839 Add tests to compare extractIndices+removeAll with direct use of BitSet in new version of removeAll
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395943 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:28:08 +00:00
Sebastian Bazley 17910d3cc7 LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Replace HashSet with BitSet (less memory; faster)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395837 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 01:26:13 +00:00
Sebastian Bazley ec242df460 LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Add benchmark test to show whether Bitset is faster

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395834 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 01:15:20 +00:00
Sebastian Bazley 73a89b07dc Check empty arrrays handled OK
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1394318 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 22:55:43 +00:00
Joerg Schaible ff5b829efd Use term "binary" instead of "boolArray" in Conversion. Improve Javadoc of class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393800 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:30:51 +00:00
Joerg Schaible 016c0e5858 Improve and fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393797 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:21:09 +00:00
Joerg Schaible 0b748abd18 Use better method names. Document possible ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393792 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:05:11 +00:00
Joerg Schaible ca9cbf976e Code clean-up for CheckStyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393626 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 17:17:40 +00:00
Joerg Schaible 28476afb7d LANG-778: Add to Conversion from byte[] to UUID and UUID to byte[]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393614 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 17:00:08 +00:00
Joerg Schaible 46448a690c Simplify expressions again.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393539 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 15:26:13 +00:00
Joerg Schaible bb7462c8b5 Document exceptions. Use IllegalArgumentException instead of assert. Throw IllegalArgumentException for empty arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393425 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 11:25:51 +00:00
Joerg Schaible 216411597d Use lowercase presentation for hex values as it is done in the JDK.
Use JDK functionality where available.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393073 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 18:12:53 +00:00
Sebastian Bazley f01111b634 Add some code comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391783 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 11:28:57 +00:00
Sebastian Bazley 86226bb499 There are only two distinct boolean values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391701 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 23:59:55 +00:00
Sebastian Bazley 2be663db75 LANG-838 ArrayUtils removeElements methods clone temporary index arrays unnecessarily
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391695 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 23:30:31 +00:00
Joerg Schaible 6545db8bb7 Revert 1391258 by veto of Sebb.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391571 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 17:40:16 +00:00
Joerg Schaible 413a98eb21 Use conversion tables for boolean arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391258 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:53:46 +00:00
Joerg Schaible 560bde10c7 "import java.lang.*" is always implicit.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391246 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:35:09 +00:00
Sebastian Bazley 91b9a3de99 Document sync. strategy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391242 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:30:08 +00:00
Joerg Schaible 38fea7d456 Avoid unnecessary conversions.
Use StringBuilder instead of StringBuffer.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391237 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:10:55 +00:00
Joerg Schaible 3de2a0c914 Implement test TODO.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391233 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 21:52:05 +00:00
Joerg Schaible 342a9184a9 JUnit 3 --> JUnit 4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391222 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 21:08:54 +00:00
Sebastian Bazley c62d888e94 Use JUnit4 methods where possible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391216 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 21:00:02 +00:00
Sebastian Bazley 0ee336a58f Convert to JUNit4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391199 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 20:24:35 +00:00
Sebastian Bazley 82f04621a4 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391195 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 20:10:33 +00:00
Sebastian Bazley 2abc129650 Convert Strategy to abstract class; simplifies the subclasses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391187 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 19:41:33 +00:00
Joerg Schaible 1000d1a1bd LANG-801: Add Conversion utility to convert between data types on byte level
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391148 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 18:09:08 +00:00
Sebastian Bazley 7c7c9447f6 Add test for StringBuilder
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391116 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 17:27:29 +00:00
Sebastian Bazley b5c79770db Add comment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391113 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 17:22:50 +00:00
Sebastian Bazley 89c6497228 StringBuffer => StringBuilder where being used as a local-only buffer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391112 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 17:21:12 +00:00
Sebastian Bazley 3ab8e13026 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391095 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 16:46:50 +00:00
Sebastian Bazley acb89828f1 Javadoc typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391048 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 15:02:09 +00:00
Sebastian Bazley a0148b0e20 Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391027 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 14:20:10 +00:00
Sebastian Bazley f9837a0728 Suppress boxing warnings for assertEquals()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391025 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 14:18:55 +00:00
Sebastian Bazley cc730589cd Document some @SuppressWarning annotations
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391003 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 13:34:33 +00:00
Sebastian Bazley 76833dc4a4 Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390993 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 13:16:30 +00:00
Sebastian Bazley f068cb71b5 Tab police
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390989 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 13:12:09 +00:00
Sebastian Bazley 0490f1c291 LANG-820 TypeUtils.normalizeUpperBounds broken?
Added test to show it works OK

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390984 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 13:01:57 +00:00
Sebastian Bazley 04babff379 LANG-818 FastDateFormat's "z" pattern does not respect timezone of Calendar instances passed to format()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390980 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 12:56:19 +00:00