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
Daniel Rall
aef2306967
Compile the test cases without deprecation warnings, since we are
...
testing deprecated methods in the exception sub-package.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136960 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 17:56:45 +00:00
Stephen Colebourne
6f17f419e0
Add new Enum class tests to build xml
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136959 13f79535-47bb-0310-9956-ffa450edef68
2002-08-11 23:20:09 +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
Jason van Zyl
f7a767aabd
o using the parent project.xml
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136948 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 19:07:07 +00:00
Jason van Zyl
44c94d5af1
o adding .txt extension to keep windows and checkstyle happy.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136947 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 18:58:35 +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
Daniel Rall
742a42dbf3
Added myself to commiters list.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136944 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 01:14:28 +00:00
Henri Yandell
a0cc54bb24
Adding Lang maven POM.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136943 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 00:41:52 +00:00
Henri Yandell
9c8d148c74
wrote a release text.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136941 13f79535-47bb-0310-9956-ffa450edef68
2002-07-25 22:44:29 +00:00
Henri Yandell
7fa4ee3ce4
changed release info and added steven caswell as a committer.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136940 13f79535-47bb-0310-9956-ffa450edef68
2002-07-25 22:18:30 +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
df7a930dcf
Class names updated and new classes added.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136936 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 04:27:31 +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
f01f3e8d3f
removed my junit location :)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136933 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 03:39:48 +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
No No
750a21e864
New repository initialized by cvs2svn.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136931 13f79535-47bb-0310-9956-ffa450edef68
2002-07-19 03:35:56 +00:00