Commit Graph

3349 Commits

Author SHA1 Message Date
Sebastian Bazley c96a705446 Implement missing hashCode() methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388070 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 15:23:20 +00:00
Sebastian Bazley 5cf4263368 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388060 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 15:08:28 +00:00
Sebastian Bazley d7e8948727 Suppress deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388058 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 15:03:39 +00:00
Sebastian Bazley 20295a04b9 Explicit conversion to Integer; save the value for use later
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388052 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 14:51:18 +00:00
Sebastian Bazley 7be7d80dfe Document intentional drop-thru
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388049 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 14:43:19 +00:00
Sebastian Bazley bf57689e44 Simplify boolean tests and avoid boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387426 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 01:41:27 +00:00
Sebastian Bazley abecd96359 Simplify boolean tests and avoid boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387424 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 01:29:22 +00:00
Sebastian Bazley ca1dc33048 Simplify boolean tests and avoid boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387423 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 01:08:04 +00:00
Sebastian Bazley 8cb5f67c58 Now we are using JUnit4, can use expected=throwable.class for simple failure checks
Note: not suitable for cases where an earlier statement can generate the same exception.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387417 13f79535-47bb-0310-9956-ffa450edef68
2012-09-19 00:31:53 +00:00
Matthew Jason Benson 77d33a665a [LANG-824] Conversion of 3.x JUnit tests to 4.x; thanks to Duncan Jones
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387361 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 21:07:42 +00:00
Sebastian Bazley 32b71d0913 LANG-810 StringUtils.join() endIndex, bugged for loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384145 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 21:52:58 +00:00
Sebastian Bazley c7adc7e86f LANG-747 NumberUtils does not handle Long Hex numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384126 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 21:10:18 +00:00
Sebastian Bazley 2c6fa89aa4 Add some more BigDecimal tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384124 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 21:03:18 +00:00
Matthew Jason Benson 4070a08100 javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384030 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 16:40:49 +00:00
Sebastian Bazley 39f1521db3 Unnecessary ;
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381832 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 00:54:28 +00:00
Sebastian Bazley c253255984 Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381831 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 00:49:38 +00:00
Sebastian Bazley b474de41d2 Unnecessary SuppressWarnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381830 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 00:48:05 +00:00
Sebastian Bazley da0e6d77f8 Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381829 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 00:46:59 +00:00
Sebastian Bazley c05a57eef2 Update Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381827 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 00:43:48 +00:00
Sebastian Bazley dbbbb4230f Add tests for leading signs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381826 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 00:43:01 +00:00
Gary D. Gregory e2c6ef476d [LANG-817] Add org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS_8.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1380679 13f79535-47bb-0310-9956-ffa450edef68
2012-09-04 15:10:52 +00:00
Gary D. Gregory 8c478f2f9b - Update commons-io for tests to 2.4 from 2.2.
- Update findbugs-maven-plugin to 2.5.2 from 2.4.
- Update clirr-maven-plugin to 2.4 from 2.3.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1376935 13f79535-47bb-0310-9956-ffa450edef68
2012-08-24 14:21:54 +00:00
Gary D. Gregory c3c36a5171 Update to Commons-Parent 26.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1376927 13f79535-47bb-0310-9956-ffa450edef68
2012-08-24 14:14:02 +00:00
Julius Davies c7ef0b7eb7 LANG-816 - followup incorporating ggregory's doc suggestion, some doc fixes, addition of CONST_BYTE() and CONST_SHORT(), and Junit improvements to test doc examples and make sure CONST_BYTE() and CONST_SHORT() throw IllegalArgumentException as required.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1376829 13f79535-47bb-0310-9956-ffa450edef68
2012-08-24 05:24:35 +00:00
Julius Davies 93148a8e5e [LANG-816] introduce CONST() methods to prevent Javac from inlining constants
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1376505 13f79535-47bb-0310-9956-ffa450edef68
2012-08-23 14:28:14 +00:00
Matthew Jason Benson c63041d06c [LANG-814] ConstructorUtils.invoke*(*, Object... args) variants cannot handle null values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1369116 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 17:43:33 +00:00
Matthew Jason Benson 49b63810c0 [LANG-814] MethodUtils.invoke*(*, Object... args) variants cannot handle null values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1369102 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 17:17:18 +00:00
Sebastian Bazley 4ae84a33c0 LANG-813 StringUtils.equalsIgnoreCase doesn't check string reference equality
Also check lengths.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1361462 13f79535-47bb-0310-9956-ffa450edef68
2012-07-14 00:53:36 +00:00
Matthew Jason Benson feb980a639 [LANG-812] Permit bitvector generation for Enums with > 64 values; plus some test corrections
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1361376 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 20:14:14 +00:00
Matthew Jason Benson e1a26f355e [LANG-753] Document v3.x changes to Validate API
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1354616 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 16:27:55 +00:00
Sebastian Bazley 4a65cb8da2 LANG-807 RandomStringUtils throws confusing IAE when end <= start
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1348583 13f79535-47bb-0310-9956-ffa450edef68
2012-06-10 12:40:48 +00:00
Sebastian Bazley 27bcbcc728 LANG-805 RandomStringUtils.random(count, 0, 0, false, false, universe, random) always throws java.lang.ArrayIndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1348422 13f79535-47bb-0310-9956-ffa450edef68
2012-06-09 14:58:34 +00:00
Sebastian Bazley 1971d3ed8b Simplify test case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1348417 13f79535-47bb-0310-9956-ffa450edef68
2012-06-09 14:40:59 +00:00
Sebastian Bazley 94c5cbb462 Simplify tests by using @Test(expected)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1344491 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 22:48:11 +00:00
Sebastian Bazley 1ee65910e3 Easier to find entries in the Eclipse outline view if the id is placed first
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1342655 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 14:47:45 +00:00
Sebastian Bazley 4c2e69797f LANG-802 - LocaleUtils - unnecessary recursive call in SyncAvoid class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1342651 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 14:39:38 +00:00
Sebastian Bazley 0aa4135a78 Update to CP25; use default changes config from CP
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1342642 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 14:37:16 +00:00
Sebastian Bazley c3c6f98e56 LANG-511 Make private immutable fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1342558 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 10:13:52 +00:00
Gary D. Gregory 5384a20c28 [LANG-798] Use generics in SerializationUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1329691 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 12:56:31 +00:00
Gary D. Gregory efaa822f61 Convert to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1329689 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 12:55:35 +00:00
Gary D. Gregory 575965b1ba [LANG-800] Javadoc bug in DateUtils#ceiling for Calendar and Object versions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1329687 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 12:52:56 +00:00
Gary D. Gregory d79d88439e Use the active voice in Javadoc comments for the first sentence.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1329681 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 12:48:59 +00:00
Gary D. Gregory b27adc2584 Fix Javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1329678 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 12:42:44 +00:00
Gary D. Gregory 4071b34f98 Add comments for [LANG-798] Use generics in SerializationUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1310584 13f79535-47bb-0310-9956-ffa450edef68
2012-04-06 20:57:05 +00:00
Gary D. Gregory e4794cddf8 Add comments for [LANG-798] Use generics in SerializationUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1310566 13f79535-47bb-0310-9956-ffa450edef68
2012-04-06 20:03:55 +00:00
Gary D. Gregory e4fe677d6a Remove incomplete Javadoc tags.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309988 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 18:20:09 +00:00
Gary D. Gregory b889c1667f Interface members are implicitly public.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309987 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 18:19:44 +00:00
Gary D. Gregory f177e2277d Use @see tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309983 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 18:17:59 +00:00
Gary D. Gregory 510e3761dc Update commons-io to 2.2 from 2.1 (for testing.)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309980 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 18:02:44 +00:00
Gary D. Gregory b819343483 Add missing @Override.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309977 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 17:53:39 +00:00