Commit Graph

668 Commits

Author SHA1 Message Date
Stephen Colebourne a0aef72d87 Update original file location to author tag for consistency
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137456 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:21:08 +00:00
Stephen Colebourne f52c84195f Change error text to be more clear
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137455 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:19:24 +00:00
Stephen Colebourne 2a1cabe169 Update author tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137454 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 19:54:24 +00:00
Stephen Colebourne 7e0990cccc Additional testing, especially in the area of whitespace
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137453 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 18:10:30 +00:00
Stephen Colebourne 6c009fd782 Fix split to use whitespace, remove StringTokenizer
Performance tune some methods


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137452 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 18:09:33 +00:00
Gary D. Gregory 4bf65d4732 Severity Description Resource In Folder Location Creation Time
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly 	CompareToBuilder.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 254	July 18, 2003 7:11:22 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137451 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 03:25:38 +00:00
Stephen Colebourne 4e070edf4b Minor performance tweaks, and some extra tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137450 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 00:22:50 +00:00
Stephen Colebourne 59b77af292 Fixed leftPad() and rightPad() to correctly handle multi letter pad strings
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137449 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 23:57:43 +00:00
Gary D. Gregory b1a7e16922 Added an ISO 8601 formatter for the date time extended format used in durations, with XML Schema durations particularly in mind.
Note that the util class is still a package level class only.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137448 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 17:05:54 +00:00
Gary D. Gregory b870bcd7c0 Added an ISO 8601 formatter for the date time extended format used in durations, with XML Schema durations particularly in mind.
Note that this is still a package level class only.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137447 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 17:04:31 +00:00
Gary D. Gregory bed05aef0e PR: 21715
Obtained from: commons-dev
Submitted by:	KANEUCHI Tetsuya [mailto:tetsuyak@ka2.so-net.ne.jp] 
Reviewed by:	Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137446 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 16:48:25 +00:00
Stephen Colebourne 90d076139e Null handling changes
Javadoc fixes and tidying
File layout grouping


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137445 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 02:06:24 +00:00
Stephen Colebourne b026fbd30f Update Null handling in StringUtils to handle nulls quietly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137444 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 23:56:45 +00:00
Stephen Colebourne 7b88508ce9 Update Null handling in StringUtils to handle nulls quietly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137443 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 23:45:39 +00:00
Stephen Colebourne 2a94c6d2e5 Remove StringUtils.unescape
Its deprecated, and wasn't in 1.0


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137442 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 21:23:50 +00:00
Stephen Colebourne f59fb46272 Implement changes to StringUtils.isEmpty and friends
This is an incompatible change for isEmpty and isNotEmpty from 1.0


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137441 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 21:19:22 +00:00
Stephen Colebourne 25b9bd6244 Remove old unused commented out code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137440 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 20:19:24 +00:00
Gary D. Gregory 7d9d08c4fc The private field FastDateFormatTest.fastDateFormat is never read locally (line 76)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137439 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 05:14:43 +00:00
Gary D. Gregory 61dd85ca2f Refactor such that the ObjectUtils.identityToString() method logic is only in ObjectUtils and not duplicated in the builder package.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137438 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 01:47:40 +00:00
Stephen Colebourne 0dd253a756 Javadoc null behaviour
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137437 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 00:39:05 +00:00
Stephen Colebourne 1206dcd401 Update Javadoc defining empty, space and whitespace
Improve performance of repeat
Add defaultString(String) back in for performance


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137435 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 23:41:54 +00:00
Stephen Colebourne 5a0ff3f957 Javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137434 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 23:12:51 +00:00
Gary D. Gregory 54b752653d Give a Javadoc example for overridding the accept method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137433 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 23:04:23 +00:00
Henri Yandell 1afb92a31c Version 2.0 of the Lang specification
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137430 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 00:07:07 +00:00
Henri Yandell e1d1630351 Updated the manifest to pretty much match http://jakarta.apache.org/commons/releases/prepare.html
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137428 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 23:35:39 +00:00
Stephen Colebourne d516948613 Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137423 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 23:02:27 +00:00
Stephen Colebourne 10e73ca2d2 Unify format of NOTE comments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137422 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 23:02:08 +00:00
Stephen Colebourne 0d38944091 Update Avalon references
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137421 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:58:31 +00:00
Henri Yandell faf34a0bb7 Solely Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137420 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:29:04 +00:00
Henri Yandell 00dc5a8684 Javadoc fixes and change from append(String) to append(char)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137419 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:28:48 +00:00
Stephen Colebourne 18f71280b5 Add and rework isEmpty, isNotEmpty, isEmptyTrimmed, isNotEmptyTrimmed
Javadoc methods, adding example code


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137418 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:26:51 +00:00
Stephen Colebourne 83dd0ea7b8 Add and rework isEmpty, isNotEmpty, isEmptyTrimmed, isNotEmptyTrimmed
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137417 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:26:22 +00:00
Henri Yandell eadb45d1a7 Javadoc fixes. Shouldn't have been anything other than javadoc changes in this.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137416 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:25:06 +00:00
Henri Yandell 99a9ac4d5e Javadoc fixes and a refactoring to use StringUtils.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137415 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:22:46 +00:00
Henri Yandell 1dc0785f8e Javadoc fixes and removal of a wildcard import.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137414 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:21:11 +00:00
Stephen Colebourne 80b9159298 Add indexOf for primitive arrays
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137413 13f79535-47bb-0310-9956-ffa450edef68
2003-07-12 10:09:40 +00:00
Stephen Colebourne 0aa557cd56 Fix to correctly identify the original author
from Brian S O'Neill


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137412 13f79535-47bb-0310-9956-ffa450edef68
2003-07-12 08:26:22 +00:00
Henri Yandell 2a3cfe9713 Removed wordWrap method as it doesn't offer anything that the wrapText method doesn't have.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137408 13f79535-47bb-0310-9956-ffa450edef68
2003-07-12 03:06:23 +00:00
Henri Yandell 1f09b46037 Removed the unnecessary 'A' from join's char separator javadocs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137406 13f79535-47bb-0310-9956-ffa450edef68
2003-07-09 23:54:16 +00:00
Stephen Colebourne d5c3e4d3fe Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137405 13f79535-47bb-0310-9956-ffa450edef68
2003-07-08 22:06:35 +00:00
Henri Yandell d2d4b25665 Cleaned up import.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137403 13f79535-47bb-0310-9956-ffa450edef68
2003-07-08 06:01:09 +00:00
Henri Yandell 5c3606e55e Great set of javadoc improvements from Fredrik.
Also an optimisation to StringUtils.leftPad/rightPad.
Submitted by: Fredrik Westermarck


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137402 13f79535-47bb-0310-9956-ffa450edef68
2003-07-08 05:59:58 +00:00
Alex Chaffee 6410b62b3c javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137394 13f79535-47bb-0310-9956-ffa450edef68
2003-07-05 23:37:30 +00:00
Henri Yandell 35f0c6f6ca Fixed Javadoc return tag.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137393 13f79535-47bb-0310-9956-ffa450edef68
2003-07-05 19:04:31 +00:00
Alex Chaffee 8df8ade07c testEscapeSql
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137391 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:05:45 +00:00
Alex Chaffee 39acbece80 introducing utility class from Justin Couch
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137390 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:05:17 +00:00
Alex Chaffee d8589d902c testHtml40Nbsp
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137389 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:04:33 +00:00
Alex Chaffee 49f48c2df4 cleaning up
use restructured EntityMap classes


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137388 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:03:39 +00:00
Alex Chaffee 670b91caba comments
refactoring
add escapeSql method


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137387 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:03:15 +00:00
Alex Chaffee e4aab311f0 comments
restructure EntityMap inner classes


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137386 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:02:29 +00:00
Stephen Colebourne 55be165435 Add min/max by array functions
bug 21068, from Matthew Hawthorne


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137385 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 18:42:04 +00:00
Stephen Colebourne 9cfd4409f9 Add XOR methods
bug 21068, from Matthew Hawthorne


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137384 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 18:16:03 +00:00
Stephen Colebourne 48cea59f38 Add primitive/object conversions for all types
bug 21068, from Matthew Hawthorne


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137383 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 18:01:19 +00:00
Stephen Colebourne 008d16ed5b Removed unused variable
bug 21099, from Janek Bogucki


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137382 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 17:49:53 +00:00
Stephen Colebourne a5c0361ee5 Add primitive boolean/object conversions
Bug 21068, from Matthew Hawthorne


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137381 13f79535-47bb-0310-9956-ffa450edef68
2003-06-25 23:33:47 +00:00
Stephen Colebourne 2878a430c1 Add new empty array constants for number objects
Declare variables as final
Fix null behaviour to be null tolerant
Javadoc null behaviour
Fix formatting


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137380 13f79535-47bb-0310-9956-ffa450edef68
2003-06-25 23:32:08 +00:00
Stephen Colebourne 2d06a7ce86 NumberUtils moved to math subpackage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137379 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 21:14:51 +00:00
Stephen Colebourne 9949f09089 Relax tests so it passes more often
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137378 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 21:13:55 +00:00
Stephen Colebourne 7f89ab6f10 Deprecate escape, and comment escape and unescape fully
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137377 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 08:15:15 +00:00
Henri Yandell da306cb3c8 Deprecated unescape method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137376 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 02:55:17 +00:00
Stephen Colebourne 402c8e0846 Prepare DateUtils for 2.0 release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137375 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 23:41:10 +00:00
Stephen Colebourne 3bfc04d7a3 Add package level javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137374 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 22:37:39 +00:00
Stephen Colebourne 5e98ba2ee9 Update javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137373 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 22:36:50 +00:00
Gary D. Gregory d5ee2f1ca5 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21021.
Reduce object creation in ToStringBuilder. Applied the patch in spirit but not in detail since I used
"BooleanUtils.toBooleanObject(fullDetail)" instead of "fullDetail ? Boolean.TRUE : Boolean.FALSE"
to reduce code duplication.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137372 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 17:04:39 +00:00
Henri Yandell 80da42a808 Handles empty string now as well.
Submitted by:	Mark Ford


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137371 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 03:51:13 +00:00
Henri Yandell feac7d3bc7 Bug #20652 fixed.
Submitted by:	Fredrik Westermarck


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137370 13f79535-47bb-0310-9956-ffa450edef68
2003-06-21 22:24:56 +00:00
Stephen Colebourne 0525da4d6c Remove unused code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137369 13f79535-47bb-0310-9956-ffa450edef68
2003-06-20 08:03:51 +00:00
Henri Yandell eeb224c2a6 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137368 13f79535-47bb-0310-9956-ffa450edef68
2003-06-16 02:28:16 +00:00
Stephen Colebourne 3e480bf2ad Add new class that tests all the TestSuites in one go
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137367 13f79535-47bb-0310-9956-ffa450edef68
2003-06-10 06:20:19 +00:00
Stephen Colebourne c09f7744fb Change scope of methods from package to public
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137366 13f79535-47bb-0310-9956-ffa450edef68
2003-06-10 06:16:54 +00:00
Stephen Colebourne 8f45918465 Ensure that RandomStringUtils returns all expected characters
bug 20592, reported/patched by Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137365 13f79535-47bb-0310-9956-ffa450edef68
2003-06-09 21:36:03 +00:00
Stephen Colebourne 8955311526 Make package scoped until methods properly designed and implemented
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137364 13f79535-47bb-0310-9956-ffa450edef68
2003-06-09 21:23:14 +00:00
Stephen Colebourne fdbe8e7849 DateFormatUtils should not be final
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137363 13f79535-47bb-0310-9956-ffa450edef68
2003-06-09 21:22:31 +00:00
Stephen Colebourne 17b30f39f3 Fix javadoc comment
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137362 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 23:27:26 +00:00
Stephen Colebourne 73ee6c3d27 Rework time package in preparation for 2.0 release
DateUtils split to DateFormatUtils and DurationFormatUtils
CalendarUtils renamed to DateUtils
StopWatch time format method moved to DurationFormatUtils
Tests updated and pass


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137361 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 23:14:23 +00:00
Stephen Colebourne 9bb3f9b9a3 Organize imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137360 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:19:43 +00:00
Stephen Colebourne 4920a1da32 Fix bug in NumberUtils where '12a' was treated as a number.
bug 20538, reported/fix by Eric Pugh/Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137359 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:14:01 +00:00
Stephen Colebourne 4c50eca073 Ensure javadoc is clear about when deprecated methods will be removed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137358 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:10:54 +00:00
Stephen Colebourne fd6d8a4a3d Tidy comments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137357 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:09:36 +00:00
Robert Burrell Donkin 268de4eadf Fixed a problem with changed capitalization in test case.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137356 13f79535-47bb-0310-9956-ffa450edef68
2003-06-06 07:04:12 +00:00
Gary D. Gregory b3bf560628 Minor Javadoc fix and improvements.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137355 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 20:49:59 +00:00
Gary D. Gregory 0cfce2932d Refactor code in ToStringBuilder.reflectionToString(...) into a new subclass called ReflectionToStringBuilder.
All of the ToStringBuilder.reflectionToString(...) forward their calls to equivalent methods in ReflectionToStringBuilde.
ReflectionToStringBuilder can  be subclassed to provide Field or value filtering.
Since the unit tests exercis ToStringBuilder.reflectionToString(...) which then forwards those calls to ReflectionToStringBuilder, and ReflectionToStringBuilder does not provide new features (yet), there are no new unit test cases (yet).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137354 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 20:15:32 +00:00
Gary D. Gregory a0be4d2757 Refactor code in ToStringBuilder.reflectionToString(...) into a new subclass called ReflectionToStringBuilder.
All of the ToStringBuilder.reflectionToString(...) forward their calls to equivalent methods in ReflectionToStringBuilde.
ReflectionToStringBuilder can  be subclassed to provide Field or value filtering.
Since the unit tests exercis ToStringBuilder.reflectionToString(...) which then forwards those calls to ReflectionToStringBuilder, and ReflectionToStringBuilder does not provide new features (yet), there are no new unit test cases (yet).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137353 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 03:51:56 +00:00
Gary D. Gregory 3bcf738220 Sort Members (Eclipse).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137352 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 22:22:49 +00:00
Gary D. Gregory e7d0572cf8 Include a Javadoc overview.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137351 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 18:44:36 +00:00
Gary D. Gregory 9503cd07e9 Normalize Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137350 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 17:16:11 +00:00
Gary D. Gregory bd2144eb32 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137349 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 01:02:33 +00:00
Gary D. Gregory 7722d187fc Sorted members (this also give us the Javadoc 'Field Details' section in alphabetical order).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137348 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 01:15:53 +00:00
Gary D. Gregory 4a6b9f65d0 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137347 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 01:12:26 +00:00
Gary D. Gregory 68696f5232 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137346 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 01:00:24 +00:00
Gary D. Gregory e36ffc4ce7 Make the Standard Doclet version 1.4.1 not complain WRT '.'s.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137345 13f79535-47bb-0310-9956-ffa450edef68
2003-05-29 21:02:53 +00:00
Gary D. Gregory 41136c4f00 Create 'public static final' constants for the package separator and inner class separator characters/Strings.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137344 13f79535-47bb-0310-9956-ffa450edef68
2003-05-28 16:20:31 +00:00
Gary D. Gregory 06f93f2551 Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137343 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 19:24:15 +00:00
Alex Chaffee 1d44ada55f making constants final (XML, HTML32, HTML40)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137342 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 15:28:38 +00:00
Alex Chaffee bd3497be79 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137341 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 15:21:02 +00:00
Alex Chaffee 1921f71345 continuing performance improvements-- now uses a binary lookup
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137340 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 15:11:36 +00:00
Stephen Colebourne 253e00baa9 Add OS name parsing to SystemUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137339 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 14:34:14 +00:00
Alex Chaffee 0766ea1f69 initial performance testing for Entities
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137338 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 13:29:44 +00:00
Stephen Colebourne e2211f3db6 Add SystemUtils tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137337 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 12:11:02 +00:00
Stephen Colebourne d68d21856d Update to protect against NPEs
Tidy up Java version code
Add Java version int to supplement float


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137336 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 12:06:37 +00:00
Alex Chaffee bf37701b41 add EntitiesTest to LangTestSuite
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137334 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 04:38:05 +00:00
Alex Chaffee 5203441765 refactoring Entities object in preparation for optimization
add unit tests for Entities class
move escape and unescape methods into Entities class


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137333 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 04:35:07 +00:00
Stephen Colebourne e7d21364b5 Update licence and Organize imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137331 13f79535-47bb-0310-9956-ffa450edef68
2003-05-22 22:00:06 +00:00
Stephen Colebourne 2d97e55623 Reworked class to avoid security exceptions
from Michael Becke


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137330 13f79535-47bb-0310-9956-ffa450edef68
2003-05-22 21:51:26 +00:00
Stephen Colebourne 24b9603769 Update licence and Organize imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137329 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:49:15 +00:00
Stephen Colebourne 9a05c7404c Update testing for FastDateFormat
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137328 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:41:21 +00:00
Stephen Colebourne a4452d34e1 Update licence
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137327 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:40:24 +00:00
Stephen Colebourne 6d4516cccc Update class and add javadoc ready for release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137326 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:39:53 +00:00
Stephen Colebourne 378587735d Change version number ready for release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137325 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:37:20 +00:00
Gary D. Gregory 0cd7de5283 Fix javadoc, a <u> was used instead of a <p>.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137324 13f79535-47bb-0310-9956-ffa450edef68
2003-05-20 21:15:19 +00:00
Gary D. Gregory 199ec3aa9c Fix javadoc, was missing a </code>.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137323 13f79535-47bb-0310-9956-ffa450edef68
2003-05-20 21:11:07 +00:00
Gary D. Gregory cc411622e9 Improve performance (by ~10% on Sun Java 1.3.1_08) for the method escapeEntities(String str, Entities entities) by using the existing StringBuffer instead of String + to the same buffer.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137322 13f79535-47bb-0310-9956-ffa450edef68
2003-05-18 00:10:38 +00:00
Stephen Colebourne 713af7b691 Remove functor subpackage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137321 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:17:35 +00:00
Stephen Colebourne e329c3556c Organize imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137320 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:08:31 +00:00
Stephen Colebourne 70cab8f8e6 Change Identifier generation code to be independent of functors
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137319 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:07:38 +00:00
Gary D. Gregory 9e0419790b Javadoc only. Provide more uniform comments.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137318 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 19:00:07 +00:00
Stephen Colebourne 6098de63f7 Add since tags
Update javadoc


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137317 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 16:14:17 +00:00
Henri Yandell e2c43be20f Commonly usable enhancements to some of the Exceptions found in java.lang.
Submitted by:	Matthew Hawthorne


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137316 13f79535-47bb-0310-9956-ffa450edef68
2003-05-15 04:05:11 +00:00
Gary D. Gregory 794221a9ca Be a little more precise in the IS_JAVA_* javadocs.
Make JAVA_* javadocs read more like sentences.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137315 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 17:13:00 +00:00
Henri Yandell 82c5dada6f Bug #14357 fixed. Mohan's patch makes removeCommonFrames public, and adds an
isThrowableNested to ExceptionUtils.

