Commit Graph

6926 Commits

Author SHA1 Message Date
Henri Yandell 8ebe30ba30 Integrated the new functor package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137112 13f79535-47bb-0310-9956-ffa450edef68
2002-11-05 16:45:45 +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
Henri Yandell c31ee55a2a 1.0'd.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137086 13f79535-47bb-0310-9956-ffa450edef68
2002-10-04 03:23:18 +00:00
Henri Yandell 8868590669 Updated to latest 1.0 release.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137085 13f79535-47bb-0310-9956-ffa450edef68
2002-10-04 03:22:47 +00:00
Henri Yandell cba6c55b52 Moved to RC2
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137083 13f79535-47bb-0310-9956-ffa450edef68
2002-10-01 23:01:55 +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 1fe30c3a31 Added latest issues from Steve Downey's emails.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137075 13f79535-47bb-0310-9956-ffa450edef68
2002-09-29 07:24:20 +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
Steven Caswell 34d80b34e3 Added StringUtils defaultString variation TODO
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137069 13f79535-47bb-0310-9956-ffa450edef68
2002-09-27 19:24:11 +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
Stephen Colebourne 81096b320b Correct the enum release notes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137066 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 10:29:56 +00:00
Daniel Rall f2970e827e Reverting last commit back to CVS rev 1.3. I would prefer to see the "dist" build target create bundled archives.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137064 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 06:00:30 +00:00
Daniel Rall 357b510dcd All build-generated content should reside under a single directory for easy cleaning.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137063 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 05:57:36 +00:00
Daniel Rall dbb3cbe63c Ignore the generated target/ directory.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137062 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 05:55:31 +00:00
Daniel Rall 0dca928520 Updated the component.version property for [lang] version 1.0-rc1.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137061 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 05:54:54 +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