Commit Graph

3609 Commits

Author SHA1 Message Date
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 410bc5a289 Removed identityToString todo
Removed issues
Added ArrayUtils todo


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137040 13f79535-47bb-0310-9956-ffa450edef68
2002-09-18 19:50:35 +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 9b20a5adec Update for checked in ToStringBuilder
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137035 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 22:10:47 +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 b1ad52a457 Need an unescape.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137030 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 10:58:37 +00:00
Henri Yandell 81cf7d8be9 Added some StringUtils todos.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137029 13f79535-47bb-0310-9956-ffa450edef68
2002-09-17 10:30:48 +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 1369a1bf9e Updated status as builder package evolves
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137027 13f79535-47bb-0310-9956-ffa450edef68
2002-09-15 10:29:25 +00:00
Stephen Colebourne 90f6bd5b91 Added Steve Downey as a contributor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137026 13f79535-47bb-0310-9956-ffa450edef68
2002-09-15 10:28:35 +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 93e8c0a19d Update for new builder subpackage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137021 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 22:15:44 +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
Stephen Colebourne 370914eb5a Update testing for ant
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137014 13f79535-47bb-0310-9956-ffa450edef68
2002-09-12 21:58:15 +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 6a28a47e51 Updated my personal details
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137004 13f79535-47bb-0310-9956-ffa450edef68
2002-09-08 15:58:02 +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
Henri Yandell 763d50ad44 made it run TestCases as well as Tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136998 13f79535-47bb-0310-9956-ffa450edef68
2002-08-28 06:02:02 +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
Daniel Rall 2789de54dc Added a second action item for exception package tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136995 13f79535-47bb-0310-9956-ffa450edef68
2002-08-26 06:00:32 +00:00
Daniel Rall 9d31e575bd Added action item for exception package tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136994 13f79535-47bb-0310-9956-ffa450edef68
2002-08-26 05:59:42 +00:00
Stephen Colebourne c82320c015 Remove StringUtils constructors issue comment
Add todo list


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@136993 13f79535-47bb-0310-9956-ffa450edef68
2002-08-25 22:18:24 +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