Commit Graph

668 Commits

Author SHA1 Message Date
Stephen Colebourne ccb2c966f9 Update null handling in ExceptionUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137509 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 13:11:21 +00:00
Stephen Colebourne 96de08907e Update null handling in ExceptionUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137508 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 13:05:21 +00:00
Stephen Colebourne 5943137656 Javadoc improvements
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137507 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 13:00:36 +00:00
Stephen Colebourne 7edd55554a Fix Javadoc troubles
from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137506 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 10:32:17 +00:00
Gary D. Gregory b612cd4156 In 2 places, removed local var def before return of var, replaced with actual expression.
This follows the other methods' code pattern.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137505 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 02:57:37 +00:00
Gary D. Gregory f133c130bc Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type int for expression of type int	Fraction.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/math	line 391	July 25, 2003 5:56:34 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137504 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:57:02 +00:00
Gary D. Gregory da00e1d426 Avoid Javadoc warning with Standard Doclet version 1.4.2.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137503 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:45:27 +00:00
Gary D. Gregory 77f8c186f2 Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type int for expression of type char	Entities.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang	line 643	July 23, 2003 11:22:37 AM
	Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int	Entities.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang	line 642	July 23, 2003 11:22:37 AM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137502 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:32:19 +00:00
Gary D. Gregory 9e100212ce Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int	EntitiesTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang	line 130	July 23, 2003 11:22:39 AM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137501 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:31:29 +00:00
Gary D. Gregory e81e45f27f Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type int for expression of type char	RandomStringUtils.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang	line 259	July 23, 2003 11:22:36 AM
	Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int	RandomStringUtils.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang	line 258	July 23, 2003 11:22:36 AM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137500 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:26:32 +00:00
Stephen Colebourne 98732b58ca Change as recommended by findBugs
(static variables private or final, and Boolean constructor optimisation)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137499 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:06:58 +00:00
Gary D. Gregory d9816dab73 Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type String[] for expression of type Object[]. It is already compatible with the argument type Object	NestableDelegate.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/exception	line 378	July 23, 2003 11:22:36 AM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137498 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:05:22 +00:00
Gary D. Gregory 85d33454a1 Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type Object for expression of type Object	ToStringStyle.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 420	July 23, 2003 11:22:36 AM
	Unnecessary cast to type Object for expression of type Object	ToStringStyle.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 422	July 23, 2003 11:22:36 AM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137497 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:04:24 +00:00
Gary D. Gregory 43dd7284cf Severity Description Resource In Folder Location Creation Time
Unnecessary cast to type int for expression of type byte. It is already compatible with the argument type int	HashCodeBuilder.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 471	July 23, 2003 11:22:36 AM
	Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int	HashCodeBuilder.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 460	July 23, 2003 11:22:36 AM
	Unnecessary cast to type int for expression of type short. It is already compatible with the argument type int	HashCodeBuilder.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 449	July 23, 2003 11:22:36 AM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137496 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:03:30 +00:00
Stephen Colebourne 247c97f507 Remove unneeded String constructor as found by findBugs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137495 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 22:53:49 +00:00
Stephen Colebourne a303646251 Javadoc and tests for ObjectUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137494 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 22:37:59 +00:00
Stephen Colebourne 7ff6e3a30f Rename slice functions to substringAfter/substringBefore
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137493 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 22:22:30 +00:00
Stephen Colebourne d33605dfc9 Update slice methods to be more consistent
from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137492 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 00:50:00 +00:00
Stephen Colebourne e758deb5e8 Add extra example code javadoc and related tests
bug 21797, from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137491 13f79535-47bb-0310-9956-ffa450edef68
2003-07-22 23:36:40 +00:00
Stephen Colebourne e00c4a2546 Increase explanation comment, requested by Gary Gregory
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137490 13f79535-47bb-0310-9956-ffa450edef68
2003-07-22 00:09:14 +00:00
Stephen Colebourne 2d17989e28 Fix stupid compile error....
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137489 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:32:41 +00:00
Stephen Colebourne 1f0aeca4d5 Javadoc fixes
bug 21758, from Pete Gieser


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137488 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:30:42 +00:00
Stephen Colebourne dbe97c09ca Javadoc fixes
bug 21758, from Pete Gieser


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137487 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:14:37 +00:00
Stephen Colebourne a1e6b5d617 Reverse recent addition of date formatting. Better solution required.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137486 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:03:53 +00:00
Stephen Colebourne 6a0ce20988 Fix class so IS_JAVA_* and IS_OS_* constants work correctly.
bug 21767, from Tetsuya Kaneuchi


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137485 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 22:57:51 +00:00
Gary D. Gregory 0e08941e69 Severity Description Resource In Folder Location Creation Time
Superfluous semicolon	NumberUtilsTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math	line 157	July 20, 2003 12:01:26 PM
	Superfluous semicolon	NumberUtilsTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math	line 168	July 20, 2003 12:01:26 PM
	Superfluous semicolon	NumberUtilsTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math	line 179	July 20, 2003 12:01:26 PM
	Superfluous semicolon	NumberUtilsTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math	line 190	July 20, 2003 12:01:26 PM
	Superfluous semicolon	NumberUtilsTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math	line 201	July 20, 2003 12:01:26 PM
	Superfluous semicolon	NumberUtilsTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math	line 212	July 20, 2003 12:01:26 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137483 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 19:42:12 +00:00
