Commit Graph

1187 Commits

Author SHA1 Message Date
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