Commit Graph

583 Commits

Author SHA1 Message Date
Stephen Colebourne 7f7d37421a Bring EnumUtils public constructor testing in line with main package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137534 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 23:21:39 +00:00
Stephen Colebourne d793a1fd62 Lang version 1.0.1 serial compatability
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137533 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 23:17:23 +00:00
Stephen Colebourne 7f9f65f7e2 Extra tests and optimisations suggested by Clover
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137532 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 23:13:09 +00:00
Stephen Colebourne c7767ea25b Additional tests as suggested by Clover report
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137531 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 22:21:39 +00:00
Stephen Colebourne 35b8cc4ce3 Fixes arising from Clover report
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137530 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 22:17:49 +00:00
Stephen Colebourne 45232572e2 Update javadoc to better describe method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137529 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 22:17:00 +00:00
Stephen Colebourne 61df6f8b53 Make package scoped
Format as per the [lang] coding standards


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137528 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 21:16:13 +00:00
Henri Yandell 1f9205ff84 Backed the 1.0.1 out. Maybe it doesn't make sense.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137527 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 03:30:58 +00:00
Henri Yandell ebf4847c53 Added in the bugs fixed in the last few weeks.
Changed comment to say that these are the changes since 1.0.1.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137526 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 03:21:42 +00:00
Henri Yandell 87f80c4dca Changed so it stops putting .html files into the jar file.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137525 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 01:32:09 +00:00
Stephen Colebourne 3a8907682b Javadoc fixes and improved tests
bug 21952, from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137524 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 00:08:38 +00:00
Henri Yandell 0c1c4431d2 Updated version so that new builds will be rc2.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137523 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 00:06:44 +00:00
Stephen Colebourne 4f1528447c Redo null/empty string checking for performance
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137522 13f79535-47bb-0310-9956-ffa450edef68
2003-07-28 21:37:32 +00:00
Gary D. Gregory c8ecea62ca Severity Description Resource In Folder Location Creation Time
The private field StringEscapeUtils.DEFAULT_ENTITIES is never read locally	StringEscapeUtils.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang	line 80	July 28, 2003 9:17:25 AM


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137521 13f79535-47bb-0310-9956-ffa450edef68
2003-07-28 16:17:57 +00:00
Gary D. Gregory 3b19309d76 Fix http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21904 as suggested (but with the guard clause factored in a method.)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137520 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 19:12:30 +00:00
Stephen Colebourne 9410b31864 Remove final status, classes can be subclassed
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137519 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:39:04 +00:00
Stephen Colebourne 89d6fa50c5 Update padding to be thread-safe
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137518 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:35:35 +00:00
Stephen Colebourne f3506beb79 Variables renamed to capitals
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137517 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:34:47 +00:00
Stephen Colebourne a86463bcc2 Declare variables final, and rename to capitals
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137516 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:34:19 +00:00
Stephen Colebourne bdbdb49ace Declare variable final
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137515 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:33:34 +00:00
Stephen Colebourne 3f532cf5c3 Add test for indexOf edge case
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137514 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:36:30 +00:00
Stephen Colebourne 3d97997494 Comment out unreliable test based on stack trace
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137513 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:36:00 +00:00
Stephen Colebourne 89e735ed4e Handle JDK1.2/JDK1.3 bug in String.indexOf
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137512 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:34:49 +00:00
Stephen Colebourne 9345b31d15 Fix bug in isNestedThrowable, shown on JDK<1.4
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137511 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:22:21 +00:00
Stephen Colebourne 858d38ddcf Comment out checkstyle to allow for maven-beta10
bug 21809


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137510 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 13:21:44 +00:00
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