It adds static attributes to decide if the stack trace should be topDown
and if the stack traces should be trimmed on repeat. If running 1.4 or higher,
it uses the default stack trace, and the functionality of NestableError,
NestableException and NestableRuntimeException getMessage()s all change.
Accompanying these changes are numerous tests.

Submitted by:	Mohan Kishore


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137314 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:59:13 +00:00
Henri Yandell 9d8cc76413 Bug #19880 fixed. RandomStringUtils.random(int count, char[] set)
doesn't include the last character in set.

Submitted by:	Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137313 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:50:43 +00:00
Henri Yandell 9f2efa84a2 Bug #19756 dealt with.
Submitted by:	Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137312 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:41:26 +00:00
Henri Yandell 3734b1e3ad Block nextInt(int) and nextLong(long) from being <= 0.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137311 13f79535-47bb-0310-9956-ffa450edef68
2003-05-12 04:41:40 +00:00
Henri Yandell d129fa0e4a Fixed bug reported by Phil Steitz in which poorly placed casting was
making all random methods return 0 :)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137310 13f79535-47bb-0310-9956-ffa450edef68
2003-05-12 04:29:26 +00:00
Henri Yandell 77ce33145f Empty constructor stops it calling setSeed in Random's empty constructor.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137309 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 19:14:01 +00:00
Henri Yandell d99a9fcfb9 RandomUtils functionality moved to JVMRandom. RandomUtils then becomes a proper XxxUtils class.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137308 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 15:09:19 +00:00
Gary D. Gregory 0de135be9c Fix broken links. Use thrid person in comment. Use @see tags.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137307 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 22:10:40 +00:00
Stephen Colebourne 81b579a7eb Add explicit public constructor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137306 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 16:17:05 +00:00
Gary D. Gregory 8ba5fec31d Address Checkstyle report issues as reported by Henri (http://www.generationjava.com/maven/jakarta-commons/lang/)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137303 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 09:12:16 +00:00
Gary D. Gregory d63c271a8c Address Checkstyle report issues as reported by Henri (http://www.generationjava.com/maven/jakarta-commons/lang/)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137302 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 07:01:47 +00:00
Henri Yandell 9263c5eda7 Put } and else on the same line.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137301 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 04:57:19 +00:00
Henri Yandell 5f0560cb60 Fixed Antony's name. He wrote the original escape() method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137300 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 16:31:45 +00:00
Henri Yandell eb6a2942c0 Tenfold improvement in performance for leftPad, rightPad and repeat when repeat is over a String of length 1, by implementation of a padding method. The padding method is kept private for the moment.
Also a modification of containsOnly so it has a partner method indexOfAnyBut. Unit Test added for indexOfAnyBut.

Submitted by:	Robert Simpson


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137299 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 04:37:33 +00:00
Henri Yandell 92a9a68b72 Integrated WordWrapUtils testing in.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137298 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 14:29:01 +00:00
Henri Yandell fb2548b304 Return of WordWrapUtils, fresh with bugs fixed in StringTaglib. Part of the
reason for dropping it originally was that I knew my methods [wordWrap rather than wrapText or wrapLine] had nasty die-a-death bugs and hadn't had time to fix them. These got fixed as a part of String Taglib so I'm now personally happy with the code. As happy as you can ever be anyway without more tests to hurt it.

Submitted by:	Henning Schmiedehausen


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137297 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 14:28:41 +00:00
Gary D. Gregory 408466f404 Remove unused imports (with agreement on shared clean up chores from Alex).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137294 13f79535-47bb-0310-9956-ffa450edef68
2003-04-10 00:01:21 +00:00
Alex Chaffee 49d5add385 improving javadoc
added apos entity to XML escape/unescape
add test for "unknown entity" behavior


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137293 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 21:30:18 +00:00
Alex Chaffee 69cc0e40e6 Extracted Entities class (instead of inner class)
Added support for full HTML 4.0 entity set
Separated XML, ISO8859-1 (HTML 3.2), and HTML 4.0 entities inside Entities object
Added escapeXml and unescapeXml public API methods
Escape now uses entities for values 0x80 or greater (previously 0x100)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137292 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 20:55:33 +00:00
Alex Chaffee 6af3b80369 Escaping unicode uses capital letters e.g. \uABCD
Found and fixed bug when unicode character is at the end of a string to unescape
Added unit tests for above bug to both StringUtilsTest and StringEscapeUtilsTest
StringUtils.[un]escape now call StringEscapeUtils.[un]escapeJava


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137291 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 18:45:29 +00:00
Alex Chaffee 2e862e0c47 make test strings 7-bit clean (bug 18836)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137290 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 17:30:29 +00:00
Henri Yandell 3ac32dd142 Patch for RandomString bug in which counts of 0 or negative counts would cause array exceptions.
Submitted by:	ville.skytta@iki.fi (Ville Skytt�)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137289 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 14:13:03 +00:00
Gary D. Gregory 082cde8df8 Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137288 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 01:08:30 +00:00
Gary D. Gregory e5c8e4a225 Fix some Javadoc {@link}s and clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137287 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 01:04:48 +00:00
Gary D. Gregory f810dc3645 Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137286 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 00:07:50 +00:00
Gary D. Gregory ccde85985d Removed unused import.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137285 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 23:45:16 +00:00
Gary D. Gregory 6a1dc2997c Improve Javadoc (I hope!).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137284 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 22:36:04 +00:00
Gary D. Gregory e180daa748 Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137283 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 22:34:53 +00:00
Gary D. Gregory cdf3c5161e Fix a missing javadoc </code> end tag.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137282 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 20:44:10 +00:00
Henri Yandell 076ebc6d17 A Utils class that wraps java.lang.Math.random() and offers up methods
similar to that found on the java.util.Random class. Effectively this class
contains the methods that ought to be found on java.lang.Math.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137281 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 16:28:15 +00:00
Alex Chaffee 4e443f9cfc added some more entities from HTML 4.0 spec, refactored (Entities class), initialize maps on demand
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137280 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 06:14:46 +00:00
Henri Yandell 965077e483 Put myself in as author of escape/unescape and removed unused imports.
Really just to test eclipse/cvs on OS X.
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS:   If this change addresses a PR in the problem report tracking
CVS:   database, then enter the PR number(s) here.
CVS: Obtained from:
CVS:   If this change has been taken from another system, such as NCSA,
CVS:   then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS:   If this code has been contributed to Apache by someone else; i.e.,
CVS:   they sent us a patch or a new module, then include their name/email
CVS:   address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS:   If we are doing pre-commit code reviews and someone else has
CVS:   reviewed your changes, include their name(s) here.
CVS:   If you have not had it reviewed then delete this line.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137279 13f79535-47bb-0310-9956-ffa450edef68
2003-04-01 17:19:28 +00:00
Alex Chaffee 4b0aeca9f2 StringEscapeUtils: escape/unescape Java/JavaScript/HTML
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137278 13f79535-47bb-0310-9956-ffa450edef68
2003-03-31 03:53:52 +00:00
Alex Chaffee 5b83eb9358 changed chomp() to match Perl
deprecated chomp* methods in favor of new slice methods
improved unit tests and documentation


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137277 13f79535-47bb-0310-9956-ffa450edef68
2003-03-29 16:17:21 +00:00
Gary D. Gregory edb0e8d284 Fix bug 16676: StackOverflow due to ToStringBuilder
(http://issues.apache.org/bugzilla/show_bug.cgi?id=16676)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137276 13f79535-47bb-0310-9956-ffa450edef68
2003-03-27 08:55:22 +00:00
Stephen Colebourne ab7745f98e Deprecate clean() now trimToEmpty() is added
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137275 13f79535-47bb-0310-9956-ffa450edef68
2003-03-25 00:15:58 +00:00
Stephen Colebourne 67bdcb0f1a Add trimToNull
Add trimToEmpty


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137274 13f79535-47bb-0310-9956-ffa450edef68
2003-03-24 00:47:02 +00:00
Stephen Colebourne 3c1f752b2a Update containsOnly
Add containsNone


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137273 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 21:52:31 +00:00
Stephen Colebourne 3f8418c654 Update licence date to 2003
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137272 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 21:51:51 +00:00
Stephen Colebourne bdf11dfa91 Update licence date to 2003
Javadoc fixes


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137271 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 18:05:44 +00:00
Stephen Colebourne 637d681789 Update licence date to 2003
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137270 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 18:02:29 +00:00
Stephen Colebourne dd9f463d68 Remove reverseArray as reverse already exists!
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137269 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 17:57:42 +00:00
Stephen Colebourne eb68e2a6f2 Update licence date to 2003
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137268 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 17:36:16 +00:00
Henri Yandell f64ecf1cd7 Added a CharSetUtils.keep method which is the reverse of the delete method.
In part, it fulfills the StringUtils.getNumerics(String) method that Bug
#13771 requests.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137267 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 05:50:51 +00:00
Henri Yandell 8e54ccc4be Bug 17882 submitted [by hand as the patch was out of date].
join and split now take chars as separators as well as Strings.

Submitted by:	Henning P. Schmiedehausen


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137266 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 05:26:23 +00:00
Henri Yandell ae7c590d59 Moved reverseArray method from a private method in StringUtils into ArrayUtils.
This method exists in Jakarta Collection, so is a duplicate, but it belongs in
ArrayUtils.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137265 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 04:58:47 +00:00
Gary D. Gregory 1a3ba6816d Remove unused variables in the testMixedArray method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137264 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 05:41:23 +00:00
Gary D. Gregory 2ba51c13fb Apply patch for bug 17250 (http://issues.apache.org/bugzilla/show_bug.cgi?id=17250) with some additional minor improvements.
Added tests for reflection methods with array arguments.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137263 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 05:33:35 +00:00
Gary D. Gregory 4ecadc12ba Apply patch for bug 17250 (http://issues.apache.org/bugzilla/show_bug.cgi?id=17250) with some additional minor improvements.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137262 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 05:32:11 +00:00
Gary D. Gregory 804ccc397d Removed an unused import statement.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137261 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 02:50:42 +00:00
Henri Yandell 47fc18a02e Added a test case for isNestedThrowable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137260 13f79535-47bb-0310-9956-ffa450edef68
2003-03-18 06:14:23 +00:00
Henri Yandell ff33134d11 Added getFullStackTrace and isNestedThrowable. Listed as Bug #16689
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137259 13f79535-47bb-0310-9956-ffa450edef68
2003-03-18 05:10:48 +00:00
Alex Chaffee a50e6215b2 Purpletech code import: abbreviate, difference, differenceAt
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137258 13f79535-47bb-0310-9956-ffa450edef68
2003-03-17 05:28:37 +00:00
Stephen Colebourne e8a0b41aa3 Remove unused import
from Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137257 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 22:50:21 +00:00
Stephen Colebourne 285f6016bc Remove erroneous abstract, Comparable and Serializable keywords
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137256 13f79535-47bb-0310-9956-ffa450edef68
2003-02-22 20:42:36 +00:00
Stephen Colebourne 5b89f3d89a Use more appropriate scoping for inner class
from Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137255 13f79535-47bb-0310-9956-ffa450edef68
2003-02-22 20:19:16 +00:00
Stephen Colebourne bb7e7e1708 Use default HashMap sizes as this is better across JDK versions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137253 13f79535-47bb-0310-9956-ffa450edef68
2003-02-06 20:13:07 +00:00
Stephen Colebourne e6f11e0ea0 Fix javadoc from checkstyle
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137252 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 22:50:31 +00:00
Stephen Colebourne 2023467c05 Fix licences, dates and since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137251 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 22:19:33 +00:00
Stephen Colebourne 751c151c49 Change scope of static constant for performance
from Gary Gregory, bug ref 16622


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137250 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 22:12:08 +00:00
Stephen Colebourne 4c63a72053 Add support for indexOf, lastIndexOf and contains for ArrayUtils
from Nikolay Metchev, bug ref 15438


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137249 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 22:06:24 +00:00
Stephen Colebourne bdbde6db66 Update Enum initial sizes for JDK1.2 and JDK1.3
from Mike Bowler, bug fix 16690


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137248 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 18:42:50 +00:00
Stephen Colebourne 85cbed66ff Update Enum classes to support hierarchy Enum definitions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137247 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 18:30:08 +00:00
Stephen Colebourne 2ddf33ffc3 Update to output more nicely formatted toString() that converts $ to .
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137246 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 16:56:08 +00:00
Henri Yandell d75f82637a Removed a few checkstyle complaints.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137243 13f79535-47bb-0310-9956-ffa450edef68
2003-02-02 09:26:52 +00:00
Henri Yandell 09f7773b8d HashTable to Hashtable in Javadoc. Bug #16669
Submitted by:	Ken Fitzpatrick


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137239 13f79535-47bb-0310-9956-ffa450edef68
2003-02-02 04:12:32 +00:00
Henri Yandell d9bc18e804 Applied patch from Tomasz Skutnik which allows a Random object to be passed
in. This means that method calls to RandomStringUtils can be predictable.

Submitted by:	Tomasz Skutnik <Tomasz.Skutnik@e-point.pl>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137238 13f79535-47bb-0310-9956-ffa450edef68
2003-02-02 03:46:13 +00:00
Henri Yandell 0c7e480658 Removed to bundle in a proposal of added classes to BeanUtils at some point.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137237 13f79535-47bb-0310-9956-ffa450edef68
2003-01-29 22:05:44 +00:00
Stephen Colebourne 35b2f4c8ce Add class level javadoc
bug fix 16341


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137236 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 13:06:26 +00:00
Stephen Colebourne c23e693049 Remove unused code
from Gary Gregory, bug fix 16284


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137235 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 13:01:38 +00:00
Daniel Rall ab53513741 * src/test/org/apache/commons/lang/exception/ExceptionUtilsTestCase.java
testPrintThrowables(): Previously printing some stack traces to
  stdout as part of its tests which at first glance looks like a test
  failure (but in reality isn't).  Here's a truncated example:

  test.exception:
       [echo] Running exception package tests ...
       [java] .........................................
       [java] ......org.apache.commons.lang.exception.ExceptionUtilsTestCase$Ex
       [java]     at org.apache.commons.lang.exception.ExceptionUtilsTestCase.c
       [java]  [wrapped] org.apache.commons.lang.exception.ExceptionUtilsTestCa
       [java]     at org.apache.commons.lang.exception.ExceptionUtilsTestCase.c
       [java]  [wrapped] org.apache.commons.lang.exception.ExceptionUtilsTestCa
       [java]     at org.apache.commons.lang.exception.ExceptionUtilsTestCase.c
       [java]     at org.apache.commons.lang.exception.ExceptionUtilsTestCase.t


* src/java/org/apache/commons/lang/exception/ExceptionUtils.java
  WRAPPED_MARKER: New constant for the " [wrapped] " text used when
  printing exception stack traces.

  getRootCauseStackTrace(Throwable): Replaced inline " [wrapped] "
  text with use of new WRAPPED_MARKER constant.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137234 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 23:04:19 +00:00
Daniel Rall 69819f8787 * src/test/org/apache/commons/lang/StringUtilsTest.java
testCaseFunctions(): Added single character string tests for
  capitalise() and uncapitalise() methods.

* src/java/org/apache/commons/lang/StringUtils.java
  capitalise(), uncapitalise(): Clarified code path -- no functional
  change.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137233 13f79535-47bb-0310-9956-ffa450edef68
2003-01-20 22:15:13 +00:00
Stephen Colebourne 984bc76cd3 Fix infinite recursion in inner classes reflection methods
from Per Velschow


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137232 13f79535-47bb-0310-9956-ffa450edef68
2003-01-19 18:49:05 +00:00
Stephen Colebourne c2d07cc3f0 Fix infinite recursion in replace() when blank string used
from Holger Krauth


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137231 13f79535-47bb-0310-9956-ffa450edef68
2003-01-19 18:15:38 +00:00
Stephen Colebourne 7ce43857cd Fix javadoc where wrong method name specified
from Michael Schulze


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137230 13f79535-47bb-0310-9956-ffa450edef68
2003-01-19 17:51:42 +00:00
Stephen Colebourne 158a5104d0 Add additional testing for hashcode and equals integration
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137229 13f79535-47bb-0310-9956-ffa450edef68
2003-01-19 17:42:18 +00:00
Stephen Colebourne 5c40090fec Add superclass behaviour to builder classes
from Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137228 13f79535-47bb-0310-9956-ffa450edef68
2003-01-19 17:35:21 +00:00
Henri Yandell 5a173ea8e9 Javadoc example java fixed.
Submitted by:	Christopher M. Judd <cjudd@columbus.rr.com>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137226 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 20:54:00 +00:00
Henri Yandell a46f4fec1d Javadoc patch for java example.
Submitted by:	Christopher M. Judd <cjudd@columbus.rr.com>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137225 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 20:51:57 +00:00
Henri Yandell f76f9bf04d Oops. Meant to check this in a day or so ago. Hooked the FastDateFormat test up.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137224 13f79535-47bb-0310-9956-ffa450edef68
2003-01-10 03:55:01 +00:00
Henri Yandell 601000d724 Reformatted [dos2unix]. A newline was introduced after the licence so that cvs
would allow the commit.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137223 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 21:21:43 +00:00
Henri Yandell a99f7965b3 A thread-safe, faster version of java.text's DateFormat. While JODA contains
better, this version is religion-free.

Permission given by Brian S O'Neill:
http://archives.apache.org/eyebrowse/ReadMsg?listName=commons-dev@jakarta.apache.org&msgNo=20612

Submitted by:	Sean Schofield


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137221 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 19:55:55 +00:00
Stephen Colebourne 2f50297e5e Fix to enable anonymous inner classes as Enums for functionality
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137220 13f79535-47bb-0310-9956-ffa450edef68
2002-12-31 22:39:39 +00:00
Stephen Colebourne 6c4d516563 Fix to handle anonymous inner classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137219 13f79535-47bb-0310-9956-ffa450edef68
2002-12-31 22:32:23 +00:00
Stephen Colebourne 95af50ede9 Include Gary as author of the last patch
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137218 13f79535-47bb-0310-9956-ffa450edef68
2002-12-31 20:21:34 +00:00
Stephen Colebourne 891b71ff2c Fix to include superclass fields in reflection toString
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137217 13f79535-47bb-0310-9956-ffa450edef68
2002-12-31 20:17:53 +00:00
Stephen Colebourne a84055c530 Validate relocated to new util subpackage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137215 13f79535-47bb-0310-9956-ffa450edef68
2002-12-29 22:09:54 +00:00
Stephen Colebourne 2618ac4928 Add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137213 13f79535-47bb-0310-9956-ffa450edef68
2002-12-29 22:06:21 +00:00
Stephen Colebourne 33113bfe79 Add Identifier generators to Lang from Util
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137212 13f79535-47bb-0310-9956-ffa450edef68
2002-12-29 21:35:04 +00:00
Stephen Colebourne 14dee9055c Remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137211 13f79535-47bb-0310-9956-ffa450edef68
2002-12-25 22:03:00 +00:00
Stephen Colebourne 8e3f80d77e Add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137209 13f79535-47bb-0310-9956-ffa450edef68
2002-12-23 00:32:24 +00:00
Stephen Colebourne 8977d08016 Add since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137208 13f79535-47bb-0310-9956-ffa450edef68
2002-12-23 00:20:31 +00:00
Stephen Colebourne 010e0a3f2e Add since tags
Formatting


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137207 13f79535-47bb-0310-9956-ffa450edef68
2002-12-23 00:15:19 +00:00
Stephen Colebourne 725fd755a1 Add method to allow update to list of recognised exception method names
Javadoc
Formatting


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137206 13f79535-47bb-0310-9956-ffa450edef68
2002-12-23 00:03:47 +00:00
Stephen Colebourne 4036dc881d Add StopWatch
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137205 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 22:59:58 +00:00
Stephen Colebourne af15108a55 Add negate(Boolean) method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137204 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 21:33:12 +00:00
Stephen Colebourne 24968c2cfa Re-enable fraction testing
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137203 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 21:18:51 +00:00
Stephen Colebourne 706ed81a15 Update for performance, from Jeff Varszegi
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137200 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 19:55:30 +00:00
Stephen Colebourne d91d14530a Add since tag
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137199 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 19:54:58 +00:00
Stephen Colebourne 8d72d21954 Add Fraction class and associated tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137198 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 19:39:39 +00:00
Stephen Colebourne 5fcc8e86ca Creation of basic package info for math package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137197 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 16:21:03 +00:00
Stephen Colebourne 491b26ddd1 Creation of math subpackage
Addition of Range class, and specific subclasses
Tests for Range


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137196 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 16:20:29 +00:00
Stephen Colebourne 0018fa8273 Change javadoc to descrive the class (and its problems) more thoroughly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137195 13f79535-47bb-0310-9956-ffa450edef68
2002-12-21 14:22:11 +00:00
Stephen Colebourne 9c4166dbb2 Create time subpackage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137194 13f79535-47bb-0310-9956-ffa450edef68
2002-12-18 23:30:20 +00:00
Stephen Colebourne 55feeb72b9 Remove unneeded whitespace that might cause javadoc problems
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137193 13f79535-47bb-0310-9956-ffa450edef68
2002-12-18 23:28:19 +00:00
Henri Yandell ef292354c6 BitField moved over from the [util] project.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137192 13f79535-47bb-0310-9956-ffa450edef68
2002-12-18 02:50:36 +00:00
Dmitri Plotnikov f1cc6ec3ff Added printRootCauseStackTrace
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137191 13f79535-47bb-0310-9956-ffa450edef68
2002-12-16 23:05:29 +00:00
Henri Yandell 3d82f12dbd CalendarUtils from the sandbox, for merger with DateUtils. Or parallel living.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137190 13f79535-47bb-0310-9956-ffa450edef68
2002-12-16 21:55:20 +00:00
Henri Yandell 26c6a7c28f A DateUtils class from Ant. Still needs lots of thinking etc, but might as
well be doing these things in the cvs head as we're not near an obvious release.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137189 13f79535-47bb-0310-9956-ffa450edef68
2002-12-16 21:48:41 +00:00
Stephen Colebourne 184c0b4d2e Test the ClassUtils class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137187 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 19:36:08 +00:00
Stephen Colebourne ecc344fabe Make compile after ClassUtils method changed
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137186 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 19:34:34 +00:00
Stephen Colebourne ee92780447 Try to give the test a better chance of passing on slow CPUs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137185 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 17:03:41 +00:00
Stephen Colebourne f6a7697d25 Add BooleanUtils with lots of boolean conversions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137184 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 16:55:32 +00:00
Stephen Colebourne 31bf101e02 Remove isTrue to BooleanUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137183 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 16:54:23 +00:00
Stephen Colebourne 24bc34a7af Add constants for standard numeric values
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137182 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 16:53:28 +00:00
Stephen Colebourne 925d554e92 Correct javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137181 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 15:00:46 +00:00
Stephen Colebourne 01fd4c6fab Change so they compile under jdk1.2.1
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137180 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 12:30:44 +00:00
Stephen Colebourne 2bc43c9abb Add Validate class for argument validation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137179 13f79535-47bb-0310-9956-ffa450edef68
2002-12-13 17:21:56 +00:00
Robert Burrell Donkin b91dfd1a2c Consolidated methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137178 13f79535-47bb-0310-9956-ffa450edef68
2002-12-10 19:06:49 +00:00
Stephen Colebourne 5003e9c501 Add support for calling superclass compareTo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137177 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 21:43:34 +00:00
Stephen Colebourne 19248809e7 Rework to support nulls properly
Add support for comparators


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137176 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 21:38:19 +00:00
Stephen Colebourne 3129990f42 Add ability to build compound hashCode using superclass
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137175 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 21:22:42 +00:00
Stephen Colebourne bd5f9fc92a Add ability to build compound equals using superclass
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137174 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 21:10:42 +00:00
Stephen Colebourne ecb4235c77 Add ability to build compound toStrings using superclass and delegates
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137173 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 20:48:46 +00:00
Stephen Colebourne a2fd090995 Keep javadoc generation happy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137172 13f79535-47bb-0310-9956-ffa450edef68
2002-12-08 16:18:39 +00:00
Henri Yandell 3e88bc3ca5 Added the StringUtils.unescape method, UnitTest and STATUS change.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137169 13f79535-47bb-0310-9956-ffa450edef68
2002-12-07 21:50:30 +00:00
Henri Yandell f682f4b0f0 Added a the fix for bug #14883.
Submitted-by: Thomas Hawtin [tackline@tackline.demon.co.uk]


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137168 13f79535-47bb-0310-9956-ffa450edef68
2002-11-27 22:54:29 +00:00
Henri Yandell 8846220cf5 Added a unit test to show the bugs in bug #14883 for countMatches method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137167 13f79535-47bb-0310-9956-ffa450edef68
2002-11-27 22:53:48 +00:00
Henri Yandell 21ff810b47 Bugfix, classic this.foo = this.foo error.
Noticed by Andy Freeman.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137166 13f79535-47bb-0310-9956-ffa450edef68
2002-11-25 17:35:57 +00:00
Stephen Colebourne 6b8ba82f14 Add reverse to ArrayUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137165 13f79535-47bb-0310-9956-ffa450edef68
2002-11-24 16:50:38 +00:00
Henri Yandell 28f37f2b4d Added the second fix from Mark McDowell [mcdoma@ncs.com] for bug #14062
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137160 13f79535-47bb-0310-9956-ffa450edef68
2002-11-23 00:54:24 +00:00
Henri Yandell de74831603 So my test was wrong. I was using the split method wrongly.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137159 13f79535-47bb-0310-9956-ffa450edef68
2002-11-23 00:51:34 +00:00
Henri Yandell 9d3dc97c25 Added unit test to detect bug # 14062.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137158 13f79535-47bb-0310-9956-ffa450edef68
2002-11-23 00:41:19 +00:00
Henri Yandell e19abe9bc3 Threw in a test for newline replacement. This was a problem in String Taglib and having this test let me know it wasn't the fault of StringUtils.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137157 13f79535-47bb-0310-9956-ffa450edef68
2002-11-22 23:33:34 +00:00
Henri Yandell dd1a5f5d69 Surprisingly the isJavaVersionAtLeast was not static. I can't see any reason for this and have fixed it.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137156 13f79535-47bb-0310-9956-ffa450edef68
2002-11-22 23:32:45 +00:00
Henri Yandell 8b1532bd3a Protected a Number test so it only runs in 1.3+. I suspect the JDK doesn't support the type of number we're throwing at it in 1.2: "1.1E-700F" to BigDecimal.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137154 13f79535-47bb-0310-9956-ffa450edef68
2002-11-22 23:30:32 +00:00
Henri Yandell 3a3889bebc And moved bakc to 1.3 until I can figure out how to make them work at 1.2. Code appears to try to modify them?!?
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137150 13f79535-47bb-0310-9956-ffa450edef68
2002-11-22 23:11:58 +00:00
Henri Yandell d0fed98d52 Added JDK 1.2 compliant EMPTY_MAPs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137149 13f79535-47bb-0310-9956-ffa450edef68
2002-11-22 22:52:40 +00:00
Henri Yandell d5fd07f877 Put Stephen's privates back. He hadn't needed to take them out.
[Okay, the humour is killing me].

Added this.'s in front of the methods in each constructor.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137148 13f79535-47bb-0310-9956-ffa450edef68
2002-11-22 22:52:17 +00:00
Stephen Colebourne 6c37e6f682 Changed inner classes to be package scoped for JDK 1.2
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137147 13f79535-47bb-0310-9956-ffa450edef68
2002-11-22 21:16:24 +00:00
Robert Burrell Donkin 3e9065d2df Make MethodUtils depend on ReflectionUtils parameter set comparasons
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137142 13f79535-47bb-0310-9956-ffa450edef68
2002-11-21 19:38:51 +00:00
Robert Burrell Donkin 4f24da86c7 Converted invokeMethod to use ReflectionExceptions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137141 13f79535-47bb-0310-9956-ffa450edef68
2002-11-21 18:53:32 +00:00
Robert Burrell Donkin f9ad966250 Corrected speiling mistake spotted by Jeff Varszegi.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137140 13f79535-47bb-0310-9956-ffa450edef68
2002-11-20 22:31:40 +00:00
Robert Burrell Donkin 0cc87fe88d Moved isAssignmentCompatable method from MethodUtils into ReflectionUtils and renamed it. Enhanced existing isCompatible so that widening of primitives is allowed. Created test case for moved method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137139 13f79535-47bb-0310-9956-ffa450edef68
2002-11-20 21:45:47 +00:00
Robert Burrell Donkin b991b3f973 Fixed small bug and created test case
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137138 13f79535-47bb-0310-9956-ffa450edef68
2002-11-18 23:01:36 +00:00
Robert Burrell Donkin 0363b6f7d3 Turned debug constant off.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137137 13f79535-47bb-0310-9956-ffa450edef68
2002-11-18 23:00:26 +00:00
Robert Burrell Donkin dd87113102 Remove invokeExactMethod. Going to consolidate on one inokeMethod that considers superclasses and doesn't break scope rules.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137136 13f79535-47bb-0310-9956-ffa450edef68
2002-11-18 22:18:44 +00:00
Stephen Colebourne 97883eec49 Javadoc style fix, from Fredrik Westermarck
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137135 13f79535-47bb-0310-9956-ffa450edef68
2002-11-17 21:46:42 +00:00
Stephen Colebourne 7184f0650c Add to ArrayUtils and test it
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137134 13f79535-47bb-0310-9956-ffa450edef68
2002-11-16 12:56:44 +00:00
Stephen Colebourne 7477a1e08f Javadoc formatting patch, by Fredrik Westermarck
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137133 13f79535-47bb-0310-9956-ffa450edef68
2002-11-16 10:41:03 +00:00
Stephen Colebourne c248c060c6 Javadoc fixes, from Fredrik Westermarck
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137132 13f79535-47bb-0310-9956-ffa450edef68
2002-11-15 00:25:45 +00:00
Stephen Colebourne 4564bf1761 Change the isTrue() method to cope with strings case insensitively
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137130 13f79535-47bb-0310-9956-ffa450edef68
2002-11-15 00:06:40 +00:00
Stephen Colebourne ce3c7cc62f Javadoc fixes, from Fredrik Westermarck
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137129 13f79535-47bb-0310-9956-ffa450edef68
2002-11-14 22:29:25 +00:00
Stephen Colebourne 94318c7e60 Javadoc improvements.
Finish renaming of Command to Executor.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137127 13f79535-47bb-0310-9956-ffa450edef68
2002-11-14 21:54:49 +00:00
Stephen Colebourne f2e2fdbb21 Javadoc error and clarification, from Martin Cooper.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137126 13f79535-47bb-0310-9956-ffa450edef68
2002-11-14 21:52:14 +00:00
Robert Burrell Donkin 7b38db1c30 Added unit tests for MethodUtils copied from the beanutils component.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137125 13f79535-47bb-0310-9956-ffa450edef68
2002-11-14 18:53:36 +00:00
Robert Burrell Donkin 4914d5c807 Updated method utils with latest code from the beanutils version.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137124 13f79535-47bb-0310-9956-ffa450edef68
2002-11-14 18:51:57 +00:00
Robert Burrell Donkin 15508a27a2 Made a start on documentation for reflect.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137123 13f79535-47bb-0310-9956-ffa450edef68
2002-11-14 18:50:59 +00:00
Henri Yandell 4c236996fa Some of the modifications Stephen wants.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137122 13f79535-47bb-0310-9956-ffa450edef68
2002-11-12 22:36:59 +00:00
Henri Yandell dfac194424 Notifier is a class which makes handling an event-listener queue a lot easier.
It throws the exception when the notify fails.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137121 13f79535-47bb-0310-9956-ffa450edef68
2002-11-12 03:01:05 +00:00
Henri Yandell 864c478a4d Removed unused UPPER_FOO variable.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137120 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 21:52:44 +00:00
Henri Yandell 1cb025f0c0 NumberRange.getMaximum returns the minimum, not the maximum.
Test added to verify this, and then the bug fixed.
SUBMITTED-BY:  Kasper R�nning


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137117 13f79535-47bb-0310-9956-ffa450edef68
2002-11-07 16:59:44 +00:00
Henri Yandell 96a4ec95a7 Closure renamed to Executor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137116 13f79535-47bb-0310-9956-ffa450edef68
2002-11-06 19:16:33 +00:00
Henri Yandell 29eb9686b6 And a new name. Until it gets changed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137115 13f79535-47bb-0310-9956-ffa450edef68
2002-11-06 19:15:40 +00:00
Henri Yandell 27c8d12495 getCause is 1.4 specific. Have replaced with getException.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137114 13f79535-47bb-0310-9956-ffa450edef68
2002-11-06 19:14:43 +00:00
Henri Yandell 80f68cc0c4 Closure deemed to be a bad name. Bye bye.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137113 13f79535-47bb-0310-9956-ffa450edef68
2002-11-06 19:09:00 +00:00
Henri Yandell 6762e2b439 Transfer of Patterns code over to Lang
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137111 13f79535-47bb-0310-9956-ffa450edef68
2002-11-05 16:45:13 +00:00
Henri Yandell 985f8a6235 Transfer of some of Patterns over to Lang.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137110 13f79535-47bb-0310-9956-ffa450edef68
2002-11-05 16:44:28 +00:00
Stephen Colebourne b0d8436ce8 Test to ensure that duplicate enums cannot be created
Test to ensure that null and blank strings cannot be created
Bug found by Howard Lewis Ship


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137109 13f79535-47bb-0310-9956-ffa450edef68
2002-11-02 13:17:06 +00:00
Stephen Colebourne f44c297fa2 Ensure that duplicate enums cannot be created
Bug found by Howard Lewis Ship


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137108 13f79535-47bb-0310-9956-ffa450edef68
2002-11-02 13:16:30 +00:00
Henri Yandell b4df69ccc3 Fixed the example in the javadoc so it compiles.
Submitted by: Janek Bogucki


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137107 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 16:40:41 +00:00
Stephen Colebourne 778d8d5828 Fix to be JDK1.2 compliant
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137106 13f79535-47bb-0310-9956-ffa450edef68
2002-10-30 21:58:18 +00:00
Stephen Colebourne a8df3d5a93 Fix javadoc due to method sig change. Spotted by Mike Miller
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137105 13f79535-47bb-0310-9956-ffa450edef68
2002-10-30 21:31:13 +00:00
Henri Yandell 73cfd9787c Javadoc fix, submitted by Ville Skytta.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137104 13f79535-47bb-0310-9956-ffa450edef68
2002-10-29 19:47:02 +00:00
Henri Yandell 04533a9268 Added isWhitespace, isTrue and uncapitaliseAllWords methods and tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137103 13f79535-47bb-0310-9956-ffa450edef68
2002-10-28 04:33:29 +00:00
Henri Yandell b556203db7 Changed the signature of StringUtils.defaultString(String,String) and (String) to (Object, String) and (Object).
A note needs to be made in the next release that code using defaultString
needs to be recompiled else it will grumble.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137102 13f79535-47bb-0310-9956-ffa450edef68
2002-10-27 19:42:04 +00:00
Stephen Colebourne 870097e4b1 Initial checkin of reflection code (not all working)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137101 13f79535-47bb-0310-9956-ffa450edef68
2002-10-24 23:12:54 +00:00
Henri Yandell d86483672f Javadoc fixing patch applied form Fredrik Westermark
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137100 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 17:18:49 +00:00
Stephen Colebourne 601c2e13e9 Initial version of ArrayUtils testing, testing incomplete at present
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137099 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 22:42:59 +00:00
Stephen Colebourne d31f3d3f8a Initial version of ArrayUtils, includes toMap
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137098 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 22:42:06 +00:00
Sean Sullivan 1ad5019544 added test code for Map keySet size and List size
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137097 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 18:42:06 +00:00