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
Jason van Zyl
6f78d8a02b
o The CalendUtilsTest fails due to what appears to be some TZ problems.
...
I'm right on the cusp for the last Sunday the test is trying to find and
it gets the wrong day. Excluding it for now from the test because the
test is not reliable yet.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137245 13f79535-47bb-0310-9956-ffa450edef68
2003-02-03 00:01:07 +00:00
Henri Yandell
6954fa7b30
What? Everyone doesn't have a /usr/local/javalib/ directory?
...
My cockup.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137244 13f79535-47bb-0310-9956-ffa450edef68
2003-02-02 16:52:40 +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
b6f8afe153
Added the date to the maven site.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137242 13f79535-47bb-0310-9956-ffa450edef68
2003-02-02 09:16:32 +00:00
Henri Yandell
3c27be2435
Updated to reflect next version's dev.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137241 13f79535-47bb-0310-9956-ffa450edef68
2003-02-02 09:11:55 +00:00
Henri Yandell
c6dcdde007
Added a couple of StringUtils todos.
...
Reworded the Action Items to indicate that not all are considered to definitely be in scope for Lang.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137240 13f79535-47bb-0310-9956-ffa450edef68
2003-02-02 09:10:24 +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