Commit Graph

763 Commits

Author SHA1 Message Date
Stephen Colebourne a7b55abc7e Change author name (by request)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137718 13f79535-47bb-0310-9956-ffa450edef68
2003-11-30 13:36:08 +00:00
Stephen Colebourne cd7aa49c16 Add description and tests about the perils of nested enums
bug 23374


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137717 13f79535-47bb-0310-9956-ffa450edef68
2003-11-29 15:03:54 +00:00
Stephen Colebourne 55a8a1e34c Add extra factory methods for convenience
bug 23590, from Nikolay Metchev


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137716 13f79535-47bb-0310-9956-ffa450edef68
2003-11-29 13:52:34 +00:00
Stephen Colebourne 2b331390bd Assign authors correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137715 13f79535-47bb-0310-9956-ffa450edef68
2003-11-29 13:24:33 +00:00
Stephen Colebourne 4812bc7c17 Remove end of line spaces
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137714 13f79535-47bb-0310-9956-ffa450edef68
2003-11-29 13:13:32 +00:00
Stephen Colebourne 00db5573e6 Add subArray method to get a portion of an array
from Ash


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137713 13f79535-47bb-0310-9956-ffa450edef68
2003-11-29 12:56:16 +00:00
Gary D. Gregory 4db1390786 Add ToStringStyle.SHORT_PREFIX_STYLE as discussed on commons-dev.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137712 13f79535-47bb-0310-9956-ffa450edef68
2003-11-25 00:53:55 +00:00
Phil Steitz 9ebdce7348 Fixed error in javadoc for StringUtils.split and improved tests.
Pr: 24911
Submitted by Al Chou.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137711 13f79535-47bb-0310-9956-ffa450edef68
2003-11-23 20:44:39 +00:00
Phil Steitz 6b2919f243 Inserted empty logo to elimninate broken image from maven site.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137710 13f79535-47bb-0310-9956-ffa450edef68
2003-11-18 07:03:38 +00:00
Stephen Colebourne 71de3f7ed9 Initial checkin of the Tokenizer class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137709 13f79535-47bb-0310-9956-ffa450edef68
2003-11-17 23:02:18 +00:00
Fredrik Westermarck f6c1ac465f Converting some chars in javadoc into html-enteties.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137708 13f79535-47bb-0310-9956-ffa450edef68
2003-11-04 21:16:34 +00:00
Fredrik Westermarck d0d9170bc0 Using StringUtils.isEmpty() when testing Strings.
Renamed the parameter string to the more commonly used str in removeStart() and removeEnd.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137707 13f79535-47bb-0310-9956-ffa450edef68
2003-11-04 21:00:22 +00:00
Fredrik Westermarck f225551e91 Split a long method declaration into two lines to keep checkstyle happy.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137706 13f79535-47bb-0310-9956-ffa450edef68
2003-11-04 20:31:45 +00:00
Fredrik Westermarck 0531f837cb Using StringUtils.isEmpty() when testing Strings.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137705 13f79535-47bb-0310-9956-ffa450edef68
2003-11-04 20:26:14 +00:00
Phil Steitz d11b056b34 Added maven site xdocs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137704 13f79535-47bb-0310-9956-ffa450edef68
2003-11-04 14:45:23 +00:00
Daniel Rall f9bb3689e9 * src/java/org/apache/commons/lang/exception/ExceptionUtils.java
getCause(Throwable), getCause(Throwable, String[]): Added @since tags.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137703 13f79535-47bb-0310-9956-ffa450edef68
2003-11-04 00:04:40 +00:00
Gary D. Gregory 41ff6f096e javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137702 13f79535-47bb-0310-9956-ffa450edef68
2003-11-03 03:48:59 +00:00
Gary D. Gregory 7f13c39483 Remove convenience toStringWithStatics APIs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137701 13f79535-47bb-0310-9956-ffa450edef68
2003-11-03 00:21:19 +00:00
Stephen Colebourne c8f84f3a22 Move remove code to relevant position in source file
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137700 13f79535-47bb-0310-9956-ffa450edef68
2003-11-01 19:20:35 +00:00
Gary D. Gregory 293c1a7ea6 Added public static String removeEnd(String str, String remove).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137699 13f79535-47bb-0310-9956-ffa450edef68
2003-10-29 02:16:30 +00:00
Gary D. Gregory 576920fa5b Added public static String removeEnd(String str, String remove).
Reimpl'd removeStart.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137698 13f79535-47bb-0310-9956-ffa450edef68
2003-10-29 02:16:15 +00:00
Gary D. Gregory b6bfdf9551 Added public static String removeStart(String str, String remove).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137697 13f79535-47bb-0310-9956-ffa450edef68
2003-10-29 01:50:14 +00:00
Gary D. Gregory b2109c1a4b Javadoc nits.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137696 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 22:27:45 +00:00
Gary D. Gregory 5d13513875 Add support for static field output.
Main points: 

