Commit Graph

808 Commits

Author SHA1 Message Date
Stephen Colebourne 5e7cf0ed0e Make exception implement Nestable interface and use NestableDelegate
bug 26954 (alternate implementation)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137821 13f79535-47bb-0310-9956-ffa450edef68
2004-03-04 00:13:38 +00:00
Fredrik Westermarck 8ec0fe03ec Fixed some typos in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137818 13f79535-47bb-0310-9956-ffa450edef68
2004-02-26 21:10:01 +00:00
Gary D. Gregory c03bc5f6ce Add support for java.awt.headless (Java 1.4.)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137817 13f79535-47bb-0310-9956-ffa450edef68
2004-02-25 00:25:29 +00:00
Fredrik Westermarck fd3858e7e1 Added isAsciiPrintable() http://issues.apache.org/bugzilla/show_bug.cgi?id=22489.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137815 13f79535-47bb-0310-9956-ffa450edef68
2004-02-24 22:31:43 +00:00
Fredrik Westermarck 0ca766679c Renamed methods so that they follow the "MethodNameEvenForAcronyms"-scheme.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137814 13f79535-47bb-0310-9956-ffa450edef68
2004-02-24 22:22:51 +00:00
Gary D. Gregory 687abc5024 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27054
Fixes to some Javadoc errors in ClassUtils
Submitted by:	Janek Bogucki
Reviewed by:	Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137813 13f79535-47bb-0310-9956-ffa450edef68
2004-02-24 06:01:28 +00:00
Gary D. Gregory 4dcfc2fbb1 lang.enum.*:
Deprecated and replaced by org.apache.commons.lang.enums.* and will be
	removed in version 3.0. All classes in this package are deprecated and 
	repackaged to org.apache.commons.lang.enums since enum is a Java 1.5 
	keyword.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137811 13f79535-47bb-0310-9956-ffa450edef68