Gary D. Gregory 3d3276ba5a Missing '.' caused the Javadoc warning:
[javadoc] Generating C:\cvs-store\apache.org\jakarta\commons\lang\dist\docs\api\index-all.html...
  [javadoc] "<p>Append to the <code>toString</code> a <code>Date</code>
  [javadoc]  value, using the optional <code>DateFormat</code>"
  [javadoc] C:\cvs-store\apache.org\jakarta\commons\lang\src\java\org\apache\commons\lang\builder\ToStringStyle.java:476: warning - The first sentence is interp
reted to be:
  [javadoc] This sentence is different from what will be interpreted as the first sentence in the
  [javadoc] next major release (when that interpretation will be internationalized), which is:
  [javadoc] "<p>Append to the <code>toString</code> a <code>Date</code>
  [javadoc]  value, using the optional <code>DateFormat</code></p>"
  [javadoc] To avoid this note, change the doc comment to make this a proper first sentence, then
  [javadoc] use -breakiterator from that point forward, which will output this new sentence.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137482 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 19:34:10 +00:00
Stephen Colebourne f434e7ba71 Update Javadoc examples
Change mid() to accept invalid startPos


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137480 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 00:41:13 +00:00
Stephen Colebourne d381baaf33 Update Javadoc and tests
bug 21750, from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137479 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 23:57:26 +00:00
Gary D. Gregory 82c4c69189 Severity Description Resource In Folder Location Creation Time
Superfluous semicolon	RandomUtilsTest.java	Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math	line 315	July 18, 2003 8:21:31 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137478 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 18:58:46 +00:00
Stephen Colebourne af6aba957f Update null handling behaviour and documentation
bug 21734, from Phil Steiz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137476 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 16:03:21 +00:00
Stephen Colebourne 69756032f5 Organize imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137475 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 15:49:58 +00:00
Stephen Colebourne 9af8bc1c40 Remove defaultString(Object) from StringUtils
Add  toString(Object)  to ObjectUtils


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137474 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 15:41:52 +00:00
Stephen Colebourne 1ea34cbbba Add more javadoc example code
Ensure empty string behaviour documented in example code


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137473 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 15:29:44 +00:00
Stephen Colebourne 91a22bc494 Add summary javadoc section to StringUtils class
Rename reverseDelimitedString to reverseDelimited


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137472 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 14:47:29 +00:00
Stephen Colebourne 4c1e760dd8 Add new method center(String, int, char) to complete API
Rework padding internals
Example javadoc difference()/differenceAt()
Remove dependency on NumberUtils


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137471 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 10:29:22 +00:00
Stephen Colebourne 5d5af47995 Fix wrong javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137470 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 10:24:49 +00:00
Gary D. Gregory 2cf366c11a Severity Description Resource In Folder Location Creation Time
The static field DateFormat.FULL should be accessed directly	FastDateFormat.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time	line 112	July 19, 2003 5:17:12 PM
	The static field DateFormat.LONG should be accessed directly	FastDateFormat.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time	line 116	July 19, 2003 5:17:12 PM
	The static field DateFormat.MEDIUM should be accessed directly	FastDateFormat.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time	line 120	July 19, 2003 5:17:12 PM
	The static field DateFormat.SHORT should be accessed directly	FastDateFormat.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time	line 124	July 19, 2003 5:17:12 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137469 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:21:29 +00:00
Gary D. Gregory 155533d20d Severity Description Resource In Folder Location Creation Time
Superfluous semicolon	MethodUtils.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/reflect	line 491	July 18, 2003 8:21:29 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137468 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:13:54 +00:00
Gary D. Gregory cd63d78c4a Severity Description Resource In Folder Location Creation Time
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly 	ReflectionToStringBuilder.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 346	July 18, 2003 8:21:31 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137467 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:13:14 +00:00
Gary D. Gregory 42a2549dc0 Severity Description Resource In Folder Location Creation Time
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly 	HashCodeBuilder.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 341	July 18, 2003 8:21:31 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137466 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:12:32 +00:00
Gary D. Gregory d27569f61a Severity Description Resource In Folder Location Creation Time
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly 	EqualsBuilder.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder	line 268	July 19, 2003 6:10:35 PM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137465 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:11:05 +00:00
Stephen Colebourne 243fb789c6 Group all the trim/strip methods together in source file
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137464 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 00:37:09 +00:00
Stephen Colebourne 30ddfad67f Deprecate deleteSpaces()
Move delete methods next to replace


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137463 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 00:17:29 +00:00
Stephen Colebourne 97adbab600 Add new methods stripToNull/stripToEmpty to provide alternative to trim versions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137462 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 00:04:12 +00:00
Stephen Colebourne 51af2aef0b Add new methods for null-safe indexOf/lastIndexOf
Add new methods for contains


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137461 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 23:29:06 +00:00
Stephen Colebourne 9ea271c0c7 Move IndexOf and Contains tests to StringUtilsEqualsIndexOfTest
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137460 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 23:28:23 +00:00
Stephen Colebourne 895cedb404 Rework isEmpty and isNotEmpty following user feedback
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137459 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 21:55:05 +00:00
Stephen Colebourne 9001aa2613 Update null behaviour for consistency and clarity
Doument null behaviour


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137458 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:22:36 +00:00
Stephen Colebourne 8c6294dd70 Document null behaviour
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137457 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:21:39 +00:00
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