Commit Graph

3034 Commits

Author SHA1 Message Date
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
Sebastian Bazley 67914b1475 Add some more tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390815 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 02:46:55 +00:00
Sebastian Bazley 9dabaeeb96 Show where the parsing failed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390814 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 02:33:01 +00:00
Sebastian Bazley f899c178b7 Don't save short eras if they are the same as the long eras
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390811 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 02:18:18 +00:00
Sebastian Bazley 65a6458eaa LANG-832 FastDateParser does not handle unterminated quotes correctly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390795 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 00:55:31 +00:00
Sebastian Bazley ad72b9f2bf LANG-831 FastDateParser does not handle white-space properly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390779 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 00:09:15 +00:00
Sebastian Bazley 192b1e1b6b Allow access to parsedPattern for test purposes
Make ParseException text similar to that thrown by SimpleDateFormat

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390778 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 00:02:58 +00:00
Sebastian Bazley c03f033c1c Trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390722 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 20:44:16 +00:00
Sebastian Bazley de3d06ff01 Package protection is sufficient here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390656 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 18:43:40 +00:00
Sebastian Bazley e568101617 Wrong class name; make line stand out better
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390650 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 18:37:31 +00:00
Sebastian Bazley d7af943548 LANG-828 FastDateParser does not handle non-Gregorian calendars properly
Use Calendar#getDisplayNames() instead of DateFormatSymbols#getEras()

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390626 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 18:03:24 +00:00
Sebastian Bazley e582456625 LANG-828 FastDateParser does not handle non-Gregorian calendars properly
Fix bug in Java 7 (Locale.toString() format has changed)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390189 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 22:12:14 +00:00
Sebastian Bazley 73ea9c43c6 Extract constant
Label output with test case name

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390172 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 21:46:34 +00:00
Sebastian Bazley eedd1169bf Label output with test case name
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390171 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 21:46:11 +00:00
Sebastian Bazley 3e47c0599e Remove unused field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390158 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 21:31:41 +00:00
Sebastian Bazley 6ac6f2c870 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390157 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 21:30:27 +00:00
Sebastian Bazley 005f41f136 One reason why the ja_JP_JP and th_TH_* locales don't work
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390143 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 21:11:34 +00:00
Sebastian Bazley 34beef1d08 LANG-828 FastDateParser does not handle non-Gregorian calendars properly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389976 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 16:32:20 +00:00
Sebastian Bazley 5ffcb8d35b getInstance() (Java 1.6) supports more locales
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389939 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 15:41:57 +00:00
Sebastian Bazley 6d06d0a1c0 Fix testParses() so it works for non-GMT timezones: the format must include hours to allow for GMT-offsets
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389869 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 14:07:47 +00:00
Sebastian Bazley f67add0e72 Grammar
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389682 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 02:03:24 +00:00
Sebastian Bazley f621ea87cc Document why tests seem to fail
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389681 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 02:02:21 +00:00
Sebastian Bazley 62d5c0eecb LANG-826 FastDateParser does not handle non-ASCII digits correctly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389673 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 01:07:01 +00:00
Sebastian Bazley bb8164bb2c Make immutable private variable final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389670 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 01:01:50 +00:00
Sebastian Bazley 0120e9264d More tests; era seems to cause issues, so check this separately
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389667 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 00:51:11 +00:00
Sebastian Bazley 246ecda5e2 Split test into 4 so each failure can be detected
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389484 13f79535-47bb-0310-9956-ffa450edef68
2012-09-24 17:01:47 +00:00
Sebastian Bazley a81da42d90 LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Remove inappropriate test - we don't use localized formats

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389172 13f79535-47bb-0310-9956-ffa450edef68
2012-09-24 00:11:23 +00:00
Gary D. Gregory 01ee7028e6 [LANG-825] Create StrBuilder APIs similar to String.format(String, Object...)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389042 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 13:01:27 +00:00
Sebastian Bazley 72b9613ddb LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Show current default locale

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388824 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 16:07:55 +00:00
Sebastian Bazley 12a0e3bdde LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Parse German date with English Locale, specifying German Locale override

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388821 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 15:36:31 +00:00
Sebastian Bazley 79c627478f LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Remove unnecessary test

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388818 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 15:27:40 +00:00
Sebastian Bazley ebdef1b957 LANG-799 - DateUtils#parseDate uses default locale; add Locale support
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388806 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 13:22:30 +00:00
Sebastian Bazley b219a449bb LANG-799 Add tests to show ParseException when default Locale is wrong
Add Strictly tests for valid strings

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388793 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 12:41:16 +00:00
Sebastian Bazley 37fd0adafb LANG-799 Add tests to show ParseException when default Locale is wrong
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388787 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 12:33:25 +00:00
Sebastian Bazley 247cf8c4dc JUnit4 allows use of expected exceptions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388108 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 16:36:57 +00:00
Sebastian Bazley f25a596ae9 Override of sync. method needs to be sync.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388090 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 16:02:23 +00:00
Sebastian Bazley 59702fcddc Fix hashCode() - t is not part of equals() check
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388088 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 15:59:13 +00:00
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
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 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
Gary D. Gregory 8c29c67486 [LANG-798] Use generics in SerializationUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309920 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 16:09:37 +00:00
Gary D. Gregory 806e256fed Do not import *
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309912 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 15:53:18 +00:00
Gary D. Gregory d551d98b2b Do not import *
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309911 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 15:53:07 +00:00
Gary D. Gregory d492294b33 Do not import *
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1309910 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 15:52:43 +00:00
Henri Yandell f1ba9c252d Applying Benedikt Ritter's patch to fix the Checkstyle error in SerializationUtils - LANG-793
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1301321 13f79535-47bb-0310-9956-ffa450edef68
2012-03-16 03:11:36 +00:00
Matthew Jason Benson e9d6891549 add TODOs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1301150 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 19:00:56 +00:00
Henri Yandell a0de414979 Adding javadoc note concerning LANG-755 and the bug in java.util.Calendar.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1299560 13f79535-47bb-0310-9956-ffa450edef68
2012-03-12 04:37:38 +00:00
Gary D. Gregory c10bb4d052 Organize imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1299413 13f79535-47bb-0310-9956-ffa450edef68
2012-03-11 17:57:40 +00:00
Gary D. Gregory 204346f754 Eat own dog food: StringUtils#isEmpty(String) and replace some but not all String#length() == 0 with String#isEmpty()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1299411 13f79535-47bb-0310-9956-ffa450edef68
2012-03-11 17:55:29 +00:00
Sebastian Bazley 85848c25a9 Documentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1298506 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 18:50:52 +00:00
Sebastian Bazley fdb8044745 All tests should leave the registry empty
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1298502 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 18:46:34 +00:00
Sebastian Bazley 2a691eb9b1 Fix test failures by clearing out the registry for tests that try
to show that the registry is left clean.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1298262 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 02:41:24 +00:00
Sebastian Bazley 42e974c43c Trying to find cause of Gump (and other) failures
Ensure that registry starts out empty

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1297125 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 16:50:02 +00:00
Sebastian Bazley 8c4baca0e2 Ensure fail message gives reason
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1297019 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 12:06:27 +00:00
Henri Yandell b24330cd37 Simplifying the unaccent code to no longer support Java 5
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1296774 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 09:45:21 +00:00
Gary D. Gregory 840d5cf4f2 Fix Javdoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1295208 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 18:37:38 +00:00
Gary D. Gregory 9260ac9efa Apply fix suggested by Benedikt Ritter on the ML: "The problem is, that there is no method with name "getTimeZoneOverridesCalendar()" in DateParser, so that link can't be resolved (I think you already knew that :).
I suppose the comment is meant to refer to getTimeZone() in java.util.Calendar. If so, you can fix that by changing the link to: {@link java.util.Calendar#getTimeZone()}"

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1295173 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 16:17:26 +00:00
Gary D. Gregory e9429c05e1 [LANG-788] SerializationUtils throws ClassNotFoundException when cloning primitive classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1295134 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 14:39:01 +00:00
Gary D. Gregory 81797ed440 Fix Javdoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1295127 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 14:24:56 +00:00
Gary D. Gregory 8183099c0e Fix Javdoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1295126 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 14:23:59 +00:00
Sebastian Bazley 5715f15e32 getInstance(locale) is Java 1.6+
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1293615 13f79535-47bb-0310-9956-ffa450edef68
2012-02-25 14:20:20 +00:00
Henri Yandell 58d279ce5e Applying Felix Müller's patch from LANG-462 to fix a timezone assumption in a test and remove Java 6 interface implementation @Override statements
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1290976 13f79535-47bb-0310-9956-ffa450edef68
2012-02-19 09:26:06 +00:00
Matthew Jason Benson 9d9a50eef1 test same prefix/suffix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1243121 13f79535-47bb-0310-9956-ffa450edef68
2012-02-11 18:57:19 +00:00
Henri Yandell 879ed35251 Adding 462 and 786 to the change history
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1236057 13f79535-47bb-0310-9956-ffa450edef68
2012-01-26 07:22:54 +00:00
Henri Yandell cc340ad2eb Applying Chas Honton's implementation of DateParser and subsequent integration into FastDateFormat and the time package. See LANG-462.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1236055 13f79535-47bb-0310-9956-ffa450edef68
2012-01-26 07:00:26 +00:00
Matthew Jason Benson dfa6882a3b [LANG-786] StringUtils equals() relies on undefined behavior; thanks to Daniel Trebbien
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1234915 13f79535-47bb-0310-9956-ffa450edef68
2012-01-23 17:47:21 +00:00
Henri Yandell a315706734 Adding the issues in 3.2 to changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1225140 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 07:55:42 +00:00
Henri Yandell 24b91fba82 Fixing the DateIterator javadoc to indicate the end date is inclusive, not 'not inclusive'
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1225117 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 07:05:24 +00:00
Henri Yandell 1c8d3e6011 Making StrBuilder Serializable per LANG-764
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1225111 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 06:33:21 +00:00
Henri Yandell d486ed9323 Dropping the serialVersionUID from EventListenerSupport per LANG-765
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1225109 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 06:27:47 +00:00
Henri Yandell bec8377596 Fixing the StringUtils.split javadoc per Samurel Tardieu in LANG-783
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1225104 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 05:58:31 +00:00
Sebastian Bazley cf6c0e72ba Fix various boxing errors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1206700 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 11:39:35 +00:00
Sebastian Bazley a5420133ac Suppress "already instanceof" warning because that is what we want to check
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1206697 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 11:05:57 +00:00
Henri Yandell b4011cf021 Adding Henning's GitHub pull request with a Triple implementation. LANG-675
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1205734 13f79535-47bb-0310-9956-ffa450edef68
2011-11-24 06:20:59 +00:00
Sebastian Bazley 7b56dd17b7 Ensure version does not get out of date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1204994 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 13:53:22 +00:00
Matthew Jason Benson c71d0f03da [LANG-775] [LANG-776] fix related bugs dealing with type variable inheritance
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1203429 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 23:59:36 +00:00
Matthew Jason Benson e6a1d017b1 [LANG-775] add failing test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1203427 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 23:58:31 +00:00
Matthew Jason Benson d487814aba [LANG-776] reverse bad assertion to make failing test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1203426 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 23:56:21 +00:00
Matthew Jason Benson 679090a612 original tests contained one message WRONG which seems to indicate a problem area in the code; elaborating message
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1203312 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 18:26:55 +00:00
Sebastian Bazley 3bb1629e97 Add Commons LANG 2.6 downloads
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1202753 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 15:59:07 +00:00
Gary D. Gregory c3aef5c3d2 Fix typos: threadsafe -> thread-safe
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1202710 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 13:50:36 +00:00
Sebastian Bazley d534206f65 LANG-773 ImmutablePair doc contains nonsense text
Clarify comment

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1202706 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 13:44:05 +00:00
Sebastian Bazley 7b7965bf46 LANG-772 ClassUtils.PACKAGE_SEPARATOR javadoc contains garbage text
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1202521 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 03:14:26 +00:00
Henri Yandell 4f0e19fc5f Remove version # from LHS nav
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1202369 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 18:40:52 +00:00
Henri Yandell 1887ccff5c Adding 3.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1202288 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 16:37:29 +00:00
Henri Yandell db02269fe1 Setting release date for 3.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1202079 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 07:35:50 +00:00
Henri Yandell ad8168d628 Adding link to GitHub mirror
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1201034 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 19:38:20 +00:00
Gary D. Gregory ff010a98f1 [LANG-762] Handle or document ReflectionToStringBuilder and ToStringBuilder for collections that are not thread safe. Better Javadocs. See Phil's comments in the Jira.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1200177 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 06:14:33 +00:00
Gary D. Gregory fa35d13c66 Turn off long-running test for now.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1200096 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 02:07:43 +00:00
Gary D. Gregory 1460653475 Use Collection.isEmpty() instead of size() == 0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199983 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 21:41:24 +00:00
Gary D. Gregory 371e866442 Remove superfluous parens like:
return (foo + 1);
int len = (foo + 1);
if ((foo + 1 > 2))
((String) foo)



git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199894 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 17:53:59 +00:00
Gary D. Gregory 725ca33769 Use blocks.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199893 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 17:42:00 +00:00
Gary D. Gregory 57251859b6 Eat own dog food:
separator == null ? "" : separator
->
ObjectUtils.toString(separator)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199888 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 17:35:01 +00:00
Henri Yandell 85b07d539b Copying current rel notes into site
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199887 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 17:32:52 +00:00
Gary D. Gregory 1c74cc0565 Remove superfluous parens.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199882 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 17:25:09 +00:00
Henri Yandell a8485376b1 Changing planned version from 3.0.2 to 3.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199820 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 16:14:52 +00:00
Henri Yandell 163731256b Changing @since 3.0.2 to @since 3.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199816 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 16:11:34 +00:00
Gary D. Gregory 3ca916f3e4 Use Java 5 LinkedList API, not Java 6. Note that removeFirstOccurrence(Object) delegates to remove(Object) in Java 6.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199798 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 15:32:12 +00:00
Gary D. Gregory 67d4ef2e92 [LANG-762] Handle or document ReflectionToStringBuilder and ToStringBuilder for collections that are not thread safe.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199790 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 15:13:05 +00:00
Gary D. Gregory 6ef8d3247b @version $Id$
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199789 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 15:10:20 +00:00
Gary D. Gregory a21b3cc000 @version $Id$
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199788 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 15:10:00 +00:00
Gary D. Gregory baa994c627 [LANG-762] Handle or document ReflectionToStringBuilder and ToStringBuilder for collections that are not thread safe.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199786 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 15:07:16 +00:00
Gary D. Gregory 44cd641b4e [LANG-762] Handle or document ReflectionToStringBuilder and ToStringBuilder for collections that are not thread safe.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199773 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 14:34:43 +00:00
Sebastian Bazley 7b3e823ede Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199735 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 13:11:07 +00:00
Sebastian Bazley 9690bfde6a Unnecessary semi-colons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199730 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 13:00:47 +00:00
Sebastian Bazley bcc848ffc0 Unnecessary Integer creation; actually wants long
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199726 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 12:59:24 +00:00
Sebastian Bazley f4b810ba42 Avoid boolean boxing in asserts where possible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199724 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 12:51:52 +00:00
Sebastian Bazley 40e4babd35 Suppress generic warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199718 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 12:43:20 +00:00
Henri Yandell 6fa98368a8 Upgrading version numbers to 3.0.2
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199613 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 04:29:01 +00:00
Henri Yandell 7de0293ac9 Updating changes report per 3.0.2 issues in JIRA
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199610 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 04:22:21 +00:00
Henri Yandell 9bb3361616 Dropping comparators for next release (LANG-532)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199609 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 04:12:18 +00:00
Gary D. Gregory 22861326c2 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185712 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 15:11:02 +00:00
Gary D. Gregory 6105336638 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185710 13f79535-47bb-0310-9956-ffa450edef68 2011-10-18 15:07:07 +00:00
Gary D. Gregory cfc3d1fb1e Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185708 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 15:05:50 +00:00
Gary D. Gregory ccc01ec371 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185707 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 15:01:49 +00:00
Gary D. Gregory 9506bec96f Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185705 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:59:56 +00:00
Gary D. Gregory 1b2fa6a727 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185704 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:56:56 +00:00
Gary D. Gregory c800d51a69 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185703 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:55:38 +00:00
Gary D. Gregory fa1c89f7e1 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185702 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:53:59 +00:00
Gary D. Gregory d9ad78065d Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185700 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:52:55 +00:00
Gary D. Gregory 6e9a3888a6 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185699 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:51:31 +00:00
Gary D. Gregory f4223f93e4 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185697 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:50:15 +00:00
Gary D. Gregory d0ea299cdf Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185695 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:47:48 +00:00
Gary D. Gregory 41e61322d6 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183484 13f79535-47bb-0310-9956-ffa450edef68 2011-10-14 20:12:49 +00:00
Gary D. Gregory d454e564c1 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183477 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 20:03:54 +00:00
Gary D. Gregory 00a102e828 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183474 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 19:48:03 +00:00
Gary D. Gregory 7d00a80c97 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183473 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 19:46:16 +00:00
Gary D. Gregory 16c3a32975 [LANG-759] Add Support in SystemUtils for Windows Server 2003 and Windows Server 2008.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1180197 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 20:12:48 +00:00
Sebastian Bazley 5244e89e73 LANG-744 Use IOD for stripAccent init
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1178626 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:04:54 +00:00
Henri Yandell c103730424 Adding additional example for whitespace per Bruno's patch in LANG-758
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1177171 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 05:56:45 +00:00
Gary D. Gregory 4e2882b6c3 [LANG-756] Add APIs ClassUtils.isPrimitiveWrapper(Class<?>) and isPrimitiveOrWrapper(Class<?>)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1174469 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 00:47:45 +00:00
Gary D. Gregory 74480a2362 Convert to Java 5 enhanced for loops.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1169521 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 20:10:58 +00:00
Henri Yandell 765e4ff843 Making this package private as it lacks any public API value at the present
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167674 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:49:13 +00:00
Henri Yandell 8819b52ba1 Making ComparatorChain implement Iterable. Including test and package private copy of Collections' UnmodifiableIterator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167673 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:47:33 +00:00
Henri Yandell 2fcc80e71f Simplifying ComparatorChain version from the version taken from Commons Collections. The ability to modify the comparator list, and the ability to reverse items (rather than simply wrapping in ReverseComparator) was complexity inducing. Also added a unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167671 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:07:14 +00:00
Henri Yandell dc3bef79c8 Adding test for equals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167669 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:06:14 +00:00
Sebastian Bazley 1db449142a LANG-752 Fix createLong() so it behaves like createInteger()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166820 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 17:30:04 +00:00
Sebastian Bazley 0ee2a1ec2c LANG-744 StringUtils throws java.security.AccessControlException on Google App Engine
Display both Java6 and Sun exceptions when neither is available for stripAccents

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166786 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 16:37:26 +00:00
Gary D. Gregory 603d818735 [LANG-751] Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166685 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 13:41:05 +00:00
Gary D. Gregory 960b9a6cf7 Remove dead space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166371 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 20:09:25 +00:00
Gary D. Gregory 613e988c80 Revert changes from r1166233: [LANG-750] Add MethodUtil APIs to call methods without parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166253 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 16:27:42 +00:00
Gary D. Gregory 6a82ecae17 [LANG-750] Add MethodUtil APIs to call methods without parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166233 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 15:39:45 +00:00
Gary D. Gregory 1a37d98e3b Convert to JUnit 4 from 3.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166221 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 15:18:43 +00:00
Gary D. Gregory 9ed740b8bf Convert to JUnit 4 from 3.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166220 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 15:18:06 +00:00
Sebastian Bazley 8b9dba5315 LANG-744 StringUtils throws java.security.AccessControlException on Google App Engine
Change static code to catch and save Exception; only report failure if no method is available

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1165701 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 15:16:47 +00:00
Gary D. Gregory 2c3cc60001 Changes for [parent] 22-SNAPSHOT.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1165645 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 12:46:39 +00:00
Gary D. Gregory 507ae723e3 Test [LANG-744] StringUtils throws java.security.AccessControlException on Google App Engine.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1164305 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:10:32 +00:00
Gary D. Gregory f46c6726da Test [LANG-744] StringUtils throws java.security.AccessControlException on Google App Engine.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1164304 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:09:49 +00:00
Henri Yandell 2998309d72 Adding a System.err when a security manager stops JDK 1.5 from being able to access the Sun Normalizer class. LANG-744
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1163906 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 05:17:32 +00:00
Sebastian Bazley fafb1135a1 Clarify deprecation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1163586 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 11:41:10 +00:00
Henri Yandell 087067d581 Removing most of the ComparatorUtils code. Need to figure out how to get rid of the last attribute.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1162021 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 08:22:00 +00:00
Henri Yandell a41bf2aa2e Adding javadoc for the type
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1162020 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 08:19:53 +00:00
Henri Yandell 6cf48caa26 Deprecating chomp(String, String) per Verneri Åberg's report in LANG-748
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1161997 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 05:19:00 +00:00
Henri Yandell 2e30bec7af Rolling back r1161378. NullComparator and ReverseComparator need the NATURAL_COMPARATOR field and the ComparableComparator.INSTANCE field is not a straight replacement
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1161605 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 15:27:39 +00:00
Henri Yandell 7eb4f39699 Removing ComparatorUtils. I don't think min/max(Obj,Obj,Comparator) are the most useful methods, and I'm not sure we need the static factory methods to instantiate the comparators.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1161378 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 04:29:29 +00:00
Sebastian Bazley 41326bf526 LANG-746 NumberUtils does not handle upper-case hex: 0X and -0X
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160660 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 12:32:52 +00:00
Sebastian Bazley c98fbe27b2 Avoid boxing of both arguments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160647 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 12:17:26 +00:00
Henri Yandell 90e280bced Adding current 3.0.2 items
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160581 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 08:23:12 +00:00
Henri Yandell b948627d91 Adding documentation that the Mutable numbers don't work as might be expected with String.format. LANG-698
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160571 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 07:36:08 +00:00
Henri Yandell 7636080403 Adding an exception to catch AccessControlExceptions in Google App Engine as reported by Clément Denis in LANG-744
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160568 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 07:05:46 +00:00
Henri Yandell e234e7d341 Adding FreeBSD, NetBSD and OpenBSD per Oliver's suggestion in LANG-695
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160564 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 06:56:42 +00:00
Henri Yandell c7d0111a2a Filling out ReverseComparator testing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160015 13f79535-47bb-0310-9956-ffa450edef68
2011-08-21 17:26:36 +00:00
Henri Yandell 07f1732b2f Adding a basic ComparableComparator test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159030 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:36:12 +00:00
Henri Yandell f4ebe14c5f Dropped @author notes, moved individuals to the pom.xml contributor list
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159028 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:27:57 +00:00
Henri Yandell 8e57642b79 Adding a basic FixedOrderComparatorTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159026 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:24:57 +00:00
Henri Yandell 4fd7625f4b Adding a basic ReverseComparatorTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159024 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:20:40 +00:00
Henri Yandell 0eaabc4315 Adding a basic NullComparatorTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159023 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:13:48 +00:00
Henri Yandell 4335b4067d Removing collections tests - far too complex a system for the comparators' needs. Will rewrite as standalone test classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159018 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 03:59:16 +00:00
Gary D. Gregory 76416c0ad8 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158284 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:11:31 +00:00
Gary D. Gregory 866705e3c6 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158282 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:09:15 +00:00
Gary D. Gregory 4c2f18af7f [LANG-736] CharUtils static final array CHAR_STRING is not needed to compute CHAR_STRING_ARRAY.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158279 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:06:45 +00:00
Gary D. Gregory 1493ab204f Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158278 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:04:52 +00:00
Sebastian Bazley 11425c7892 Replace non-ASCII hyphen with ASCII version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1157551 13f79535-47bb-0310-9956-ffa450edef68
2011-08-14 15:35:16 +00:00
Henri Yandell 6f417859b7 Formatting the Maven xml block
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156027 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 05:11:15 +00:00
Henri Yandell f3ff37b4de More updates to the front page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156026 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:52:59 +00:00
Henri Yandell f55832f51f Adding 3.0.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156024 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:44:14 +00:00
Henri Yandell 9972bc15ea Setting release date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156022 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:42:10 +00:00
Henri Yandell 8b7f1e5c99 Missed 3.0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156021 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:40:48 +00:00
Henri Yandell 92cd620d4b Upgrading version in site.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156020 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:39:35 +00:00
Henri Yandell 2b0a81b899 Adding 2.x release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156018 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:04:22 +00:00
Henri Yandell 03bcf46acd Linking in release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156017 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:02:34 +00:00
Henri Yandell a644b32010 More release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156016 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:01:38 +00:00
Henri Yandell c600bccaeb Adding the 3.0.1 release notes as text. Managing a copy in HTML is a real pain in the arse, especially as it primarily duplicates changes.xml. Instead I'm going to build a dir with all the release notes we've had
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156015 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 03:58:11 +00:00
Henri Yandell 5716bf685b Improving the text to work with our having released more than one 3.x version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156014 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 03:56:45 +00:00
Sebastian Bazley f59609bb4d eol-style
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1155421 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 16:13:53 +00:00
Henri Yandell 64003a07a7 Updating site to 3.0.1. Realizing that I'll have some fun keeping the compare/ package out of the site upon 3.0.1 release :)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154847 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:49:27 +00:00