Commit Graph

689 Commits

Author SHA1 Message Date
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
Stephen Colebourne 9247caa92e Update licence
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137227 13f79535-47bb-0310-9956-ffa450edef68
2003-01-15 22:08:37 +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 6325219185 Moved the enum package to the end so that the others can be tested.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137222 13f79535-47bb-0310-9956-ffa450edef68
2003-01-07 19:56:40 +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 849db69b66 Update to more fully describe the classes in Lang
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137214 13f79535-47bb-0310-9956-ffa450edef68
2002-12-29 22:07:55 +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 01eafff113 Update for math package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137210 13f79535-47bb-0310-9956-ffa450edef68
2002-12-23 00:33:50 +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 efb0f348e6 Update with latest status changes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137202 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 21:11:09 +00:00
Stephen Colebourne 62e0f078ec First version of Lang developers guide
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137201 13f79535-47bb-0310-9956-ffa450edef68
2002-12-22 21:07:35 +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 89959e286b Update to latest status of lang
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137188 13f79535-47bb-0310-9956-ffa450edef68
2002-12-15 19:36:41 +00:00