Commit Graph

3435 Commits

Author SHA1 Message Date
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
Sebastian Bazley cfab1e4fa1 LANG-815 DurationFormatUtils.formatPeriod() mis-calculation
Add test case to show there is no issue

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390971 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 12:46:42 +00:00
Sebastian Bazley 77eed078c8 LANG-777 jar contains velocity template of release notes
Merge releases notes into standard location

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390966 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 12:32:45 +00:00
Sebastian Bazley 586e0b1c8a Copy of Commons Parent version; generates same output
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390962 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 12:21:51 +00:00
Sebastian Bazley 6ecb0a30c3 LANG-830 FastDateParser could use \Q \E to quote regexes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390954 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 11:50:52 +00:00
Sebastian Bazley e5ae84a6fc LANG-829 FastDateParser could use Calendar.getDisplayNames for all text fields
Remove unnecessary KeyValue instances

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390937 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 10:59:30 +00:00
Chas Honton 8c87749695 LANG-829: FastDateParser could use Calendar.getDisplayNames for all text fields
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390839 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 04:50:21 +00:00
Sebastian Bazley 9960dd4204 Add some more tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390816 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 03:04:49 +00:00