Stephen Colebourne
83dd0ea7b8
Add and rework isEmpty, isNotEmpty, isEmptyTrimmed, isNotEmptyTrimmed
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137417 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:26:22 +00:00
Henri Yandell
eadb45d1a7
Javadoc fixes. Shouldn't have been anything other than javadoc changes in this.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137416 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:25:06 +00:00
Henri Yandell
99a9ac4d5e
Javadoc fixes and a refactoring to use StringUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137415 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:22:46 +00:00
Henri Yandell
1dc0785f8e
Javadoc fixes and removal of a wildcard import.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137414 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:21:11 +00:00
Stephen Colebourne
80b9159298
Add indexOf for primitive arrays
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137413 13f79535-47bb-0310-9956-ffa450edef68
2003-07-12 10:09:40 +00:00
Stephen Colebourne
0aa557cd56
Fix to correctly identify the original author
...
from Brian S O'Neill
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137412 13f79535-47bb-0310-9956-ffa450edef68
2003-07-12 08:26:22 +00:00
Henri Yandell
2a3cfe9713
Removed wordWrap method as it doesn't offer anything that the wrapText method doesn't have.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137408 13f79535-47bb-0310-9956-ffa450edef68
2003-07-12 03:06:23 +00:00
Henri Yandell
1f09b46037
Removed the unnecessary 'A' from join's char separator javadocs.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137406 13f79535-47bb-0310-9956-ffa450edef68
2003-07-09 23:54:16 +00:00
Stephen Colebourne
d5c3e4d3fe
Javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137405 13f79535-47bb-0310-9956-ffa450edef68
2003-07-08 22:06:35 +00:00
Henri Yandell
d2d4b25665
Cleaned up import.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137403 13f79535-47bb-0310-9956-ffa450edef68
2003-07-08 06:01:09 +00:00
Henri Yandell
5c3606e55e
Great set of javadoc improvements from Fredrik.
...
Also an optimisation to StringUtils.leftPad/rightPad.
Submitted by: Fredrik Westermarck
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137402 13f79535-47bb-0310-9956-ffa450edef68
2003-07-08 05:59:58 +00:00
Alex Chaffee
6410b62b3c
javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137394 13f79535-47bb-0310-9956-ffa450edef68
2003-07-05 23:37:30 +00:00
Henri Yandell
35f0c6f6ca
Fixed Javadoc return tag.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137393 13f79535-47bb-0310-9956-ffa450edef68
2003-07-05 19:04:31 +00:00
Alex Chaffee
8df8ade07c
testEscapeSql
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137391 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:05:45 +00:00
Alex Chaffee
39acbece80
introducing utility class from Justin Couch
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137390 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:05:17 +00:00
Alex Chaffee
d8589d902c
testHtml40Nbsp
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137389 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:04:33 +00:00
Alex Chaffee
49f48c2df4
cleaning up
...
use restructured EntityMap classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137388 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:03:39 +00:00
Alex Chaffee
670b91caba
comments
...
refactoring
add escapeSql method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137387 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:03:15 +00:00
Alex Chaffee
e4aab311f0
comments
...
restructure EntityMap inner classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137386 13f79535-47bb-0310-9956-ffa450edef68
2003-06-29 03:02:29 +00:00
Stephen Colebourne
55be165435
Add min/max by array functions
...
bug 21068, from Matthew Hawthorne
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137385 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 18:42:04 +00:00
Stephen Colebourne
9cfd4409f9
Add XOR methods
...
bug 21068, from Matthew Hawthorne
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137384 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 18:16:03 +00:00
Stephen Colebourne
48cea59f38
Add primitive/object conversions for all types
...
bug 21068, from Matthew Hawthorne
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137383 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 18:01:19 +00:00
Stephen Colebourne
008d16ed5b
Removed unused variable
...
bug 21099, from Janek Bogucki
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137382 13f79535-47bb-0310-9956-ffa450edef68
2003-06-28 17:49:53 +00:00
Stephen Colebourne
a5c0361ee5
Add primitive boolean/object conversions
...
Bug 21068, from Matthew Hawthorne
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137381 13f79535-47bb-0310-9956-ffa450edef68
2003-06-25 23:33:47 +00:00
Stephen Colebourne
2878a430c1
Add new empty array constants for number objects
...
Declare variables as final
Fix null behaviour to be null tolerant
Javadoc null behaviour
Fix formatting
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137380 13f79535-47bb-0310-9956-ffa450edef68
2003-06-25 23:32:08 +00:00
Stephen Colebourne
2d06a7ce86
NumberUtils moved to math subpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137379 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 21:14:51 +00:00
Stephen Colebourne
9949f09089
Relax tests so it passes more often
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137378 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 21:13:55 +00:00
Stephen Colebourne
7f89ab6f10
Deprecate escape, and comment escape and unescape fully
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137377 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 08:15:15 +00:00
Henri Yandell
da306cb3c8
Deprecated unescape method.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137376 13f79535-47bb-0310-9956-ffa450edef68
2003-06-24 02:55:17 +00:00
Stephen Colebourne
402c8e0846
Prepare DateUtils for 2.0 release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137375 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 23:41:10 +00:00
Stephen Colebourne
3bfc04d7a3
Add package level javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137374 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 22:37:39 +00:00
Stephen Colebourne
5e98ba2ee9
Update javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137373 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 22:36:50 +00:00
Gary D. Gregory
d5ee2f1ca5
PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21021 .
...
Reduce object creation in ToStringBuilder. Applied the patch in spirit but not in detail since I used
"BooleanUtils.toBooleanObject(fullDetail)" instead of "fullDetail ? Boolean.TRUE : Boolean.FALSE"
to reduce code duplication.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137372 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 17:04:39 +00:00
Henri Yandell
80da42a808
Handles empty string now as well.
...
Submitted by: Mark Ford
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137371 13f79535-47bb-0310-9956-ffa450edef68
2003-06-23 03:51:13 +00:00
Henri Yandell
feac7d3bc7
Bug #20652 fixed.
...
Submitted by: Fredrik Westermarck
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137370 13f79535-47bb-0310-9956-ffa450edef68
2003-06-21 22:24:56 +00:00
Stephen Colebourne
0525da4d6c
Remove unused code
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137369 13f79535-47bb-0310-9956-ffa450edef68
2003-06-20 08:03:51 +00:00
Henri Yandell
eeb224c2a6
Javadoc fix.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137368 13f79535-47bb-0310-9956-ffa450edef68
2003-06-16 02:28:16 +00:00
Stephen Colebourne
3e480bf2ad
Add new class that tests all the TestSuites in one go
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137367 13f79535-47bb-0310-9956-ffa450edef68
2003-06-10 06:20:19 +00:00
Stephen Colebourne
c09f7744fb
Change scope of methods from package to public
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137366 13f79535-47bb-0310-9956-ffa450edef68
2003-06-10 06:16:54 +00:00
Stephen Colebourne
8f45918465
Ensure that RandomStringUtils returns all expected characters
...
bug 20592, reported/patched by Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137365 13f79535-47bb-0310-9956-ffa450edef68
2003-06-09 21:36:03 +00:00
Stephen Colebourne
8955311526
Make package scoped until methods properly designed and implemented
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137364 13f79535-47bb-0310-9956-ffa450edef68
2003-06-09 21:23:14 +00:00
Stephen Colebourne
fdbe8e7849
DateFormatUtils should not be final
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137363 13f79535-47bb-0310-9956-ffa450edef68
2003-06-09 21:22:31 +00:00
Stephen Colebourne
17b30f39f3
Fix javadoc comment
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137362 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 23:27:26 +00:00
Stephen Colebourne
73ee6c3d27
Rework time package in preparation for 2.0 release
...
DateUtils split to DateFormatUtils and DurationFormatUtils
CalendarUtils renamed to DateUtils
StopWatch time format method moved to DurationFormatUtils
Tests updated and pass
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137361 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 23:14:23 +00:00
Stephen Colebourne
9bb3f9b9a3
Organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137360 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:19:43 +00:00
Stephen Colebourne
4920a1da32
Fix bug in NumberUtils where '12a' was treated as a number.
...
bug 20538, reported/fix by Eric Pugh/Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137359 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:14:01 +00:00
Stephen Colebourne
4c50eca073
Ensure javadoc is clear about when deprecated methods will be removed.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137358 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:10:54 +00:00
Stephen Colebourne
fd6d8a4a3d
Tidy comments
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137357 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:09:36 +00:00
Robert Burrell Donkin
268de4eadf
Fixed a problem with changed capitalization in test case.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137356 13f79535-47bb-0310-9956-ffa450edef68
2003-06-06 07:04:12 +00:00
Gary D. Gregory
b3bf560628
Minor Javadoc fix and improvements.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137355 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 20:49:59 +00:00
Gary D. Gregory
0cfce2932d
Refactor code in ToStringBuilder.reflectionToString(...) into a new subclass called ReflectionToStringBuilder.
...
All of the ToStringBuilder.reflectionToString(...) forward their calls to equivalent methods in ReflectionToStringBuilde.
ReflectionToStringBuilder can be subclassed to provide Field or value filtering.
Since the unit tests exercis ToStringBuilder.reflectionToString(...) which then forwards those calls to ReflectionToStringBuilder, and ReflectionToStringBuilder does not provide new features (yet), there are no new unit test cases (yet).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137354 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 20:15:32 +00:00
Gary D. Gregory
a0be4d2757
Refactor code in ToStringBuilder.reflectionToString(...) into a new subclass called ReflectionToStringBuilder.
...
All of the ToStringBuilder.reflectionToString(...) forward their calls to equivalent methods in ReflectionToStringBuilde.
ReflectionToStringBuilder can be subclassed to provide Field or value filtering.
Since the unit tests exercis ToStringBuilder.reflectionToString(...) which then forwards those calls to ReflectionToStringBuilder, and ReflectionToStringBuilder does not provide new features (yet), there are no new unit test cases (yet).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137353 13f79535-47bb-0310-9956-ffa450edef68
2003-06-03 03:51:56 +00:00
Gary D. Gregory
3bcf738220
Sort Members (Eclipse).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137352 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 22:22:49 +00:00
Gary D. Gregory
e7d0572cf8
Include a Javadoc overview.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137351 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 18:44:36 +00:00
Gary D. Gregory
9503cd07e9
Normalize Javadocs.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137350 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 17:16:11 +00:00
Gary D. Gregory
bd2144eb32
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137349 13f79535-47bb-0310-9956-ffa450edef68
2003-05-31 01:02:33 +00:00
Gary D. Gregory
7722d187fc
Sorted members (this also give us the Javadoc 'Field Details' section in alphabetical order).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137348 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 01:15:53 +00:00
Gary D. Gregory
4a6b9f65d0
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137347 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 01:12:26 +00:00
Gary D. Gregory
68696f5232
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137346 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 01:00:24 +00:00
Gary D. Gregory
e36ffc4ce7
Make the Standard Doclet version 1.4.1 not complain WRT '.'s.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137345 13f79535-47bb-0310-9956-ffa450edef68
2003-05-29 21:02:53 +00:00
Gary D. Gregory
41136c4f00
Create 'public static final' constants for the package separator and inner class separator characters/Strings.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137344 13f79535-47bb-0310-9956-ffa450edef68
2003-05-28 16:20:31 +00:00
Gary D. Gregory
06f93f2551
Removed unused import.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137343 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 19:24:15 +00:00
Alex Chaffee
1d44ada55f
making constants final (XML, HTML32, HTML40)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137342 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 15:28:38 +00:00
Alex Chaffee
bd3497be79
fixed typo
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137341 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 15:21:02 +00:00
Alex Chaffee
1921f71345
continuing performance improvements-- now uses a binary lookup
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137340 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 15:11:36 +00:00
Stephen Colebourne
253e00baa9
Add OS name parsing to SystemUtils
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137339 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 14:34:14 +00:00
Alex Chaffee
0766ea1f69
initial performance testing for Entities
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137338 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 13:29:44 +00:00
Stephen Colebourne
e2211f3db6
Add SystemUtils tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137337 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 12:11:02 +00:00
Stephen Colebourne
d68d21856d
Update to protect against NPEs
...
Tidy up Java version code
Add Java version int to supplement float
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137336 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 12:06:37 +00:00
Alex Chaffee
bf37701b41
add EntitiesTest to LangTestSuite
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137334 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 04:38:05 +00:00
Alex Chaffee
5203441765
refactoring Entities object in preparation for optimization
...
add unit tests for Entities class
move escape and unescape methods into Entities class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137333 13f79535-47bb-0310-9956-ffa450edef68
2003-05-24 04:35:07 +00:00
Stephen Colebourne
e7d21364b5
Update licence and Organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137331 13f79535-47bb-0310-9956-ffa450edef68
2003-05-22 22:00:06 +00:00
Stephen Colebourne
2d97e55623
Reworked class to avoid security exceptions
...
from Michael Becke
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137330 13f79535-47bb-0310-9956-ffa450edef68
2003-05-22 21:51:26 +00:00
Stephen Colebourne
24b9603769
Update licence and Organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137329 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:49:15 +00:00
Stephen Colebourne
9a05c7404c
Update testing for FastDateFormat
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137328 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:41:21 +00:00
Stephen Colebourne
a4452d34e1
Update licence
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137327 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:40:24 +00:00
Stephen Colebourne
6d4516cccc
Update class and add javadoc ready for release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137326 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:39:53 +00:00
Stephen Colebourne
378587735d
Change version number ready for release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137325 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:37:20 +00:00
Gary D. Gregory
0cd7de5283
Fix javadoc, a <u> was used instead of a <p>.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137324 13f79535-47bb-0310-9956-ffa450edef68
2003-05-20 21:15:19 +00:00
Gary D. Gregory
199ec3aa9c
Fix javadoc, was missing a </code>.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137323 13f79535-47bb-0310-9956-ffa450edef68
2003-05-20 21:11:07 +00:00
Gary D. Gregory
cc411622e9
Improve performance (by ~10% on Sun Java 1.3.1_08) for the method escapeEntities(String str, Entities entities) by using the existing StringBuffer instead of String + to the same buffer.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137322 13f79535-47bb-0310-9956-ffa450edef68
2003-05-18 00:10:38 +00:00
Stephen Colebourne
713af7b691
Remove functor subpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137321 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:17:35 +00:00
Stephen Colebourne
e329c3556c
Organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137320 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:08:31 +00:00
Stephen Colebourne
70cab8f8e6
Change Identifier generation code to be independent of functors
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137319 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:07:38 +00:00
Gary D. Gregory
9e0419790b
Javadoc only. Provide more uniform comments.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137318 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 19:00:07 +00:00
Stephen Colebourne
6098de63f7
Add since tags
...
Update javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137317 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 16:14:17 +00:00
Henri Yandell
e2c43be20f
Commonly usable enhancements to some of the Exceptions found in java.lang.
...
Submitted by: Matthew Hawthorne
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137316 13f79535-47bb-0310-9956-ffa450edef68
2003-05-15 04:05:11 +00:00
Gary D. Gregory
794221a9ca
Be a little more precise in the IS_JAVA_* javadocs.
...
Make JAVA_* javadocs read more like sentences.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137315 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 17:13:00 +00:00
Henri Yandell
82c5dada6f
Bug #14357 fixed. Mohan's patch makes removeCommonFrames public, and adds an
...
isThrowableNested to ExceptionUtils.
It adds static attributes to decide if the stack trace should be topDown
and if the stack traces should be trimmed on repeat. If running 1.4 or higher,
it uses the default stack trace, and the functionality of NestableError,
NestableException and NestableRuntimeException getMessage()s all change.
Accompanying these changes are numerous tests.
Submitted by: Mohan Kishore
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137314 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:59:13 +00:00
Henri Yandell
9d8cc76413
Bug #19880 fixed. RandomStringUtils.random(int count, char[] set)
...
doesn't include the last character in set.
Submitted by: Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137313 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:50:43 +00:00
Henri Yandell
9f2efa84a2
Bug #19756 dealt with.
...
Submitted by: Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137312 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:41:26 +00:00
Henri Yandell
3734b1e3ad
Block nextInt(int) and nextLong(long) from being <= 0.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137311 13f79535-47bb-0310-9956-ffa450edef68
2003-05-12 04:41:40 +00:00
Henri Yandell
d129fa0e4a
Fixed bug reported by Phil Steitz in which poorly placed casting was
...
making all random methods return 0 :)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137310 13f79535-47bb-0310-9956-ffa450edef68
2003-05-12 04:29:26 +00:00
Henri Yandell
77ce33145f
Empty constructor stops it calling setSeed in Random's empty constructor.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137309 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 19:14:01 +00:00
Henri Yandell
d99a9fcfb9
RandomUtils functionality moved to JVMRandom. RandomUtils then becomes a proper XxxUtils class.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137308 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 15:09:19 +00:00
Gary D. Gregory
0de135be9c
Fix broken links. Use thrid person in comment. Use @see tags.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137307 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 22:10:40 +00:00
Stephen Colebourne
81b579a7eb
Add explicit public constructor
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137306 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 16:17:05 +00:00
Gary D. Gregory
8ba5fec31d
Address Checkstyle report issues as reported by Henri ( http://www.generationjava.com/maven/jakarta-commons/lang/ )
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137303 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 09:12:16 +00:00
Gary D. Gregory
d63c271a8c
Address Checkstyle report issues as reported by Henri ( http://www.generationjava.com/maven/jakarta-commons/lang/ )
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137302 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 07:01:47 +00:00
Henri Yandell
9263c5eda7
Put } and else on the same line.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137301 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 04:57:19 +00:00
Henri Yandell
5f0560cb60
Fixed Antony's name. He wrote the original escape() method.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137300 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 16:31:45 +00:00
Henri Yandell
eb6a2942c0
Tenfold improvement in performance for leftPad, rightPad and repeat when repeat is over a String of length 1, by implementation of a padding method. The padding method is kept private for the moment.
...
Also a modification of containsOnly so it has a partner method indexOfAnyBut. Unit Test added for indexOfAnyBut.
Submitted by: Robert Simpson
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137299 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 04:37:33 +00:00
Henri Yandell
92a9a68b72
Integrated WordWrapUtils testing in.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137298 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 14:29:01 +00:00
Henri Yandell
fb2548b304
Return of WordWrapUtils, fresh with bugs fixed in StringTaglib. Part of the
...
reason for dropping it originally was that I knew my methods [wordWrap rather than wrapText or wrapLine] had nasty die-a-death bugs and hadn't had time to fix them. These got fixed as a part of String Taglib so I'm now personally happy with the code. As happy as you can ever be anyway without more tests to hurt it.
Submitted by: Henning Schmiedehausen
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137297 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 14:28:41 +00:00
Gary D. Gregory
408466f404
Remove unused imports (with agreement on shared clean up chores from Alex).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137294 13f79535-47bb-0310-9956-ffa450edef68
2003-04-10 00:01:21 +00:00
Alex Chaffee
49d5add385
improving javadoc
...
added apos entity to XML escape/unescape
add test for "unknown entity" behavior
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137293 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 21:30:18 +00:00
Alex Chaffee
69cc0e40e6
Extracted Entities class (instead of inner class)
...
Added support for full HTML 4.0 entity set
Separated XML, ISO8859-1 (HTML 3.2), and HTML 4.0 entities inside Entities object
Added escapeXml and unescapeXml public API methods
Escape now uses entities for values 0x80 or greater (previously 0x100)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137292 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 20:55:33 +00:00
Alex Chaffee
6af3b80369
Escaping unicode uses capital letters e.g. \uABCD
...
Found and fixed bug when unicode character is at the end of a string to unescape
Added unit tests for above bug to both StringUtilsTest and StringEscapeUtilsTest
StringUtils.[un]escape now call StringEscapeUtils.[un]escapeJava
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137291 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 18:45:29 +00:00
Alex Chaffee
2e862e0c47
make test strings 7-bit clean (bug 18836)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137290 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 17:30:29 +00:00
Henri Yandell
3ac32dd142
Patch for RandomString bug in which counts of 0 or negative counts would cause array exceptions.
...
Submitted by: ville.skytta@iki.fi (Ville Skytt�)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137289 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 14:13:03 +00:00
Gary D. Gregory
082cde8df8
Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137288 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 01:08:30 +00:00
Gary D. Gregory
e5c8e4a225
Fix some Javadoc {@link}s and clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137287 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 01:04:48 +00:00
Gary D. Gregory
f810dc3645
Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137286 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 00:07:50 +00:00
Gary D. Gregory
ccde85985d
Removed unused import.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137285 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 23:45:16 +00:00
Gary D. Gregory
6a1dc2997c
Improve Javadoc (I hope!).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137284 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 22:36:04 +00:00
Gary D. Gregory
e180daa748
Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137283 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 22:34:53 +00:00
Gary D. Gregory
cdf3c5161e
Fix a missing javadoc </code> end tag.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137282 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 20:44:10 +00:00
Henri Yandell
076ebc6d17
A Utils class that wraps java.lang.Math.random() and offers up methods
...
similar to that found on the java.util.Random class. Effectively this class
contains the methods that ought to be found on java.lang.Math.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137281 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 16:28:15 +00:00
Alex Chaffee
4e443f9cfc
added some more entities from HTML 4.0 spec, refactored (Entities class), initialize maps on demand
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137280 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 06:14:46 +00:00
Henri Yandell
965077e483
Put myself in as author of escape/unescape and removed unused imports.
...
Really just to test eclipse/cvs on OS X.
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137279 13f79535-47bb-0310-9956-ffa450edef68
2003-04-01 17:19:28 +00:00
Alex Chaffee
4b0aeca9f2
StringEscapeUtils: escape/unescape Java/JavaScript/HTML
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137278 13f79535-47bb-0310-9956-ffa450edef68
2003-03-31 03:53:52 +00:00
Alex Chaffee
5b83eb9358
changed chomp() to match Perl
...
deprecated chomp* methods in favor of new slice methods
improved unit tests and documentation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137277 13f79535-47bb-0310-9956-ffa450edef68
2003-03-29 16:17:21 +00:00
Gary D. Gregory
edb0e8d284
Fix bug 16676: StackOverflow due to ToStringBuilder
...
(http://issues.apache.org/bugzilla/show_bug.cgi?id=16676 )
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137276 13f79535-47bb-0310-9956-ffa450edef68
2003-03-27 08:55:22 +00:00
Stephen Colebourne
ab7745f98e
Deprecate clean() now trimToEmpty() is added
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137275 13f79535-47bb-0310-9956-ffa450edef68
2003-03-25 00:15:58 +00:00
Stephen Colebourne
67bdcb0f1a
Add trimToNull
...
Add trimToEmpty
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137274 13f79535-47bb-0310-9956-ffa450edef68
2003-03-24 00:47:02 +00:00
Stephen Colebourne
3c1f752b2a
Update containsOnly
...
Add containsNone
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137273 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 21:52:31 +00:00
Stephen Colebourne
3f8418c654
Update licence date to 2003
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137272 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 21:51:51 +00:00
Stephen Colebourne
bdf11dfa91
Update licence date to 2003
...
Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137271 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 18:05:44 +00:00
Stephen Colebourne
637d681789
Update licence date to 2003
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137270 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 18:02:29 +00:00
Stephen Colebourne
dd9f463d68
Remove reverseArray as reverse already exists!
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137269 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 17:57:42 +00:00
Stephen Colebourne
eb68e2a6f2
Update licence date to 2003
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137268 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 17:36:16 +00:00
Henri Yandell
f64ecf1cd7
Added a CharSetUtils.keep method which is the reverse of the delete method.
...
In part, it fulfills the StringUtils.getNumerics(String) method that Bug
#13771 requests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137267 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 05:50:51 +00:00
Henri Yandell
8e54ccc4be
Bug 17882 submitted [by hand as the patch was out of date].
...
join and split now take chars as separators as well as Strings.
Submitted by: Henning P. Schmiedehausen
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137266 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 05:26:23 +00:00
Henri Yandell
ae7c590d59
Moved reverseArray method from a private method in StringUtils into ArrayUtils.
...
This method exists in Jakarta Collection, so is a duplicate, but it belongs in
ArrayUtils.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137265 13f79535-47bb-0310-9956-ffa450edef68
2003-03-23 04:58:47 +00:00
Gary D. Gregory
1a3ba6816d
Remove unused variables in the testMixedArray method.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137264 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 05:41:23 +00:00
Gary D. Gregory
2ba51c13fb
Apply patch for bug 17250 ( http://issues.apache.org/bugzilla/show_bug.cgi?id=17250 ) with some additional minor improvements.
...
Added tests for reflection methods with array arguments.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137263 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 05:33:35 +00:00
Gary D. Gregory
4ecadc12ba
Apply patch for bug 17250 ( http://issues.apache.org/bugzilla/show_bug.cgi?id=17250 ) with some additional minor improvements.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137262 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 05:32:11 +00:00
Gary D. Gregory
804ccc397d
Removed an unused import statement.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137261 13f79535-47bb-0310-9956-ffa450edef68
2003-03-20 02:50:42 +00:00
Henri Yandell
47fc18a02e
Added a test case for isNestedThrowable
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137260 13f79535-47bb-0310-9956-ffa450edef68
2003-03-18 06:14:23 +00:00
Henri Yandell
ff33134d11
Added getFullStackTrace and isNestedThrowable. Listed as Bug #16689
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137259 13f79535-47bb-0310-9956-ffa450edef68
2003-03-18 05:10:48 +00:00
Alex Chaffee
a50e6215b2
Purpletech code import: abbreviate, difference, differenceAt
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137258 13f79535-47bb-0310-9956-ffa450edef68
2003-03-17 05:28:37 +00:00
Stephen Colebourne
e8a0b41aa3
Remove unused import
...
from Gary Gregory
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137257 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 22:50:21 +00:00
Stephen Colebourne
285f6016bc
Remove erroneous abstract, Comparable and Serializable keywords
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137256 13f79535-47bb-0310-9956-ffa450edef68
2003-02-22 20:42:36 +00:00
Stephen Colebourne
5b89f3d89a
Use more appropriate scoping for inner class
...
from Gary Gregory
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137255 13f79535-47bb-0310-9956-ffa450edef68
2003-02-22 20:19:16 +00:00
Stephen Colebourne
bb7e7e1708
Use default HashMap sizes as this is better across JDK versions
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137253 13f79535-47bb-0310-9956-ffa450edef68
2003-02-06 20:13:07 +00:00
Stephen Colebourne
e6f11e0ea0
Fix javadoc from checkstyle
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137252 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 22:50:31 +00:00
Stephen Colebourne
2023467c05
Fix licences, dates and since tags
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137251 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 22:19:33 +00:00
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