(1) 
Deprecate in ReflectionToStringBuilder:

public static String toString(Object object, ToStringStyle style, boolean outputTransients, boolean outputStatics)

In favor of:

public static String toString(Object object, ToStringStyle style, boolean outputTransients, boolean outputStatics, Class reflectUpToClass)

(2) New convenience methods ReflectionToStringBuilder.toStringWithStatics.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137695 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 22:26:00 +00:00
Gary D. Gregory 667dcaf2ad Javadoc 1.4.2 fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137694 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 21:48:28 +00:00
Stephen Colebourne 39be668fb4 Another contributer
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137693 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 21:10:01 +00:00
Stephen Colebourne 08c8089c0c Enable change of javadoc location by property
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137692 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 21:07:44 +00:00
Stephen Colebourne 72b3bf9b7e More contributers
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137691 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 21:04:14 +00:00
Stephen Colebourne 866d054e1d Add primitiveToWrapper()
bug 23683, from Norm Deane


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137690 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 21:03:44 +00:00
Stephen Colebourne 7cd3c817e1 Javadoc of method contains
bug 23430, from Michael Heuer


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137689 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 20:49:22 +00:00
Stephen Colebourne 85d956d34c Fix javadoc of replace method
bug 24056, from Russell Dittmar


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137688 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 20:40:36 +00:00
Gary D. Gregory 451ae3e4e7 Added JAVA_ENDORSED_DIRS.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137687 13f79535-47bb-0310-9956-ffa450edef68
2003-10-23 03:55:34 +00:00
Stephen Colebourne d776d26889 Improve performance of BooleanUtils.toBoolean(String)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137686 13f79535-47bb-0310-9956-ffa450edef68
2003-10-21 23:23:06 +00:00
Stephen Colebourne 25a4549ceb Tweak deleteWhitespace to avoid creating a new String if possible
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137685 13f79535-47bb-0310-9956-ffa450edef68
2003-10-21 20:24:22 +00:00
Tim O'Brien 25027ea901 Added tests for the creation of BigInteger from a String, and for catching
bad input to isNumber.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137684 13f79535-47bb-0310-9956-ffa450edef68
2003-10-11 21:20:24 +00:00
Tim O'Brien 7e81d9ca76 Added various tests to the NumberRangeTest class,
including tests for null parameters to overlap, include*, and
constructors.  Tests for hashCode, and tests for equals.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137683 13f79535-47bb-0310-9956-ffa450edef68
2003-10-11 20:35:11 +00:00
Tim O'Brien c997991e46 Added one test case to ArrayUtilsTest and some small changes to test
cases to test indexOf and lastIndexOf with negative array
index values.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137682 13f79535-47bb-0310-9956-ffa450edef68
2003-10-11 19:58:40 +00:00
Stephen Colebourne 3986e17cf1 Make the contributers list more readble
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137681 13f79535-47bb-0310-9956-ffa450edef68
2003-10-07 21:05:03 +00:00
Stephen Colebourne 0ae8741d3b Add IS_OS_UNIX to SystemUtils
from Rafal Krupinski


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137680 13f79535-47bb-0310-9956-ffa450edef68
2003-10-07 20:59:46 +00:00
Stephen Colebourne 77f44ba271 Update licence
Tidy file


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137679 13f79535-47bb-0310-9956-ffa450edef68
2003-10-07 20:36:26 +00:00
Robert Burrell Donkin 09e6f119f5 Corrected licenses to match jakarta-commons standard.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137678 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 15:46:55 +00:00
Stephen Colebourne 4892e87a4f Fredrik is now a developer not a committer
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137677 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 20:34:16 +00:00
Fredrik Westermarck a9a2f485e7 Replacing tabs with spaces to keep checkstyle happy.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137676 13f79535-47bb-0310-9956-ffa450edef68
2003-09-24 20:28:25 +00:00
Fredrik Westermarck da6c19af5b Using StringUtils.isEmpty where possible.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137675 13f79535-47bb-0310-9956-ffa450edef68
2003-09-24 20:22:33 +00:00
Fredrik Westermarck 68527f750d Removed todo that has been adressed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137674 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 19:51:04 +00:00
Fredrik Westermarck e645ec831f Added examples in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137673 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 19:45:14 +00:00
Fredrik Westermarck c978c7f029 Improved performance if str is null.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137672 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 17:02:10 +00:00
Fredrik Westermarck 00731e8e2a Renamed stringTo<Type>-metods to to<Type>.
The stringToInt-methods have been deprecated.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137671 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 15:46:42 +00:00
Fredrik Westermarck 9622df2db9 Added myself as a committer.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137670 13f79535-47bb-0310-9956-ffa450edef68
2003-09-22 13:38:00 +00:00
Stephen Colebourne e459236715 Remove reflect code from [lang] to separate project [reflect]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137669 13f79535-47bb-0310-9956-ffa450edef68
2003-09-20 10:18:56 +00:00