Commit Graph

1574 Commits

Author SHA1 Message Date
Niall Pemberton 8e83403ba9 javadoc/checkstyle changes only
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634096 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 00:58:11 +00:00
Niall Pemberton 52a903c691 Restore JDK 1.3 compatibility (the MessageFormat(String, Locale) constructor was introduced in JDK 1.4)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634092 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 00:26:24 +00:00
Niall Pemberton d86a278500 svn:keywords properties and missing license headers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634088 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 00:06:05 +00:00
Niall Pemberton 65e3778b9e Remove failing test for unsupported sub-formats
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@633693 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 22:46:54 +00:00
Matthew Jason Benson efe31f5b60 javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@633659 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 21:41:26 +00:00
Matthew Jason Benson 39a6c14bd6 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@633621 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 20:20:23 +00:00
Gary D. Gregory ee0405b407 Make formatting consistent across the file:
Replace "methodcall( expr )" with "methodcall(expr)".
Replace "type foo = (expr)" with "type foo = expr".
Replace "if(expr)" with "if (expr)"


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@632503 13f79535-47bb-0310-9956-ffa450edef68
2008-03-01 00:21:52 +00:00
Matthew Jason Benson be5119c17d remove text describing passing a null value for a char parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@632061 13f79535-47bb-0310-9956-ffa450edef68
2008-02-28 17:15:55 +00:00
Niall Pemberton 60e5d4933c Remove previous ExtendedMesageFormat tests and update package suite to include ExtendedMessageFormatTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631652 13f79535-47bb-0310-9956-ffa450edef68
2008-02-27 17:12:38 +00:00
Niall Pemberton 7f5ffc6036 Add new test case for ExtendedMessageFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631639 13f79535-47bb-0310-9956-ffa450edef68
2008-02-27 16:44:17 +00:00
Matthew Jason Benson b3883c4dc3 refine (?) javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631405 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 22:24:34 +00:00
Matthew Jason Benson 20d5b0101b improve documentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631256 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 15:36:55 +00:00
Matthew Jason Benson f0e6c30a2d add Niall author tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630972 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 19:58:02 +00:00
Matthew Jason Benson 2e3057caa8 [LANG-362] simplify ExtendedMessageFormat design; recycle as much of super implementation as possible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630969 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 19:51:18 +00:00
Matthew Jason Benson 583c62281e [LANG-366] retract
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630967 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 19:49:21 +00:00
Henri Yandell 68c6547d0c Applying Cedrik Lime's patch to LANG-413; improving the memory footprint of getLevenshteinDistance
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630580 13f79535-47bb-0310-9956-ffa450edef68
2008-02-24 03:33:49 +00:00
Sebastian Bazley 5cbca4d5f5 LANG-410 - Ambiguous / confusing names in StringUtils replace* methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@627588 13f79535-47bb-0310-9956-ffa450edef68
2008-02-13 20:41:07 +00:00
Henri Yandell 1fe5439baf Applying my patch from LANG-412; fixing Peter Oxenham's report that the appendFixedWidthPadRight and appendFixedWidthPadLeft are not null safe if the nullText has not been set
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@627248 13f79535-47bb-0310-9956-ffa450edef68
2008-02-13 05:44:46 +00:00
Matthew Jason Benson 2e8e3f46ba sp again
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619157 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 21:24:46 +00:00
Gary D. Gregory 11fc6950e9 Format @since 2.4 methods to match the rest of the file. For example, expressions use no spaces around parens.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619143 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 20:21:57 +00:00
Gary D. Gregory 004d7b3e8f Simplify code paths where a statement is unnecessarily nested within an else clause. Also flip some if/else statements when tests can be expressed more clearly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619137 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 20:10:05 +00:00
Gary D. Gregory db456f2f89 Eat own dog food: Use EMPTY instead of "".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619115 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 19:27:10 +00:00
Sebastian Bazley fc734d1046 Correct spelling and punctuation in Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619091 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 18:24:59 +00:00
Henri Yandell cced495fa6 Pointless having the version here given that it gets automatically put above it when building
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619048 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 16:15:34 +00:00
Henri Yandell 531e28e356 Added missing '@since 2.4' lines based on jardiff report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@618884 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 04:37:17 +00:00
Gary D. Gregory b0b8356b0b [LANG-407] StringUtils.length(String) returns null-safe length.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@618882 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 04:32:56 +00:00
Sebastian Bazley 6dd93fc367 Remove extraneous exec properties
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@618693 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 16:33:29 +00:00
Henri Yandell 16120b386c Applying my patch from LANG-379, based on Robert Scholte's patch adding the 'getFragment' family of methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@617360 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 07:12:56 +00:00
Henri Yandell 9fc5424a6e Fixing the expected exception so the test doesn't fail (see LANG-180)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@616173 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 05:39:44 +00:00
Henri Yandell 3b7ca1d4a2 Applying my modified version of Chris Hyzer's patch from LANG-180 - adding a replaceEach(String, String[], String[]) and replaceRepeatedly(String, String[], String[]) pair of methods. The internal code to the private replaceEach method has not been fully reviewed yet - I wanted to get more eyes focused on the algorithm
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@616170 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 05:33:17 +00:00
Niall Pemberton 9681a37481 javadoc correction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@615244 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 15:21:08 +00:00
Niall Pemberton e266303c56 LANG-404 Add Calendar flavour format methods to DateFormatUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@615243 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 15:20:32 +00:00
Gary D. Gregory 680d605d3f Apply sebb's suggestion.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612880 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 17:34:43 +00:00
Niall Pemberton 5cb16e839d Add missing license files
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612786 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 10:37:38 +00:00
Henri Yandell 10658442a5 Applying my patch from LANG-298, based on Tomasz Blachowicz's original patch, and adds getPackageCanonicalName and getShortCanonicalName sets of methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612749 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 08:05:23 +00:00
Gary D. Gregory 57c6a6e832 Remove dependency on Java 1.4.2. Stick with Java 1.3.1.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612746 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 07:54:21 +00:00
Gary D. Gregory ee3839f5f4 Fix javadoc warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612656 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 00:31:27 +00:00
Henri Yandell 2a94f969ed Applying my patch from LANG-257, adding Cameron Whitehead's desired splitByWholeSeparatorPreserveAllTokens methods. In addition to the patch, I've added @since 2.4 tags to the javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612367 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 06:43:30 +00:00
Henri Yandell e199d381f8 Applying my patch from LANG-393; EqualsBuilder uses compareTo for BigDecimal and not equals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611543 13f79535-47bb-0310-9956-ffa450edef68
2008-01-13 07:00:22 +00:00
Matthew Jason Benson 97f1c120c0 [LANG-192] API improvements
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611528 13f79535-47bb-0310-9956-ffa450edef68
2008-01-13 03:46:28 +00:00
Matthew Jason Benson c739e01c68 add'l splitByCharacterType tests for single trailing characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611290 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 20:26:02 +00:00
Matthew Jason Benson ea810cbbbd [LANG-192] addSplitByCharacterType and camelCase variant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611288 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 20:13:02 +00:00
Henri Yandell 400f92899e Adding missing javadoc param
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610682 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 05:31:24 +00:00
Henri Yandell 34ad89c74d Deprecating add(Date, int, int) as there is no value in it being public
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610670 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 04:44:55 +00:00
Henri Yandell 9878845801 Marking @since 2.4 on the new methods from LANG-383
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610669 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 04:42:51 +00:00
Henri Yandell 85dda0d25a Applying the Date.setXxx replacement methods that use Calendar as supplied by Travis Meisenheimer in LANG-383
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610668 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 04:41:22 +00:00
Sebastian Bazley d3e28b6802 LANG-399 - Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610452 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 16:53:06 +00:00
Henri Yandell bee5b923c5 Applying third patch from LANG-381. Fixes the minimum(float[]) type methods to correctly return NaN when it is in the array, and adds an IEEE754rUtils class that obeys the IEEE 754r update in which NaN in min/max methods should be ignored unless all values are NaN.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@609475 13f79535-47bb-0310-9956-ffa450edef68
2008-01-06 23:58:59 +00:00
Henri Yandell ea4ce16289 Applying my patch from LANG-374 that adds an unescape method. It stays true to the spec and considers "foo.bar" to unescape as "foo.bar", ie) no unescaping, because "foo.bar" is illegal output from the escape method spec-wise.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@609094 13f79535-47bb-0310-9956-ffa450edef68
2008-01-05 06:33:12 +00:00
Henri Yandell e53cce977e Fixing the javadoc as per Tomasz Bartczak's report in LANG-384
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@606672 13f79535-47bb-0310-9956-ffa450edef68
2007-12-24 06:42:08 +00:00
Matthew Jason Benson dadd5e0130 disable toPattern() assertions pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600610 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:24:47 +00:00
Matthew Jason Benson 20817861c9 account for unavailability of NumberFormat.getIntegerInstance(...) pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600608 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:23:05 +00:00
Matthew Jason Benson 426bd462c9 account for unavailability of NumberFormat.getIntegerInstance(...) pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600607 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:21:50 +00:00
Matthew Jason Benson 524f1518d9 no (String, Locale) constructor on MessageFormat pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600606 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:21:09 +00:00
Matthew Jason Benson 686f2f611c account for unavailability of NumberFormat.getIntegerInstance(...) pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600605 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:20:24 +00:00
Matthew Jason Benson b952b75526 add note about toPattern() differences pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600602 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:19:23 +00:00
Matthew Jason Benson 0d575a6952 build on JDK 1.3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600566 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 15:28:25 +00:00
Matthew Jason Benson 673385b43d [LANG-380]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@599500 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 16:25:54 +00:00
Matthew Jason Benson dab1bdfc0f [LANG-380] tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@599499 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 16:25:30 +00:00
Matthew Jason Benson b124f18766 undo a little formatting mayhem
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598710 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:34:34 +00:00
Matthew Jason Benson 55817e2233 [LANG-362] checkstyle; javadoc; extended testing which necessitated some refactorings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598707 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:27:35 +00:00
Matthew Jason Benson 0acf60c6b2 remove unused variables
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598706 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:26:28 +00:00
Matthew Jason Benson deae2ba238 [LANG-380] return when either arg == 0 plus early return when either == 1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598705 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:24:59 +00:00
Henri Yandell 5ade5ae2b1 Fixing the @see->@link bit so it doesn't have @link
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597284 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:56:59 +00:00
Henri Yandell fa5bec39ff Adding return tag info
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597283 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:44:38 +00:00
Henri Yandell 11575edd7e Fixing checkstyle issue - lack of braces after an if
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597282 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:31:31 +00:00
Henri Yandell d2075adb52 Replacing the escaped quote with CSV_QUOTE, and changing the non-Writer version to reuse the Writer version - See: LANG-374
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597281 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:26:39 +00:00
Niall Pemberton 41d242e9ea LANG-377 Add containsAny() methods to StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595929 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 09:53:12 +00:00
Niall Pemberton 71a46589ca LANG-374 - implement Sebb's improvement to use StringUtils.containsNone()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595927 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 09:27:36 +00:00
Henri Yandell ac54287664 Adding Vista as per LANG-375
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595798 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 20:01:43 +00:00
Henri Yandell 272ca375e3 Removing testWTF as per LANG-376
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595779 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 19:02:49 +00:00
Niall Pemberton 8dd04a3897 Javadoc changes only
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595544 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 04:26:16 +00:00
Niall Pemberton 38760d2171 LANG-374 - Add escaping for CSV columns to StringEscapeUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595541 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 04:12:44 +00:00
Niall Pemberton 9d138fd0c0 Update m2 build
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595540 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 04:11:59 +00:00
Benjamin Speakmon f59aa231f2 - force Locale.US for tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594644 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 21:21:50 +00:00
Henri Yandell bbde1ad30e Applying the truncateNicely patch from LANG-338 as abbreviate. I've added it to WordUtils rather than StringUtils; it feels like a better fit there to me
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594599 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 18:04:59 +00:00
Henri Yandell 1dc6761059 Array->array
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594583 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 17:09:08 +00:00
Henri Yandell ecc7608faf Moved toClass from ArrayUtils to ClassUtils as per Joerg's comment in LANG-333
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594551 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 14:35:33 +00:00
Henri Yandell 70e7930e89 Fixing broken build due to JDK 1.5 Class.getSimpleName. Now uses ClassUtils.getShortClassName - LANG-333
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594543 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 14:05:45 +00:00
Henri Yandell f001010ccd Adding @since tags to the two new methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594416 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 03:46:49 +00:00
Henri Yandell 34f2cb2ab0 Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594410 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 03:21:39 +00:00
Henri Yandell 083f936d56 Applying Scott Johnson's great work in LANG-269
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594409 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 03:18:36 +00:00
Henri Yandell d6d01e857d Adding @since 2.4 tags to the new methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594398 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 02:43:10 +00:00
Henri Yandell 220e829b70 Applying Dave Meikle's patch to LANG-333; adding a toClass(Object[]);Class[] method to ArrayUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594396 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 02:38:48 +00:00
Henri Yandell 62a9fa6811 Attaching Johann's fix to LANG-322 (via Ben's patch)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594394 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 02:33:13 +00:00
Henri Yandell da6569b4a6 Applying Ben's patch of Brian Egge's improvement in LANG-321
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594388 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 01:29:10 +00:00
Henri Yandell 930b389bac Committing Bjorn's unit test as per LANG-372 to show that this is indeed an issue; and is expected
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594387 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 01:25:42 +00:00
Henri Yandell f7a005e41b Adding javadoc to note that the ToStringStyle HAS to be the same (LANG-372)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594386 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 01:22:21 +00:00
Henri Yandell 659b20c037 Applying my second patch from LANG-360 - it seems to do what Stephane/Paul and I are consensing on
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594336 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 22:54:02 +00:00
Henri Yandell ba320a3bc7 Applying the synchronization from LANG-369
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594278 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 19:58:30 +00:00
Henri Yandell 9926e31ac1 Applying the suggested change in use to the unit test as per LANG-353
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594276 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 19:55:14 +00:00
Henri Yandell f58c863e0b Fixing javadoc - it's != and not ==. Returning false because two objects have the same class is dumb. This was my dumb typing for LANG-353
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594275 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 19:54:49 +00:00
Henri Yandell 78b9d5fc88 Applying Scott Bassin's patch from LANG-371, adding unit tests that follow the approach of his previous patch to the documentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@592643 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 07:25:30 +00:00
Matthew Jason Benson cfd1e692e4 set svn keywords
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@592077 13f79535-47bb-0310-9956-ffa450edef68
2007-11-05 16:47:10 +00:00
Matthew Jason Benson 565d75665f remove accidental use of 1.5+ method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@592063 13f79535-47bb-0310-9956-ffa450edef68
2007-11-05 16:16:08 +00:00
Henri Yandell 157ae91e13 Applying Scott Bassin's patch from LANG-371 - improving the documentation for ToStringStyle as per Paul's report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@591559 13f79535-47bb-0310-9956-ffa450edef68
2007-11-03 08:03:33 +00:00
Henri Yandell 08e3868ddd Deleting the package-private comment as it freaks out xref
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@591547 13f79535-47bb-0310-9956-ffa450edef68
2007-11-03 02:59:51 +00:00
Henri Yandell d7fc9bc2e8 Fixed minor javadoc errors (as per checkstyle)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@591543 13f79535-47bb-0310-9956-ffa450edef68
2007-11-03 02:38:45 +00:00
Henri Yandell 72f88548f8 Making the HashMaps final as per LANG-367
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@590552 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 04:04:32 +00:00
Henri Yandell 127e6e338f Applying Sebb's test and fix from LANG-368 - fixing it so that FastDateFormat getDateInstance and getDateTimeInstance continue to work if Locale.getDefault() changes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@590551 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 03:58:52 +00:00
Matthew Jason Benson 43cf3f491e [LANG-362] Add ExtendedMessageFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@590106 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 15:06:54 +00:00
Matthew Jason Benson 013f19fdaf [LANG-366] Add MultiFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@589646 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 14:50:23 +00:00
Henri Yandell 796b898281 Applying Sebb's test and fix for LANG-365
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@589050 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 05:07:45 +00:00
Henri Yandell 9da40ba6b5 Applying the javadoc sample usage change from LANG-353 as reported by Christoph Kutzinski
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@588536 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 06:14:10 +00:00
Henri Yandell c22d9d59e5 Applying Scott Bassin's fix and test from LANG-363
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@588534 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 06:08:54 +00:00
Henri Yandell ed7e9b4349 Applying Scott Bassin's javadoc fix from LANG-364
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@588151 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 06:25:02 +00:00
Henri Yandell 1cc66e3095 Applying Corey Tripp's javadoc fix from LANG-361
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@587395 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 05:31:58 +00:00
Matthew Jason Benson bb7110e108 simplify testcase compat. w/ rev 587243
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@587244 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 20:46:50 +00:00
Matthew Jason Benson 462fc51fd4 add convenience isMatch(char[] buffer, int pos) that delegates using the entire buffer as bounds
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@587243 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 20:45:35 +00:00
Matthew Jason Benson 210884175c javadoc sp
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@587153 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 17:01:20 +00:00
Gary D. Gregory d0c4768911 [LANG-351] Extension to ClassUtils: Obtain the primitive class from a wrapper. Using @since 2.4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583668 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:51:41 +00:00
Gary D. Gregory 95b3ce93b8 Organize imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583666 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:38:13 +00:00
Gary D. Gregory 0c98a75f85 Organize imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583665 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:34:13 +00:00
Gary D. Gregory 5966fb9211 Organize imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583664 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:32:48 +00:00
Gary D. Gregory ee512dcc92 Organize imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583663 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:32:11 +00:00
Gary D. Gregory 0ffef3d083 Remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583661 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:31:23 +00:00
Gary D. Gregory 6e73d282ce Order imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583660 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:29:48 +00:00
Gary D. Gregory 675734acf8 Order imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583659 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:29:17 +00:00
Gary D. Gregory a4ab2e97d2 Order imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583658 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:28:47 +00:00
Gary D. Gregory 58ee25072d The import java.util.Date was never used.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583657 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:28:08 +00:00
Gary D. Gregory ec668fde27 Remove unused imports. Order imports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583656 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 01:27:37 +00:00
Gary D. Gregory 40a9d523a9 The import java.util.Date was never used.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583609 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 20:39:43 +00:00
Gary D. Gregory 16d4476068 Fix source inconsistencies: Some methods used both "foo" and "this.foo" for ivar references; made it all "this.foo".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583608 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 20:38:41 +00:00
Gary D. Gregory 15296e0664 [LANG-356] Add getStartTime to StopWatch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583605 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 20:31:17 +00:00
Henri Yandell 60fe05eb7a Applying Jason Madden's patch from LANG-334 to provide enums.Enum with optimized thread safety. As Jason's used this in production I think it's fair to use it rather than the simpler Collections.synchronizedMap(..). I've also applied the patch to the enum.Enum
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@572930 13f79535-47bb-0310-9956-ffa450edef68
2007-09-05 10:13:49 +00:00
Henri Yandell 2ca0eff93c Bringing over minor edits and a thrown ClassCastException from enums.Enum
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@572929 13f79535-47bb-0310-9956-ffa450edef68
2007-09-05 10:06:41 +00:00
Henri Yandell 486740b60a Altering the if/else logic of HashCodeBuilder.append(Object) as per LANG-345 to get 20->40% speed improvements. This is because the code no longer uses Class.isArray() on every invocation. Many thanks to Venkatesh Prasad Ranganath for offering this improvement.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@564070 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 01:58:11 +00:00
Henri Yandell 7fc38e82ec Adding non-javadoc note as per LANG-342
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@564056 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 00:29:21 +00:00
Henri Yandell 050fe8e916 Applying the fix and the test patches from LANG-346 - fixes bugs in DateUtils.round() for minutes and seconds. Patch from Dave Meikle
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@564053 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 00:24:59 +00:00
Matthew Jason Benson 8de8fe5fb7 Apache Apache
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@561556 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 21:24:54 +00:00
Rahul Akolkar 79e7dcefdb TLP related blanket changes:
s:jakarta.apache.org/commons:commons.apache.org:
s/commons-user@jakarta.apache.org/user@commons.apache.org/
s/commons-dev@jakarta.apache.org/dev@commons.apache.org/
s/Jakarta Commons/Apache Commons/
s:svn.apache.org/viewcvs/jakarta/commons:svn.apache.org/viewvc/commons:
s:svn.apache.org/viewcvs.cgi/jakarta/commons:svn.apache.org/viewvc/commons:
s:svn.apache.org/viewvc/jakarta/commons:svn.apache.org/viewvc/commons:
s:svn.apache.org/repos/asf/jakarta/commons:svn.apache.org/repos/asf/commons:

