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
Sean Sullivan
b759cf0bc6
made fix for bug id 13527
...
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13527
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137096 13f79535-47bb-0310-9956-ffa450edef68
2002-10-13 17:57:10 +00:00
Sean Sullivan
6faef5d8f0
cleaned up exception handling in the serialization test code
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137095 13f79535-47bb-0310-9956-ffa450edef68
2002-10-09 17:20:44 +00:00
Sean Sullivan
6200e1369f
this class now implements java.io.Serializable
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137094 13f79535-47bb-0310-9956-ffa450edef68
2002-10-09 05:29:52 +00:00
Sean Sullivan
fe4b0dd5ce
added test code for serialization / deserialization
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137093 13f79535-47bb-0310-9956-ffa450edef68
2002-10-09 05:28:53 +00:00
Sean Sullivan
de4f94e5ba
changed variable declaration: java.util.LinkedList to java.util.List
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137092 13f79535-47bb-0310-9956-ffa450edef68
2002-10-09 04:35:03 +00:00
Henri Yandell
ed94aba059
Patch submitted by Fredrik Westermarck <fredrik.westermarck@mdh.se> that
...
replaces a TODO now that we have a SystemUtils.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137091 13f79535-47bb-0310-9956-ffa450edef68
2002-10-09 03:29:18 +00:00
Sean Sullivan
9f5928035e
added tests for NullPointerException
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137090 13f79535-47bb-0310-9956-ffa450edef68
2002-10-08 19:14:20 +00:00
Sean Sullivan
77d19cd26a
corrected assert message String's
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137089 13f79535-47bb-0310-9956-ffa450edef68
2002-10-08 19:01:39 +00:00
Steven Caswell
febdca4fd6
javadoc corrections:
...
- changed <code> tag to <pre> tag around code examples for better formatting
- added reflection method explanation text
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137082 13f79535-47bb-0310-9956-ffa450edef68
2002-10-01 20:03:04 +00:00
Steven Caswell
5532905f1f
javadoc corrections:
...
- changed <code> tag to <pre> tag around code examples for better formatting
- corrected reflection method name in explanation text
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137081 13f79535-47bb-0310-9956-ffa450edef68
2002-10-01 20:02:08 +00:00
Steven Caswell
48281f8ffb
javadoc corrections:
...
- corrected name of append method in code example
- changed <code> tag to <pre> tag around code examples for better formatting
- corrected reflection method name in explanation text
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137080 13f79535-47bb-0310-9956-ffa450edef68
2002-10-01 20:00:43 +00:00
Henri Yandell
9380c2fdd6
Removed an unused piece of code.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137079 13f79535-47bb-0310-9956-ffa450edef68
2002-09-30 00:50:10 +00:00
Henri Yandell
d5727f690f
Javadoc typo fixed. equals was claiming String type.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137078 13f79535-47bb-0310-9956-ffa450edef68
2002-09-30 00:47:45 +00:00
Henri Yandell
c367279525
Ensured that the builder has a default style at all times by setting it
...
initially. [the setDefaultStyle method makes sur eit can't be set to null].
Hopefully this is an okay thing to do, it was breaking Tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137077 13f79535-47bb-0310-9956-ffa450edef68
2002-09-29 08:26:05 +00:00
Henri Yandell
a7aaefbef0
Removed unused imports.
...
Submitted by: Fredrik Westermarck <fredrik.westermarck@mdh.se>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137076 13f79535-47bb-0310-9956-ffa450edef68
2002-09-29 08:20:52 +00:00
Henri Yandell
5d1ca3e449
Fixed to allow a charset of "-" to work correctly.
...
Submitted by: Steve Downey
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137074 13f79535-47bb-0310-9956-ffa450edef68
2002-09-29 07:15:12 +00:00
Henri Yandell
e42273b9f2
Test showing that new String {"-"} does not work in CharSetUtils as a charset.
...
Submitted by: Steve Downey
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137073 13f79535-47bb-0310-9956-ffa450edef68
2002-09-29 07:13:07 +00:00
Stephen Colebourne
184b637342
Javadoc fixes and enhancements
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137072 13f79535-47bb-0310-9956-ffa450edef68
2002-09-28 10:49:59 +00:00
Stephen Colebourne
58299f3405
Javadoc fixes and enhancements
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137071 13f79535-47bb-0310-9956-ffa450edef68
2002-09-28 10:44:51 +00:00
Stephen Colebourne
031ff96cd3
Javadoc fixes and enhancements from Steve Downey
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137070 13f79535-47bb-0310-9956-ffa450edef68
2002-09-28 10:34:54 +00:00
Henri Yandell
e0722ed784
Changed the deleteWhitespace method to delete according to Character.isWhitespce
...
Renamed the existing deleteWhitespace functionality to deleteSpaces.
This is in accordance with Character.isSpace.
Submitted by: Steve Downey's idea
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137068 13f79535-47bb-0310-9956-ffa450edef68
2002-09-27 06:08:16 +00:00
Henri Yandell
d58545381f
Added a patch with many improvements to the javadoc from Steve Downey.
...
Submitted by: Steve Downey
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137067 13f79535-47bb-0310-9956-ffa450edef68
2002-09-27 05:53:37 +00:00
Daniel Rall
c7f2404b97
Corrected semantics of ExceptionWithoutCause broken in CVS rev 1.3.
...
The point of the ExceptionWithoutCause is to test for false-positive
nested exception method signature matches. Documented this in the
header JavaDoc for both the ExceptionWithCause and
ExceptionWithoutCause classes, and changed the nested exception method
name of the latter from getCause() to getTargetException() to avoid
conflicts with getCause() method of JDK 1.4's Exception class (which
returns Throwable).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137060 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 05:50:49 +00:00
Henri Yandell
9545c70a75
Changed my name from 'Bayard'. Yeah yeah.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137059 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 03:30:19 +00:00
Stephen Colebourne
0e07b8e599
Checkstyle fixes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137057 13f79535-47bb-0310-9956-ffa450edef68
2002-09-22 09:18:33 +00:00
Henri Yandell
7506eb0511
Removed unused import statements.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137054 13f79535-47bb-0310-9956-ffa450edef68
2002-09-21 05:02:43 +00:00
Henri Yandell
17c61e6bd2
Enhanced documentation files. First take.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137053 13f79535-47bb-0310-9956-ffa450edef68
2002-09-21 04:22:28 +00:00
Stephen Colebourne
32c6231679
Superclass now specifies protected getters and setters
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137051 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 19:45:22 +00:00
Stephen Colebourne
1aded675b6
Added javadoc
...
Added protected getters and setters for fields
Made fields private
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137050 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 19:44:10 +00:00
Stephen Colebourne
4ff3b6c75c
Added some javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137049 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 19:42:59 +00:00
Henri Yandell
bcc5b99ca4
added another test and updated STATUS to confirm containsOnly is done
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137048 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 07:02:30 +00:00
Henri Yandell
d788e182bc
Patch from Fredrik Westermarck <fredrik.westermarck@mdh.se> that adds the
...
containsOnly method. I added a couple more unit tests and modified the code
slightly.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137047 13f79535-47bb-0310-9956-ffa450edef68
2002-09-19 06:58:13 +00:00
Stephen Colebourne
00df256006
Add test for Null placeholder singleton
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137045 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 20:12:15 +00:00
Stephen Colebourne
727c9b0fa4
Add Null placeholder singleton
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137044 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 20:11:53 +00:00
Stephen Colebourne
55ca32bd2e
Added explicit public constructor
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137043 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 19:55:32 +00:00
Henri Yandell
06ad5b4b6b
And now i'll add a comment about the public constructor.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137042 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 19:53:52 +00:00
Henri Yandell
01a6edec03
Been meaning to do this. Made the constructor public in line with StringUtils.
...
scolebourne thankfully reminded me by doing NumberUtils :)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137041 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 19:52:26 +00:00
Stephen Colebourne
46b35c49b1
Test identityToString
...
Reformat for Suns coding standards
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137039 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 19:49:47 +00:00
Stephen Colebourne
a6dfea71c6
Add identityToString
...
Make constructor public in line with NumberUtils and StringUtils
Javadoc tidy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137038 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 19:49:08 +00:00
Steven Caswell
593e15d717
added printStackTrace(PrintStream) method to NonThrowableNestable static class to satisfy Nestable interface;
...
removed deprecated getLength() and indexOfThrowable(int,Class) methods from static test classes;
revised javadocs fof static test classes to be more accurate in describing method behavior
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137037 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 15:51:41 +00:00
Steven Caswell
8bce2df421
change getCause() ExceptionWithoutCause static class:
...
- changed signature to match getCause method in JDK 1.4 Exception
- changed method to return null
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137036 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 15:47:44 +00:00
Stephen Colebourne
992105bfd3
Tidy file layout
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137034 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 22:09:11 +00:00
Stephen Colebourne
93bdcee262
Tests for initial checkin of ToStringBuilder and assistants
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137033 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 22:07:50 +00:00
Stephen Colebourne
12c3259745
Initial checkin of ToStringBuilder and assistants
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137032 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 22:07:20 +00:00
Stephen Colebourne
aea52bdea5
Exclude static fields from reflection based builder
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137031 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 22:06:38 +00:00
Henri Yandell
3468b1f8e0
Removed the @see ExtensibleEnum as there is no such class in the
...
system currently. It was giving a warning in the building of javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137028 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 09:33:28 +00:00
Stephen Colebourne
59a6aaa2b5
Add tests for new min, max and compare methods
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137025 13f79535-47bb-0310-9956-ffa450edef68
2002-09-15 10:27:56 +00:00
Stephen Colebourne
bb3c2143b4
Test CompareToBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137024 13f79535-47bb-0310-9956-ffa450edef68
2002-09-15 10:27:06 +00:00
Stephen Colebourne
bd65b2153e
Added compare methods for double and float
...
Added min/max methods for long
Added public constructor with comment
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137023 13f79535-47bb-0310-9956-ffa450edef68
2002-09-15 10:26:42 +00:00
Stephen Colebourne
9a3f8a3e9c
Add CompareToBuilder for building compareTo methods
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137022 13f79535-47bb-0310-9956-ffa450edef68
2002-09-15 10:25:22 +00:00
Stephen Colebourne
dee1c29975
New builder subpackage created
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137020 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 22:01:25 +00:00
Stephen Colebourne
5cab6528ea
Add extra tests for reflection and multi dimensional arrays
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137019 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 22:01:00 +00:00
Stephen Colebourne
b47c241280
Added code from Steve Downey,
...
with some formatting changes and extra tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137018 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 22:00:35 +00:00
Stephen Colebourne
8d12cf6b9c
Added code from Steve Downey,
...
with some formatting changes and minor bug fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137017 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 22:00:00 +00:00
Stephen Colebourne
e4da822d41
Moved from superpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137016 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 21:59:01 +00:00
Stephen Colebourne
a9af49e61d
Moved to builder subpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137015 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 21:58:38 +00:00
Steven Caswell
3c58a13269
added printStackTrace(PrintStream) for consistency with printStackTrace(PrintWriter)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137013 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 01:20:25 +00:00
Steven Caswell
c0b40b9c77
corrected name of test case class
...
corrected name of second tester class in getTester2 method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137012 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 19:40:56 +00:00
Steven Caswell
5adc254330
corrected name of test case class
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137011 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 19:40:35 +00:00
Steven Caswell
8ac7a8a0f4
corrected a couple of refactoring items missed:
...
- in testGetThrowableI, replaced construction of explicit class instance with getThrowable abstract method
- in testPrintPartialStackTrace, replaced class name in startsWith assert from explcit class name to class from getNestable abstract method
- in testPrintStackTrace, replaced class name in startsWith assert from explicit class name to class name from getThrowableClass abstract method
- in testPrintStackTrace, replaced class name in indexOf assert from explicit class name to class name from getNestable abstract method
removed extranous commented code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137010 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 19:40:14 +00:00
Steven Caswell
d1b1006b66
updated javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137009 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 19:04:26 +00:00
Steven Caswell
0acf0a6f35
added NestableErrorTestCase to test suite
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137008 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 18:17:42 +00:00
Steven Caswell
51a06ca201
created
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137007 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 18:17:23 +00:00
Steven Caswell
31c87c4b23
refactored to share funcrionality from AbstractNestableTestCase
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137006 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 18:16:53 +00:00
Steven Caswell
bb372402d6
created by refactoring NestableException revision 1.3
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137005 13f79535-47bb-0310-9956-ffa450edef68
2002-09-11 18:16:10 +00:00
Stephen Colebourne
3189949155
Removed to sandbox ready for 1.0 release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137003 13f79535-47bb-0310-9956-ffa450edef68
2002-09-06 22:43:55 +00:00
Henri Yandell
5176b8f7c2
Removed stackTrace and getStackTrace. ExceptionUtils has getStackTrace and
...
stackTrace is only slightly different in that it uses a ByteArrayOutputStream
and not a StringWriter. A change since the beta, but not allowing obvious ones
to happen will be silly.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137002 13f79535-47bb-0310-9956-ffa450edef68
2002-08-31 19:05:32 +00:00
Stephen Colebourne
3e44b6f86f
Improve checkstyle report
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137001 13f79535-47bb-0310-9956-ffa450edef68
2002-08-31 11:11:03 +00:00
Stephen Colebourne
dfec8f3aed
Improve checkstyle report
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137000 13f79535-47bb-0310-9956-ffa450edef68
2002-08-31 10:51:02 +00:00
Daniel Rall
2257a019e4
split(String, String, int): Integrated some good suggested
...
improvements from John Yu <john@scioworks.com>.
split(String, String): Referenced split(String, String, int) to avoid
maintainence overhead of duplicated JavaDoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136999 13f79535-47bb-0310-9956-ffa450edef68
2002-08-30 02:52:54 +00:00
Daniel Rall
75fd5eaba1
CAUSE_METHOD_NAMES: Added "getSourceException" to list of method
...
names.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12043
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136997 13f79535-47bb-0310-9956-ffa450edef68
2002-08-26 16:40:43 +00:00
Daniel Rall
7cc9255061
Extend java.lang.Error rather than Exception.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136996 13f79535-47bb-0310-9956-ffa450edef68
2002-08-26 06:03:57 +00:00
Stephen Colebourne
f56215806c
Add extra system property constants
...
Add java version methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136992 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 22:17:53 +00:00
Daniel Rall
54161dd497
NestableError suggested by Stephen C. Basically a clone of
...
NestableException.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136991 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 19:18:48 +00:00
Daniel Rall
1f075abae4
Leveraged NestableDelegate.getMessage(String).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136990 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 19:17:31 +00:00
Daniel Rall
33457071e9
Renamed "cause" private field to "nestable" to better reflect what it
...
is.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136989 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 19:09:38 +00:00
Daniel Rall
241e24c4d6
getMessage(String): Corrected grammar in JavaDoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136988 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 19:02:49 +00:00
Steven Caswell
e4125727e7
removed testing of deprecated methods getLength() and indexOfThrowable(int, Class)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136987 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 13:21:24 +00:00
Steven Caswell
1962432bfe
removed deprecated methods getLength() and indexOfThrowable(int, Class)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136986 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 13:20:59 +00:00
Daniel Rall
b34534b9d7
ExceptionUtils.getThrowables(Throwable): Switched from concrete
...
ArrayList local reference to List.
ExceptionUtils.getStackTrace(Throwable): New method for extracting the
text of a stack trace.
ExceptionUtils.getStackFrames(Throwable): Splits an exception's stace
trace into frames.
ExceptionUtils.getStackFrames(String): Splits a stace trace into frames.
NestableDelegate printStackTrace(): Delegate to
printStackTrace(PrintStream) using System.err rather than duplicating
its impl.
NestableDelegate printStackTrace(PrintWriter): Used new name
getStackFrames() method name.
NestableDelegate getStackFrames(Throwable): Renamed decompose() to
this and delegated to ExceptionUtils.getStackFrames(String) for half
of impl.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136985 13f79535-47bb-0310-9956-ffa450edef68
2002-08-24 19:18:50 +00:00
Stephen Colebourne
c838670a6f
Constrctor made public to enable those who use the class as a Bean
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136984 13f79535-47bb-0310-9956-ffa450edef68
2002-08-23 08:00:26 +00:00
Stephen Colebourne
155943d345
Initial version of SystemUtils for system constants
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136983 13f79535-47bb-0310-9956-ffa450edef68
2002-08-22 22:11:25 +00:00
Daniel Rall
d659fc0d2a
Applied squashing of impl of getThrowableCount(Throwable) to
...
getThrowables(Throwable).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136979 13f79535-47bb-0310-9956-ffa450edef68
2002-08-22 00:04:42 +00:00
Daniel Rall
3ad9e1fcc8
Even shorter impl of getThrowableCount(Throwable) which returns zero
...
when passed a null argument.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136978 13f79535-47bb-0310-9956-ffa450edef68
2002-08-22 00:03:41 +00:00
Daniel Rall
e0800963cc
testGetThrowableCount(): New method to get
...
ExceptionUtils.getThrowableCount() with null argument.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136977 13f79535-47bb-0310-9956-ffa450edef68
2002-08-22 00:00:09 +00:00
Daniel Rall
90b54cc01b
o Improved getThrowableCount(Throwable) to return zero when passed a
...
null argument.
o Added @param JavaDoc for methods added during last commit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136976 13f79535-47bb-0310-9956-ffa450edef68
2002-08-21 23:57:00 +00:00
Daniel Rall
c5a3bf5fc1
Moved the implementations of getThrowableCount(), getThrowables(),
...
indexOfThrowable(Class), and indexOfThrowable(Class, int) methods to
ExceptionUtils, as suggested by Stephen Colebourne
<scolebourne@btopenworld.com>.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136975 13f79535-47bb-0310-9956-ffa450edef68
2002-08-21 23:52:02 +00:00
Daniel Rall
d2b4104bc2
Added the getThrowableCount(Throwable), getThrowables(Throwable),
...
indexOfThrowable(Throwable, Class), and indexOfThrowable(Throwable,
Class, int) methods factored out of NestableDelegate, as suggested by
Stephen Colebourne <scolebourne@btopenworld.com>. Added a TODO for
the remaining methods he suggested moving.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136974 13f79535-47bb-0310-9956-ffa450edef68
2002-08-21 23:51:22 +00:00
Daniel Rall
0b3f9dcadc
Broke long lines; no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136973 13f79535-47bb-0310-9956-ffa450edef68
2002-08-21 07:31:54 +00:00
Daniel Rall
10c9649135
o Changed type of "cause" instance field from Nestable to Throwable.
...
Since implementation of Throwable is already required, this doesn't
change the interface, but does simplify the internals.
o Simplified code in getThrowableCount() method by removing extraneous
null check and extra reference.
o Implemented suggestion by Joachim.Sauer@tp-soft.com to use
ExceptionUtils where Nestable.getCause() was previously called.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136972 13f79535-47bb-0310-9956-ffa450edef68
2002-08-21 07:22:47 +00:00
Daniel Rall
13fecb8398
getCauseUsingWellKnownTypes(Throwable): Collapsed checks for
...
instanceof NestableException and NestableRuntimeException into single
check for Nestable interface.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136971 13f79535-47bb-0310-9956-ffa450edef68
2002-08-21 07:13:50 +00:00
Stephen Colebourne
3e5b0bd6a0
Change HashCodeUtils to HashCodeBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136970 13f79535-47bb-0310-9956-ffa450edef68
2002-08-15 22:37:30 +00:00
Daniel Rall
da49474963
CAUSE_METHOD_PARAMS: Updated JavaDoc for recent API enchancements.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136969 13f79535-47bb-0310-9956-ffa450edef68
2002-08-14 23:16:55 +00:00
Daniel Rall
7004cc6250
CAUSE_METHOD_NAMES: Updated JavaDoc for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136968 13f79535-47bb-0310-9956-ffa450edef68
2002-08-14 23:15:17 +00:00
Daniel Rall
99ba8f14d5
CAUSE_METHOD_NAMES: Repurposed CAUSE_METHOD_NAME to be a list of
...
method names which may yield a wrapped exception.
getCause(Throwable): Now just wraps getCause(Throwable, String[]),
passing in CAUSE_METHOD_NAMES as its list of method names.
getCause(Throwable, String[]): Refactored code extracted from
getCause(Throwable) which looks at a list of method names, plus a
"detail" field.
getCauseUsingMethodName(): Swapped parameter order for consistency.
getCauseUsingFieldName(): New method which introspects fields instead
of methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136967 13f79535-47bb-0310-9956-ffa450edef68
2002-08-14 23:08:28 +00:00
Daniel Rall
6fdd16815a
getCause(Throwable): Refactored into two methods which are called
...
internally. This will allow more cause method names to be added with
ease.
getCauseUsingWellKnownTypes(Throwable): Extracted from getCause().
getCauseUsingMethodName(String, Throwable): Extracted from getCause().
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136966 13f79535-47bb-0310-9956-ffa450edef68
2002-08-14 21:05:19 +00:00
Henri Yandell
f7c60dc9f6
Checked back in for consideration in 1.0
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136965 13f79535-47bb-0310-9956-ffa450edef68
2002-08-14 04:51:28 +00:00
Daniel Rall
f740ef8893
getCause(Throwable): Added detection of SQLException and its
...
getNextException() method pointed out by Costin M., Paul Jack, and
Nicola Ken Barozzi. They've also suggested some more general patterns
which we're discussing the addition of on the
commons-dev@jakarta.apache.org list.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136964 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 19:58:49 +00:00
Daniel Rall
72200fffeb
getCause(Throwable): Adjusted JavaDoc of method to note the return
...
type of the getCause() method it checks for.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136963 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 18:19:06 +00:00
Daniel Rall
d5525cc4c0
getCause(Throwable): Perform a softer check on the return type of the
...
argument's getCause() method, doing isAssignableFrom() instead of a
hard memory address comparison.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136962 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 18:17:39 +00:00
Daniel Rall
6053ce341f
Added a utility for examining Throwable objects, as proposed by Costin
...
<costinm@covalent.net> and Henri Yandell <bayard@apache.org>. Comes complete
with a full suite of tests for initial functionality.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136961 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 18:05:58 +00:00
Stephen Colebourne
ce06610103
Add new Enum class (similar to enum in C) plus associated Utils and tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136958 13f79535-47bb-0310-9956-ffa450edef68
2002-08-11 23:17:54 +00:00
Daniel Rall
1ca31bba23
CONSTANT: Adjusted documentation, making it into JavaDoc. Incidently,
...
this constant could use a more descriptive name which better indicates
its use.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136957 13f79535-47bb-0310-9956-ffa450edef68
2002-08-11 17:52:21 +00:00
Stephen Colebourne
6b2b84f0e7
Add HashCodeUtilsTest
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136955 13f79535-47bb-0310-9956-ffa450edef68
2002-08-10 12:13:28 +00:00
Stephen Colebourne
1c15cb14c0
Test HashCodeUtils - a utility to build good hashCodes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136954 13f79535-47bb-0310-9956-ffa450edef68
2002-08-10 12:13:10 +00:00
Stephen Colebourne
25508b395d
Add HashCodeUtils - a utility to build good hashCodes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136953 13f79535-47bb-0310-9956-ffa450edef68
2002-08-10 12:12:49 +00:00
Henri Yandell
477290cb92
Added a stackTrace method. Possibly needs renaming. It's in common use in
...
other Jakarta projects such as Ant. Turns a Throwable into a String.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136952 13f79535-47bb-0310-9956-ffa450edef68
2002-08-01 20:15:43 +00:00
Steven Caswell
58503e7eec
updated tests to reflect the following changes:
...
deprecated method getLength(), replaced with getThrowableCount();
deprecated indexOfThrowable(int, Class), replaced with indexOfThrowable(Class, int) to make signature consistent with other APIs;
changed functionality of methods that receive an index argument to throw an IndexOutOfBoundsException if the index is specified incorrectly, rather than absorbing invalid indices silently, to bring in line with the String API
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136951 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 20:30:58 +00:00
Steven Caswell
e0340c8969
deprecated method getLength(), replaced with getThrowableCount();
...
deprecated indexOfThrowable(int, Class), replaced with indexOfThrowable(Class, int) to make signature consistent with other APIs;
changed functionality of methods that receive an index argument to throw an IndexOutOfBoundsException if the index is specified incorrectly, rather than absorbing invalid indices silently, to bring in line with the String API
cleaned up javadoc;
rearranged methods alphabetically
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136950 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 20:30:10 +00:00
Steven Caswell
b6302ed270
updated e-maill address for Steven Caswell
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136949 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 19:46:38 +00:00
Henri Yandell
9182104b3d
Changed the javadoc on this one. Randomness stuff came solely from GenJava
...
library.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136946 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 14:05:04 +00:00
Daniel Rall
e950d9b37e
Removed two broken methods from StringUtils. Since a beta has gone out,
...
this is not good practice. However, since 1.0 final has not yet been
released, it is out-weighed by the trade off of releasing code that just
plain doesn't work.
Use str.getBytes(encoding) in place of convertUnicodeToNative().
Use new String(byte[], encoding) in place of convertNativeToUnicode().
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136945 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 01:40:11 +00:00
Henri Yandell
80d827fd89
Added a concatenate method. While this is just a join with a "" delimiter,
...
the Avalon StringUtil shows that this is a valid way of looking at the
functionality.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136939 13f79535-47bb-0310-9956-ffa450edef68
2002-07-23 05:21:28 +00:00
Henri Yandell
46872f9f52
Moved deleteWhitespace from CharSetUtils to StringUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136938 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 20:19:50 +00:00
Henri Yandell
97b5ac9b4a
Added a deleteWhitespace method as Jakarta.Avalon has a need for this.
...
Should this go on StringUtils though.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136937 13f79535-47bb-0310-9956-ffa450edef68
2002-07-21 20:14:14 +00:00
Henri Yandell
f0a5f0e8aa
Added another test to show that I can pass in delimiters that don't appear
...
in the string I'm stripping.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136935 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 04:05:57 +00:00
Henri Yandell
e488b7b892
stripStart and stripEnd methods changed to fulfill their javadoc.
...
Passing in strip("-+-+FOO---", "+-") will result in FOO.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136934 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 04:04:45 +00:00
Henri Yandell
6627f7ad8f
Initial copy from jakarta-commons-sandbox
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136932 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 03:35:56 +00:00