2004-02-23 04:34:20 +00:00
Fredrik Westermarck ccd24d26f8 Using ArrayUtils.isEmpty().
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137809 13f79535-47bb-0310-9956-ffa450edef68
2004-02-19 21:31:19 +00:00
Fredrik Westermarck c2ee7dde50 Using StringUtils.isEmpty().
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137806 13f79535-47bb-0310-9956-ffa450edef68
2004-02-19 21:04:03 +00:00
Stephen Colebourne a80c77930f Fix spelling and scope
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137805 13f79535-47bb-0310-9956-ffa450edef68
2004-02-19 01:34:38 +00:00
Gary D. Gregory 01114af165 Make CLASS_NAME_COMPARATOR and PACKAGE_NAME_COMPARATOR work on Java 1.2.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137804 13f79535-47bb-0310-9956-ffa450edef68
2004-02-19 01:24:50 +00:00
Gary D. Gregory 501f19cf0c Organize Imports.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137803 13f79535-47bb-0310-9956-ffa450edef68
2004-02-18 23:22:30 +00:00
Gary D. Gregory 43e94f47ba Apply Apache License Version 2.0 by following the instructions at http://www.apache.org/dev/apply-license.html.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137800 13f79535-47bb-0310-9956-ffa450edef68
2004-02-18 23:06:54 +00:00
Fredrik Westermarck a856bd367c Using isEmpty() internally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137799 13f79535-47bb-0310-9956-ffa450edef68
2004-02-18 22:32:50 +00:00
Gary D. Gregory ebebaf310b PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26922
[lang] public static boolean DateUtils.equals(Date dt1, Date dt2) ?
Updated testDateEqualsJava(): The behavior is different b/w Sun Java 1.3.1_10 and 1.4.2_03.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137796 13f79535-47bb-0310-9956-ffa450edef68
2004-02-17 00:55:57 +00:00
Gary D. Gregory 0b92157846 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26961
[lang][patch] Remove redundant check for null separator in StringUtils#join
Submitted by:	Janek Bogucki
Reviewed by:	Gary Gregory.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137795 13f79535-47bb-0310-9956-ffa450edef68
2004-02-16 23:48:10 +00:00
Gary D. Gregory c524021b45 Somehow (c) was not 2004.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137794 13f79535-47bb-0310-9956-ffa450edef68
2004-02-16 23:40:47 +00:00
Gary D. Gregory c7029589f7 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26922
[lang] public static boolean DateUtils.equals(Date dt1, Date dt2) ?
Record a test for future reference when having this chat.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137793 13f79535-47bb-0310-9956-ffa450edef68
2004-02-16 23:39:03 +00:00
Gary D. Gregory 0fcfcfdc65 PR: Bugzilla Bug 26943 [patch] Class and Package Comparators for ClassUtils
Submitted by:	alban.peignier
Reviewed by:	Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137791 13f79535-47bb-0310-9956-ffa450edef68
2004-02-15 00:51:38 +00:00
Stephen Colebourne 20393e09aa Add getLength method
bug 26594, from Maarten Coene


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137789 13f79535-47bb-0310-9956-ffa450edef68
2004-02-14 01:15:20 +00:00
Stephen Colebourne 7ba2d8aa0d Add validate methods for all elements same type
bug 25683, from Norm Deane


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137788 13f79535-47bb-0310-9956-ffa450edef68
2004-02-14 00:48:20 +00:00
Stephen Colebourne ca635e0108 Improve Tokenizer with CSV and TSV plus change default to StringTokenizer like
includes code from Matthew Inger


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137787 13f79535-47bb-0310-9956-ffa450edef68
2004-02-14 00:31:55 +00:00
Gary D. Gregory 83406a3ffa Javadoc and added some system properties.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137786 13f79535-47bb-0310-9956-ffa450edef68
2004-02-14 00:23:50 +00:00
Stephen Colebourne f93ddafa96 Add comment about new Tokenizer class in split method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137785 13f79535-47bb-0310-9956-ffa450edef68
2004-02-13 23:32:39 +00:00
Stephen Colebourne 52789c773f Handle broken test actually working on Linux Sun JDK 1.4.1
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137784 13f79535-47bb-0310-9956-ffa450edef68
2004-02-13 23:17:45 +00:00
Gary D. Gregory 8ce02ef872 Added @since and @version tags.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137782 13f79535-47bb-0310-9956-ffa450edef68
2004-02-13 01:58:50 +00:00
Gary D. Gregory 2c86461512 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137781 13f79535-47bb-0310-9956-ffa450edef68
2004-02-12 20:09:11 +00:00
Gary D. Gregory b3bc7ad11d PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=26877
[lang] Add SystemUtils.AWT_TOOLKIT.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137780 13f79535-47bb-0310-9956-ffa450edef68
2004-02-12 01:58:33 +00:00
Stephen Colebourne 8e0c629295 Improve tests to check result of enum equals
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137779 13f79535-47bb-0310-9956-ffa450edef68
2004-02-12 01:00:05 +00:00
Gary D. Gregory bff3f2fdb1 Forgot to clean up exception name in the previous commit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137778 13f79535-47bb-0310-9956-ffa450edef68
2004-02-12 00:49:30 +00:00
Gary D. Gregory e902406b03 equals() Javadoc now mentions the separate class loader case.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137777 13f79535-47bb-0310-9956-ffa450edef68
2004-02-12 00:48:30 +00:00
Gary D. Gregory 9e8140e03a PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=26876
[lang] Enum.equals does not handle different class loaders.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137776 13f79535-47bb-0310-9956-ffa450edef68
2004-02-12 00:45:09 +00:00
Gary D. Gregory cb9f2a2175 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26656
[lang][patch] Validate.java: fixes comment skew, removes unused loop counter.
Submitted by:	Janek Bogucki
Reviewed by:	Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137775 13f79535-47bb-0310-9956-ffa450edef68
2004-02-11 23:33:23 +00:00
Gary D. Gregory 7c1dda3e75 PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23174
Submitted by:	Maarten Coene, Arun Mammen Thomas
Reviewed by:	Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137774 13f79535-47bb-0310-9956-ffa450edef68
2004-02-11 20:08:49 +00:00
Fredrik Westermarck c8f42adee2 Fixed bug in getDateInstance(int, TimeZone, Locale). See bz #26646.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137772 13f79535-47bb-0310-9956-ffa450edef68
2004-02-04 18:52:59 +00:00
Fredrik Westermarck d1b0159e59 Added test case for getDateInstance(int, Locale).
Removed whitespaces from lines that was supposed to be empty.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137771 13f79535-47bb-0310-9956-ffa450edef68
2004-02-04 18:49:10 +00:00
Stephen Colebourne 644fcb88d3 Switch to Apache Licence 2.0
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137770 13f79535-47bb-0310-9956-ffa450edef68
2004-02-03 22:34:44 +00:00
Gary D. Gregory 11bd2237bf Bugzilla Bug 26056 [lang] Add methods to ArrayUtils: add at end and insert-like ops
Added methods: primitiveType[] add(primitiveType[], primitiveType)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137769 13f79535-47bb-0310-9956-ffa450edef68
2004-02-03 22:14:24 +00:00
Gary D. Gregory 7cacd4f813 Renamed ArrayUtils.join(Object[],Object[]) to addAll.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137768 13f79535-47bb-0310-9956-ffa450edef68
2004-01-31 20:12:16 +00:00
Stephen Colebourne fa5cac4449 Add CharUtils classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137767 13f79535-47bb-0310-9956-ffa450edef68
2004-01-31 13:00:07 +00:00
Stephen Colebourne c34043222f Deprecate id code prior to removal
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137766 13f79535-47bb-0310-9956-ffa450edef68
2004-01-31 10:12:56 +00:00
Stephen Colebourne 15a7799a4f Rollback of sort of members
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137765 13f79535-47bb-0310-9956-ffa450edef68
2004-01-31 09:57:39 +00:00
Gary D. Gregory 90ecd2e1e7 Sort members (Eclipse defaults).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137764 13f79535-47bb-0310-9956-ffa450edef68
2004-01-30 02:12:22 +00:00
Gary D. Gregory 359ac768ff Duplicate @author tags for Fredrik Westermarck.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137763 13f79535-47bb-0310-9956-ffa450edef68
2004-01-30 01:51:36 +00:00
Gary D. Gregory b4ec10a316 Three new methods and unit tests: add(Object[],Object), add(Object[],int,Object), and join(Object[],Object[]).
PR: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26056
Submitted by:	Gary Gregory and Maarten Coene
Reviewed by:	Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137762 13f79535-47bb-0310-9956-ffa450edef68
2004-01-30 01:39:58 +00:00
Tim O'Brien 8410469603 A simple spelling fix for ArrayUtils JavaDoc on the clone(Object[] array) method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137759 13f79535-47bb-0310-9956-ffa450edef68
2004-01-25 00:09:10 +00:00
Fredrik Westermarck a9d8e8770a Using ArrayUtils.isEmpty() when testing arrays.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137758 13f79535-47bb-0310-9956-ffa450edef68
2004-01-19 23:24:07 +00:00
Gary D. Gregory 6903e5e8aa testIsEmpty methods now tests for nulls.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137757 13f79535-47bb-0310-9956-ffa450edef68
2004-01-19 22:55:05 +00:00
Fredrik Westermarck 79a860193f Added isEmpty for Object and primitives arrays. RFE in bugzilla (#26243).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137756 13f79535-47bb-0310-9956-ffa450edef68
2004-01-19 21:50:06 +00:00
Fredrik Westermarck 2e82cc4a15 Fixed a couple of typos.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137755 13f79535-47bb-0310-9956-ffa450edef68
2004-01-19 21:41:43 +00:00
Stephen Colebourne 0d4f76d6f6 Make shared keys private scope not public as not really part of API
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137751 13f79535-47bb-0310-9956-ffa450edef68
2004-01-15 21:20:12 +00:00
Stephen Colebourne 5085298086 Use @throws instead of @exception
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137750 13f79535-47bb-0310-9956-ffa450edef68
2004-01-15 21:17:33 +00:00
Tim O'Brien 8a9baf0e02 Commons Lang Maven site now has a white banner background. A commons logo, a link back to Jakarta commons in the top nav. The site builds with Maven RC1.0.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137747 13f79535-47bb-0310-9956-ffa450edef68
2004-01-15 03:57:52 +00:00
Gary D. Gregory 4e0b6de05a PR: 25227
Obtained from: Discussion around http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25227


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137746 13f79535-47bb-0310-9956-ffa450edef68
2004-01-10 02:58:36 +00:00
Fredrik Westermarck 417f6b5b19 Removed typo in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137745 13f79535-47bb-0310-9956-ffa450edef68
2004-01-10 01:59:40 +00:00
Fredrik Westermarck 1e818f6bbd Added nullhandling tests for isEquals.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137744 13f79535-47bb-0310-9956-ffa450edef68
2004-01-08 17:54:28 +00:00
Fredrik Westermarck 23b6d90ccf Fixed typo in javadoc for isEquals, repored by Cameron Hayne, hayne at sympatico dot ca.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137743 13f79535-47bb-0310-9956-ffa450edef68
2004-01-08 17:50:40 +00:00
Gary D. Gregory f863d668f3 PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=25849
Added to SystemUtils: getJavaHome, getJavaIoTmpDir, getUserDir, getUserHome.
Sorted source (Eclispe).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137742 13f79535-47bb-0310-9956-ffa450edef68
2003-12-31 22:01:06 +00:00
Gary D. Gregory 4418cc11fc PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=25849
Added to SystemUtils: getJavaHome, getJavaIoTmpDir, getUserDir, getUserHome.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137741 13f79535-47bb-0310-9956-ffa450edef68
2003-12-31 22:00:31 +00:00
Gary D. Gregory 74548d494b Reformat (Eclipse) for line-length 120 and add missing @throws documentation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137739 13f79535-47bb-0310-9956-ffa450edef68
2003-12-29 01:47:02 +00:00
Gary D. Gregory ee9ae46b05 Add missing @return tag.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137737 13f79535-47bb-0310-9956-ffa450edef68
2003-12-29 01:30:10 +00:00
Gary D. Gregory b10d0bbead Add missing @return tags on subarray methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137736 13f79535-47bb-0310-9956-ffa450edef68
2003-12-29 01:08:38 +00:00
Gary D. Gregory 09e2ea6cc8 Add missing Javadoc comments.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137735 13f79535-47bb-0310-9956-ffa450edef68
2003-12-29 00:58:27 +00:00
Gary D. Gregory 77f538e305 Add missing Javadoc comment.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137734 13f79535-47bb-0310-9956-ffa450edef68
2003-12-29 00:43:09 +00:00
Gary D. Gregory 6aee782c67 Add missing Javadoc comments.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137733 13f79535-47bb-0310-9956-ffa450edef68
2003-12-29 00:33:47 +00:00
Gary D. Gregory a81eb0a684 More precise Javadoc @see references.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137732 13f79535-47bb-0310-9956-ffa450edef68
2003-12-29 00:27:08 +00:00
Gary D. Gregory d7aeb4cdd3 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137731 13f79535-47bb-0310-9956-ffa450edef68
2003-12-26 22:04:49 +00:00
Stephen Colebourne c261fa490e Fix mistake and clarify javadoc spec for replace
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137730 13f79535-47bb-0310-9956-ffa450edef68
2003-12-24 01:33:30 +00:00
Phil Steitz e2225defe6 Deprecated integer MILLIS_IN_* constants and replaced with long versions
named MILLIS_PER_*.
PR # 25627
Reported by Nikolay Metchev


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137729 13f79535-47bb-0310-9956-ffa450edef68
2003-12-23 03:54:14 +00:00
Phil Steitz d206d8cfdc Added tests for days.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137728 13f79535-47bb-0310-9956-ffa450edef68
2003-12-20 22:40:40 +00:00
Phil Steitz 2207b846a0 javadoc, spelling error.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137727 13f79535-47bb-0310-9956-ffa450edef68
2003-12-20 22:19:21 +00:00
Henri Yandell 8bb7376303 moved the since to 3.0 as it will be at least until then before a release includes this I suspect, plus 2.0 was plain wrong
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137726 13f79535-47bb-0310-9956-ffa450edef68
2003-12-18 08:18:26 +00:00
Gary D. Gregory 5aeb74f109 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25454
StringUtils.replaceChars(String,String,String).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137725 13f79535-47bb-0310-9956-ffa450edef68
2003-12-15 01:52:32 +00:00
Gary D. Gregory 23aba54dfb Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137724 13f79535-47bb-0310-9956-ffa450edef68
2003-12-15 01:17:49 +00:00
Gary D. Gregory 9bb878d29e Record behavior in a test for From http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25454.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137721 13f79535-47bb-0310-9956-ffa450edef68
2003-12-11 22:17:22 +00:00
Stephen Colebourne be6bdde172 Add subarray methods for primitive types
Change subarray for Objects to return same type as input
from Ashwin S


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137720 13f79535-47bb-0310-9956-ffa450edef68
2003-12-05 23:37:18 +00:00
Gary D. Gregory d61058de63 Add missing Javadoc tags.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137719 13f79535-47bb-0310-9956-ffa450edef68
2003-12-02 19:11:58 +00:00
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
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
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 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 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
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 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
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
Phil Steitz 47979b1a49 Formatting changes (inserting missing {}s) in StringEscapeUtils.
Patch submitted by Fredrik Westermarck
Reviewed by Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137668 13f79535-47bb-0310-9956-ffa450edef68
2003-09-13 03:23:24 +00:00
Phil Steitz c94b5776c1 Formatting changes (inserting missing {}s) in Entities, NestableDelagate, NumberUtils, MethodUtils.
Added javadoc examples for string conversion methods in NumberUtils.
Patch submitted by Fredrik Westermarck
Reviewed by Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137667 13f79535-47bb-0310-9956-ffa450edef68
2003-09-13 03:11:30 +00:00
Phil Steitz fd3bd5bdd2 Fixed typos in javadoc and some inline comments.
Pr #22908.
Patch submitted by Janek Bogucki.
Reviewed by Phil Steitz.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137666 13f79535-47bb-0310-9956-ffa450edef68
2003-09-07 14:32:35 +00:00
Phil Steitz 69b8f445d7 Added stringToDouble, stringToLong functions to NumberUtils.
Patch supplied by Fredrik Westermarck
Reviewd by Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137664 13f79535-47bb-0310-9956-ffa450edef68
2003-09-05 15:55:09 +00:00
Gary D. Gregory 2546311b27 Added ordinalIndexOf() and associated unit tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137663 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 18:18:18 +00:00
Phil Steitz b586a8123d Added missing constructor calls to complete path coverage in IntRangeTest.
Suggested by Janek Bogucki.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137662 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 16:25:56 +00:00
Phil Steitz e0bee37d15 Added stringToFloat to NumberUtils
Patch contributed by Fredrik Westermarck
Reviewed by Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137661 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 07:27:12 +00:00
Stephen Colebourne f20a3903bb Fix Javadoc problems arising from recent commits
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137658 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 10:39:20 +00:00
Gary D. Gregory d9feeca6e4 Class Javadoc: Normalize the first sentence.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137656 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 00:41:29 +00:00
Gary D. Gregory 4b4b5a8295 Class Javadoc: Normalize the first sentence.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137655 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 00:22:53 +00:00
Gary D. Gregory 3ac49984ed Class Javadoc: Normalize the first sentence and some @see's and {@link}s
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137654 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 00:21:49 +00:00
Gary D. Gregory 338dc559fe Class Javadoc: Normalize on the active voice, "Returns", "Sets", etc.
The .lang pkg now lists with consistent format in the package level doc too.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137653 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 17:25:33 +00:00
Gary D. Gregory 172095f52e Javadoc: Normalize on the active voice, "Returns", "Sets", etc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137652 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 16:57:04 +00:00
Gary D. Gregory 95bce1fb29 Javadoc: Added missing end tags for <li>.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137651 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 16:34:06 +00:00
Gary D. Gregory 22aeaddb5e Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137647 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 03:06:36 +00:00
Gary D. Gregory 70075bdf4a Renamed StringUtils.differenceAt() to StringUtils.indexOfDifference()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137645 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 22:13:24 +00:00
Gary D. Gregory fac4f8d2d6 Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137644 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 15:52:55 +00:00
Gary D. Gregory f74b10ecad Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137643 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 15:13:09 +00:00
Gary D. Gregory 7fedb2b1cc Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137642 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:57:21 +00:00
Gary D. Gregory 8b34e1dffc Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137641 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:35:23 +00:00
Gary D. Gregory 4e3962a6e4 Follow same @author style.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137640 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:26:02 +00:00
Gary D. Gregory 07ea8e7fa2 Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137639 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:25:34 +00:00
Henri Yandell f5a4e148c5 Removed UtilTestSuite
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137633 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 02:38:56 +00:00
Henri Yandell 5c40d53bf0 Moved BitField and Validate from the util package up to the main package.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137632 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 02:32:16 +00:00
Stephen Colebourne 8d36a61bb5 Remove evaluateSet(String) which is deprecated, but wasn't in 1.0.1
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137631 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 00:21:46 +00:00
Stephen Colebourne 73031bac98 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137630 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 00:11:20 +00:00
Gary D. Gregory 8348f8b8dc Removed: The private field DateUtils.dateFormats is never read locally.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137629 13f79535-47bb-0310-9956-ffa450edef68
2003-08-18 21:52:39 +00:00
Henri Yandell 379d1bcac3 Applied Gary's fix of "acknowlegement" to "acknowledgement" in all java files.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137625 13f79535-47bb-0310-9956-ffa450edef68
2003-08-18 02:22:28 +00:00
Stephen Colebourne b5c1a4795f Javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137622 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 23:31:44 +00:00
Stephen Colebourne c9fe5f02aa Add capitalizeFully() to deal with a whole string whatever its current state
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137621 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 23:06:11 +00:00
Stephen Colebourne d1d8827200 Move capitalizeAllWords, uncapitalizeAllWords, swapCase to WordUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137620 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 22:59:28 +00:00
Stephen Colebourne 47367eb9ab Rename WordWrapUtils to WordUtils
Refactor wrapLine method, making it public and work properly
Remove wrapText method
Test


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137618 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 21:57:37 +00:00