I'd appreciate another pair of eyes on this. There are some categories we probably don't want to change ATM (hopefully, none of these snuck in):
 * Historicals (proposals etc.)
 * URLs that shouldn't change (DOCTYPE fragments etc.)
 * Test cases where namespace URLs matter etc. (I'll track any related nightly failures)


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@561230 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 04:17:09 +00:00
Henri Yandell 7bc5735273 Fixing email addresses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@560800 13f79535-47bb-0310-9956-ffa450edef68
2007-07-29 20:03:50 +00:00
Niall Pemberton 899e67f0de LANG-326 - StringUtils: startsWith / endsWith / startsWithIgnoreCase / endsWithIgnoreCase / removeStartIgnoreCase / removeEndIgnoreCase methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@552088 13f79535-47bb-0310-9956-ffa450edef68
2007-06-30 03:25:53 +00:00
Henri Yandell 1c1064c917 Adding 'Deprecated' to tests which are testing deprecated methods and moving CharSetUtils from the deprecated evaluateSet method to a new getInstance(String[]) method. This does mean that getInstance(null) is no longer going to compile for people - they'll need to cast the null.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@534588 13f79535-47bb-0310-9956-ffa450edef68
2007-05-02 18:46:07 +00:00
Henri Yandell 75d931a326 Applying unit test/fix for LANG-328
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@534277 13f79535-47bb-0310-9956-ffa450edef68
2007-05-01 23:50:01 +00:00
Hanson Char 77a3c20bc0 removed pointless synchronized
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@530648 13f79535-47bb-0310-9956-ffa450edef68
2007-04-20 05:11:46 +00:00
Hanson Char 57dd1dc2d2 removed pointless synchronized
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@530645 13f79535-47bb-0310-9956-ffa450edef68
2007-04-20 05:06:03 +00:00
Henri Yandell 1539a50828 Updating with the correct version number
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@526778 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 15:33:19 +00:00
Daniel Rall 2319a67407 A feeble attempt at a (personal) anti-spam measure.
[ in jarkarta/commons/lang/src/ ]

* test/org/apache/commons/lang/exception/NestableDelegateTestCase.java
* test/org/apache/commons/lang/exception/ExceptionUtilsTestCase.java
* test/org/apache/commons/lang/StringUtilsTest.java
* java/org/apache/commons/lang/exception/ExceptionUtils.java
* java/org/apache/commons/lang/exception/NestableRuntimeException.java
* java/org/apache/commons/lang/exception/NestableError.java
* java/org/apache/commons/lang/exception/NestableDelegate.java
* java/org/apache/commons/lang/exception/NestableException.java
* java/org/apache/commons/lang/exception/Nestable.java
* java/org/apache/commons/lang/ObjectUtils.java
* java/org/apache/commons/lang/StringUtils.java
* java/org/apache/commons/lang/SerializationUtils.java
  Remove my email addresses.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@512889 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 18:18:20 +00:00
Henri Yandell b47f3a1d26 Making the build work again. No email received from the nightly build :(
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@511337 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 20:30:13 +00:00
Henri Yandell 1138f35555 Intentionally breaking the build to test the nightly build. Will fix tomorrow.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@511206 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 04:16:04 +00:00
Henri Yandell 1b19377446 Fixing LANG-320. I modified the tests to only check that the listed languages and countries are contained in the result, not that they exactly equal the result
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@508733 13f79535-47bb-0310-9956-ffa450edef68
2007-02-17 08:41:20 +00:00
Henri Yandell 6c0c39eb4d Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@508731 13f79535-47bb-0310-9956-ffa450edef68
2007-02-17 08:34:54 +00:00
Henri Yandell cd2c0146ab Commenting out the unit test for LANG-312. It's not resolved yet, so failure will happen
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@505466 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 19:58:06 +00:00
Henri Yandell 6575c54a88 Switching the JDK test to a warning as we can't control the JDK
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504357 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 23:02:52 +00:00
Henri Yandell b16235ad10 Applying test and fix for LANG-315
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504351 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 22:49:50 +00:00
Henri Yandell de4952beaf Oops, javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504349 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 22:44:33 +00:00
Henri Yandell 386cf07d7d Fixing javadoc warnings from checkstyle
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504343 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 22:40:12 +00:00
Henri Yandell 4b27f9cc30 Switching last two methods to use 'str' rather than 'string'
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504336 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 22:26:51 +00:00
Henri Yandell 2ddc45fc77 Replacing the optimisation for LANG-287.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504334 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 22:25:57 +00:00
Henri Yandell f011627264 I don't know why we declared new escape(StringWriter, String) methods. I've removed these and inlined their code into the escape(String, String) type methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504319 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 22:04:01 +00:00
Henri Yandell aa5356645e Improved private method name, newStringWriter to createStringWriter. newStringWriter is too close to new StringWriter
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@504316 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 21:57:57 +00:00
Henri Yandell 1781d00847 Removing unused imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@501986 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 20:54:26 +00:00
Henri Yandell 3e718fdb1b Applying my fix from LANG-314
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@501606 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 22:26:38 +00:00
Henri Yandell aac29e97ee Fixed indentation/tabs. Eclipse wasn't setup right I guess
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@500497 13f79535-47bb-0310-9956-ffa450edef68
2007-01-27 07:13:59 +00:00
Henri Yandell ec4a0fdfac Applying a modified version of Maarten Coene's patch for #LANG-69. All unit tests pass; opinions would be very welcome though.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@500495 13f79535-47bb-0310-9956-ffa450edef68
2007-01-27 07:11:08 +00:00
Henri Yandell 87ee821a5d Adding a unit test to show that LANG-313 is not a problem in the current trunk
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@496931 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 03:56:33 +00:00
Niall Pemberton 801f084e8e Change the assertion failure messages to provide more info
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@493682 13f79535-47bb-0310-9956-ffa450edef68
2007-01-07 08:15:41 +00:00
Henri Yandell 0a201610f9 Also test the JDK
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492913 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 05:36:50 +00:00
Henri Yandell abb136d51f Adding test for LANG-312. It passes for me, so I'm interested in whether it fails for anybody else.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492910 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 05:30:04 +00:00
Stephen Colebourne 0f2ba8cea3 Fix javadoc example
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492378 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 01:31:24 +00:00
Stephen Colebourne 183e837907 LANG-275 - StringUtils substringsBetween, implemented by Dave Meikle
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492377 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 01:20:30 +00:00
Stephen Colebourne 80cd41f238 Add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492371 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:42:05 +00:00
Stephen Colebourne da8646f9c9 LANG-306 - StrBuilder appendln/appendAll/appendSeparator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492369 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:35:45 +00:00
Stephen Colebourne de6e073727 LANG-310 - BooleanUtils isNotTrue/isNotFalse
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492361 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:10:13 +00:00
Stephen Colebourne 53a8f5b28a Formatting changes only
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492354 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 23:48:10 +00:00
Stephen Colebourne 4c7e393d46 Formatting changes only
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492352 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 23:44:56 +00:00
Phil Steitz ab29453ec2 Fixed incorrect JDK API link.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491757 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 07:50:12 +00:00
Gary D. Gregory 0e07a3b099 [LANG-102] [lang] Refactor Entities methods.
http://issues.apache.org/jira/browse/LANG-102.
Refactored escape and unescape methods to remove code duplication.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491695 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 23:24:27 +00:00
Gary D. Gregory a1dcdfa2a6 Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491654 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:04:34 +00:00
Gary D. Gregory fec5e2dc3d Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491653 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:03:58 +00:00
Gary D. Gregory fda25d2a8b Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491652 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:01:57 +00:00
Gary D. Gregory b091a374a7 Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491651 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:01:32 +00:00
Gary D. Gregory 627392e88d Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491650 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 22:00:14 +00:00
Gary D. Gregory 7d7b3e3877 Add missing Javadoc tags.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491645 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 21:51:30 +00:00
Henri Yandell 9425150104 Rolling back r467482 as the methods are already in java.util.Arrays. These were added as a part of #LANG-238.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491076 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 18:48:37 +00:00
Henri Yandell 65cc70a5c4 Rolling back r490355 - StrBuilder implements Cloneable again
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491073 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 18:42:08 +00:00
Stephen Colebourne 640d7cf079 LANG-301 - Document cloneReset()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491063 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:55:32 +00:00
Stephen Colebourne a9ff534b36 Fix javadoc link
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491059 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:44:59 +00:00
Stephen Colebourne 37b2a3f215 Avoid new Boolean() via BooleanUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491052 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:16:37 +00:00
Stephen Colebourne f40b71e33d LANG-291 - Move min/max methods above inner class, add javadoc and format
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@491050 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 17:04:00 +00:00
Henri Yandell 6847ebcf5e Improved #LANG-303 test to prove the formatting works on each side of the serializing
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490388 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 22:10:10 +00:00
Henri Yandell e9e167f9eb Applying test for #LANG-303, and a fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490387 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 22:05:47 +00:00
Henri Yandell 815f63670e StrBuilder no longer implements Cloneable. #LANG-302
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490355 13f79535-47bb-0310-9956-ffa450edef68
2006-12-26 18:58:06 +00:00
Henri Yandell b57c699e69 Rolling back r489734 - Boolean.valueOf(boolean) only available from JDK 1.4 onwards
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@490161 13f79535-47bb-0310-9956-ffa450edef68
2006-12-25 18:57:37 +00:00
Henri Yandell cf20d13c64 Applying test for LANG-304 and fix to LocaleUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489749 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 20:34:37 +00:00
Henri Yandell 848a8144bc Fixed import. Also optimised list.toArray(..) to use new Token[list.size()] so that the passed in array is used and not reflection. Latter reported by FindBugs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489740 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:51:19 +00:00
Henri Yandell 5a4594cd37 new Boolean -> Boolean.valueOf. (Reported by FindBugs)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489734 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:31:28 +00:00
Henri Yandell 37875137e9 Removing the Serializable implements. As far as I can tell, Number has been serializable since at the least Java 1.2. (Reported by FindBugs)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@489733 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:29:53 +00:00
Henri Yandell 03cc852bef Added a test for the under a day range in formatPeriod
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488929 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 06:24:00 +00:00
Henri Yandell 4f514d5eb3 More tests, more bugfixes (aka rewrite of the guts).
It's looking much better, the only edge case that throws it for a loop is if things start on the 29th of February in a year. I've hacked it in the day mode, but I'm not sure why I had to do that - however I trust the brute force test to be right in day mode. 
In month mode, it's even trickier as to what the correct answer is. How many months between 29th Feb and 28th of Feb the next year? The answer is 11, or with days included it's 11 months and 28 days. I can't see any reason to define that better, so I'm declaring that law. 

Things are weird if you start on Feb 29 :)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488926 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 06:10:26 +00:00
Henri Yandell 381ed0c0f6 Added new tests (failing) in comments. Improved output for debugging brute force tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488859 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 00:00:51 +00:00
Henri Yandell 93aa88fded Updated comment
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488858 13f79535-47bb-0310-9956-ffa450edef68
2006-12-19 23:59:51 +00:00
Henri Yandell 1536077409 Fixing LANG-300 (reported by Jeremy Lemaire) - 1L to 9L incorrectly throw exceptions when passed into NumberUtils.createNumber. Fixed in both the math.NumbersUtils and the deprecated NumberUtils classes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488819 13f79535-47bb-0310-9956-ffa450edef68
2006-12-19 21:50:04 +00:00
Henri Yandell 868dd28444 Let a few tab characters slip in - Eclipse wasn't configured yet. Replacing with spaces.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@486525 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 07:12:38 +00:00
Henri Yandell dd23ae863a More unit tests and bugfixes. The currently failing test is commented out, so more bugfixes to come.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@486523 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 07:09:24 +00:00
Henri Yandell 9b0b19a916 Applying a unit test for LANG-299 and the fix that Francisco Benavent suggests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@486377 13f79535-47bb-0310-9956-ffa450edef68
2006-12-12 22:34:39 +00:00
Henri Yandell 5fb6521ab9 More tests added to DurationFormatUtilsTest and discovered bugs fixed in the DurationFormatUtils.formatPeriod method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@485481 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 03:33:09 +00:00
Henri Yandell ee4ad2727f Added javadoc to explain the quandry in how to count month/day differences
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@483891 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 09:05:52 +00:00
Henri Yandell 012998b3d4 Applying max/min for Comparables as supplied by David Karlsen in LANG-291
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@475113 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 04:14:42 +00:00