Commit Graph

947 Commits

Author SHA1 Message Date
Henri Yandell b764c11070 lniked in text package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137920 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 01:42:37 +00:00
Henri Yandell bbf47defe3 Interpolation moved into the text package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137919 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 00:56:31 +00:00
Henri Yandell dce7e4c095 reformatted to match other Lang code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137918 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 00:42:14 +00:00
Henri Yandell 0028e37c1c class from Digester, akin to the Interpolation class in the lang package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137917 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 00:37:28 +00:00
Fredrik Westermarck 1ab209f51d Fixed a typo in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137916 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 19:16:18 +00:00
Fredrik Westermarck a29a755142 Fixed a couple of typos in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137915 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 19:04:56 +00:00
Stephen Colebourne 031b68ed6a Remove cloning from char array methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137914 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 07:52:35 +00:00
Gary D. Gregory fdfba0f580 Javadoc nit fixed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137913 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 18:00:01 +00:00
Gary D. Gregory a4963fab8e Unnecessary semicolon.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137912 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 17:42:56 +00:00
Gary D. Gregory 6569b2dfbd The local variable substitutionBean is never read.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137911 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 17:41:41 +00:00
Gary D. Gregory 3aae9e600c Remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137910 13f79535-47bb-0310-9956-ffa450edef68
2004-09-01 17:40:55 +00:00
Gary D. Gregory ee77c44ba5 Removed comment:
// Windows XP returns 'Windows 2000' just for fun...
On my machine (Windows XP Pro SP1) the os.name property is "Windows XP".


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137909 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 21:21:18 +00:00
Gary D. Gregory ad4bde97cd Refactor "Windows" into private static final String OS_NAME_WINDOWS_PREFIX = "Windows";
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137908 13f79535-47bb-0310-9956-ffa450edef68
2004-08-30 21:19:52 +00:00
Henri Yandell b03921d365 various tests which helped find the last two bugs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137907 13f79535-47bb-0310-9956-ffa450edef68
2004-08-29 03:44:22 +00:00
Henri Yandell 067a1cabd3 fix to handle the tiny difference between YEAR and 12*MONTH
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137906 13f79535-47bb-0310-9956-ffa450edef68
2004-08-29 03:42:48 +00:00
Henri Yandell a88c318251 bug in how the maths is being done creates a -ve number
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137905 13f79535-47bb-0310-9956-ffa450edef68
2004-08-29 03:41:48 +00:00
Stephen Colebourne f0ef6dffb7 Rename end to pos, fix spelling, avoid new String()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137904 13f79535-47bb-0310-9956-ffa450edef68
2004-08-28 11:46:19 +00:00
Stephen Colebourne ae43c2680a Rename nd to end
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137903 13f79535-47bb-0310-9956-ffa450edef68
2004-08-28 09:21:05 +00:00
Stephen Colebourne d3d0778c07 Change constructors to take Matcher, not CharSetMatcher
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137902 13f79535-47bb-0310-9956-ffa450edef68
2004-08-28 09:14:21 +00:00
Henri Yandell 11ed4603c2 DurationFormatUtils implemented in a java.text.Format like way with a pattern language for specifying exactly how the format wants to appear. The two existing methods are reimplemented in terms of the new format method but the new method currently lacks its own unit tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137901 13f79535-47bb-0310-9956-ffa450edef68
2004-08-27 06:45:25 +00:00
Gary D. Gregory a14f8248ed Fix Javadoc warnings.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137900 13f79535-47bb-0310-9956-ffa450edef68
2004-08-26 18:54:04 +00:00
Gary D. Gregory b0213e869e Bugzilla Bug 30855
[lang] Additional constructor for EqualsBuilder and isEquals member access.
Addressing: "Finally, can they change the member "isEquals" from private to
protected?  At present, I cannot subclass EqualsBuilder and use this member."

I've added:

protected void setEquals(boolean isEquals)

which in conjunction with:

public boolean isEquals()

allows one to access the isEquals.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137899 13f79535-47bb-0310-9956-ffa450edef68
2004-08-26 05:46:45 +00:00
Gary D. Gregory ccf4e93bb7 Bugzilla Bug 30815
ArrayUtils.isEquals() throws ClassCastException when array1 and array2 are different dimension
http://issues.apache.org/bugzilla/show_bug.cgi?id=30815


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137898 13f79535-47bb-0310-9956-ffa450edef68
2004-08-25 21:20:15 +00:00
Henri Yandell e5b3976b9b Added the split variant from #24910 in which the separator may be a full String rather than a String of characters. Rather than the issues suggested boolean parameter, the name has been changed to splitByWholeSeparator
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137897 13f79535-47bb-0310-9956-ffa450edef68
2004-08-22 03:40:27 +00:00
Stephen Colebourne 98a80ec615 Add remove() methods to StringUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137895 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 23:47:05 +00:00
Stephen Colebourne 48e8e7e2e6 Format ready for 2.1
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137894 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 23:18:43 +00:00
Henri Yandell 131adbbc7c helper assert methods should be private
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137893 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 02:36:21 +00:00
Henri Yandell 11722fb101 added comment in javadoc for #30328
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137892 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 02:17:13 +00:00
Henri Yandell f2cb58abe6 we do not use the final parameter code style in the rest of Lang, so bringing these two classes in line with the others
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137891 13f79535-47bb-0310-9956-ffa450edef68
2004-08-15 02:12:51 +00:00
Gary D. Gregory 5fe0ddd20d Javadoc typos.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137890 13f79535-47bb-0310-9956-ffa450edef68
2004-08-04 18:41:09 +00:00
Gary D. Gregory 8b6499b395 Bugzilla Bug 30334
[lang] New class proposal: CharacterEncoding
	http://issues.apache.org/bugzilla/show_bug.cgi?id=30334
	Comitted to CVS for further comments.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137889 13f79535-47bb-0310-9956-ffa450edef68
2004-08-03 17:17:08 +00:00
Henri Yandell 1f9d273472 typo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137888 13f79535-47bb-0310-9956-ffa450edef68
2004-08-02 02:16:21 +00:00
Gary D. Gregory 0b4ce09435 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137887 13f79535-47bb-0310-9956-ffa450edef68
2004-07-30 01:55:42 +00:00
Gary D. Gregory d706b144fa Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137886 13f79535-47bb-0310-9956-ffa450edef68
2004-07-27 21:10:33 +00:00
Gary D. Gregory 7d564e0c9f Added testSelfInstanceVarReflectionObjectCycle to replicate an example in http://issues.apache.org/bugzilla/show_bug.cgi?id=19331.
This is a bit redundant with other tests, but insures the given example is handled.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137885 13f79535-47bb-0310-9956-ffa450edef68
2004-07-26 21:39:21 +00:00
Henri Yandell 9d566ec1e4 An attempt to put together an implementation for bugzilla issue 29163. Tempted to think that split() should not be using the stopTime variable.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137884 13f79535-47bb-0310-9956-ffa450edef68
2004-07-25 07:31:36 +00:00
Steven Caswell 599e923d9f added tests for rounding and truncating to AM_PM;
added additional test of rounding to SEMI_MONTH


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137882 13f79535-47bb-0310-9956-ffa450edef68
2004-07-12 00:08:51 +00:00
Steven Caswell 0c40162c2f corrected calendar field used to calculate the offset when modifying the hour for a round or truncated based on AM_PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137881 13f79535-47bb-0310-9956-ffa450edef68
2004-07-12 00:04:32 +00:00
Phil Steitz 13ae992c23 Fixed numeric problems reported in PR #29294
Submitted by: C. Scott Ananian
Reviewed by: Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137879 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 23:20:17 +00:00
Steven Caswell 02dde889ee moved testParseCVS to sandbox DateFormatterTest.java
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137878 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:40:35 +00:00
Steven Caswell 946ba1293b moved parseCVS to sandbox DateFormatter.java
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137877 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 18:40:04 +00:00
Steven Caswell e3289ed1eb added tests for new splitPreserveAllTokens methods (http://issues.apache.org/bugzilla/show_bug.cgi?id=22692)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137876 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 16:49:07 +00:00
Steven Caswell f919d93040 http://issues.apache.org/bugzilla/show_bug.cgi?id=22692 :
- added new splitPreserveAllTokens methods to mirror the split functionality, preserving empty tokens indicated by adjacent tokens;
- refactored logic of existing split method into splitWorker for sharing by new splitPreserveAllTokens methods


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137875 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 16:48:31 +00:00
Stephen Colebourne 3787473c50 Add MutableObject
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137874 13f79535-47bb-0310-9956-ffa450edef68
2004-07-08 00:02:35 +00:00
Stephen Colebourne fbeb9d58da Update mutable package for release 2.1
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137873 13f79535-47bb-0310-9956-ffa450edef68
2004-07-07 23:50:28 +00:00
Stephen Colebourne 4301e384b8 Add format(long) and format(long, StringBuffer)
bug 29794


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137871 13f79535-47bb-0310-9956-ffa450edef68
2004-07-05 22:37:40 +00:00
Stephen Colebourne 5707063592 A reworked mutable int, ready for comments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137870 13f79535-47bb-0310-9956-ffa450edef68
2004-07-05 22:15:33 +00:00
Stephen Colebourne 85eea5a83a Improve javadocs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137869 13f79535-47bb-0310-9956-ffa450edef68
2004-07-05 22:12:22 +00:00
Steven Caswell 0016bcc384 corrected javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137868 13f79535-47bb-0310-9956-ffa450edef68
2004-07-05 18:07:44 +00:00
Steven Caswell 5f7feb74f2 added tests of rounding and truncating across daylight saving time beginning and ending
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137867 13f79535-47bb-0310-9956-ffa450edef68
2004-07-05 17:55:53 +00:00
Steven Caswell c4df48e565 changed modify method to calculate the field offset and use the set method, rather than adding the offset and letting Calendar perform the calculation - this fixes http://issues.apache.org/bugzilla/show_bug.cgi?id=25560;
updated javadocs on round method to explain how rounding across daylight saving time is handled


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137866 13f79535-47bb-0310-9956-ffa450edef68
2004-07-05 17:54:48 +00:00
Henri Yandell cddc22f28c Adding in new Interpolation class for opinions. It is, apart from cleaning up,
creation of a unit test and renaming to 'interpolate', the submission from Ken
Fitzpatrick in Bugzilla: #18962.

Lang has had a class much like this before so opinions saught (I'm in fact suffering
from some major deja vu with this, need to research how many times I've committed this
type of code to Lang :) ).

Submitted by:	Ken Fitzpatrick


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137865 13f79535-47bb-0310-9956-ffa450edef68
2004-07-04 04:51:25 +00:00
Henri Yandell 18baf613e5 Tomcat uses getThrowable for its nested exception method, so adding this to ExceptionUtils' list.
Bugz: #29673
Submitted by: Lars Beuster


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137864 13f79535-47bb-0310-9956-ffa450edef68
2004-07-04 03:24:57 +00:00
Gary D. Gregory 8e45d583ee PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=27876
[lang] ReflectionToStringBuilder.toString(null) throws exception by design
new ToStringBuilder(null).toString() == the style's nullText.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137863 13f79535-47bb-0310-9956-ffa450edef68
2004-07-01 17:58:09 +00:00
Gary D. Gregory 6c34babbe5 javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137862 13f79535-47bb-0310-9956-ffa450edef68
2004-07-01 17:52:07 +00:00
Gary D. Gregory 03d0a45c02 Javadoc typo.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137861 13f79535-47bb-0310-9956-ffa450edef68
2004-07-01 17:50:37 +00:00
Gary D. Gregory 439a9c3965 PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=27876
[lang] ReflectionToStringBuilder.toString(null) throws exception by design
new ToStringBuilder(null).toString() == the style's nullText.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137860 13f79535-47bb-0310-9956-ffa450edef68
2004-07-01 17:40:10 +00:00
Gary D. Gregory eec2c4c798 PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=27876
[lang] ReflectionToStringBuilder.toString(null) throws exception by design
Javadoc updates.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137859 13f79535-47bb-0310-9956-ffa450edef68
2004-07-01 17:10:47 +00:00
Gary D. Gregory 14164d88eb Bugzilla Bug 27877
[lang][patch] Make ClassUtils methods null-safe and not throw an IAE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27877


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137858 13f79535-47bb-0310-9956-ffa450edef68
2004-06-30 18:33:58 +00:00
Gary D. Gregory be6e4802f4 PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=27876
[lang] ReflectionToStringBuilder.toString(null) throws exception by design
ReflectionToStringBuilder.toString is now null-safe and returns the style's nullText.
ToStringBuilder constructors are now null-safe. A new ToStringBuilder on a null followed by a call to toString returns "".


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137857 13f79535-47bb-0310-9956-ffa450edef68
2004-06-30 18:22:22 +00:00
Henri Yandell 5f7e26a978 flipped from being hardcoded to GregorianCalendar to using getInstance. Cannot think of any reason why a GregorianCalendar was being created directly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137855 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 06:29:29 +00:00
Henri Yandell 680f38995b added newline to end of file
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137854 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 06:28:32 +00:00
Henri Yandell 2b47976319 fixed return type of getValue
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137853 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 05:23:47 +00:00
Henri Yandell 6ca1ffce84 This adds an array-argument based version of primitiveToWrapper. Apart from the argument of not having array based versions for every method, I can't see any reason not to add it, so have patched, modified and committing.
The origonal version optimised by returning the passed in array if there were no primitives. This seems a bit magical.

PR: #27640
Submitted by:	Alban Peignier


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137852 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 04:42:54 +00:00
Henri Yandell f16ee38329 rolled back the Mutable change. It doubled the size of a mutable instance, and as it wrapped another object, doubled the work for garbage collection
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137851 13f79535-47bb-0310-9956-ffa450edef68
2004-06-24 04:20:46 +00:00
Henri Yandell 9840e7e0e8 simplified code by moving a chunk of the functionality up into the superclass, MutableNumber. Still important that setValue turns the Number into the correct type however, so that method may not go up into the superclass
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137850 13f79535-47bb-0310-9956-ffa450edef68
2004-06-13 06:18:49 +00:00
Matthew Hawthorne c0f14e226e Adding initial crack at mutables.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137849 13f79535-47bb-0310-9956-ffa450edef68
2004-06-11 02:26:32 +00:00
Henri Yandell 813952e3f4 applied patch #27778, also added an indexOf(char[]..).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137848 13f79535-47bb-0310-9956-ffa450edef68
2004-06-06 03:53:24 +00:00
Henri Yandell 7eab1e6a6c improved javadoc, and missing javadoc for new uncapitalize method added.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137847 13f79535-47bb-0310-9956-ffa450edef68
2004-06-04 03:58:27 +00:00
Henri Yandell f90d753d06 and adding an overloaded method for uncapitalize to maintain symmetry
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137846 13f79535-47bb-0310-9956-ffa450edef68
2004-06-03 03:49:47 +00:00
Henri Yandell f845e36c54 added an overloaded method for capitalize and capitalizeFully so people can do things like capitalize double-barrelled names
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137845 13f79535-47bb-0310-9956-ffa450edef68
2004-06-03 03:40:28 +00:00
Henri Yandell 53543bc6d7 simplified the implementation of capitalizeFully
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137844 13f79535-47bb-0310-9956-ffa450edef68
2004-06-03 03:08:33 +00:00
Stephen Colebourne 0357030737 Ensure Validate has no inter-lang dependencies
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137843 13f79535-47bb-0310-9956-ffa450edef68
2004-06-01 21:25:35 +00:00
Stephen Colebourne 2358ca2953 Add more nested exception names
bug 29082, from Lars Beuster


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137842 13f79535-47bb-0310-9956-ffa450edef68
2004-06-01 21:15:27 +00:00
Stephen Colebourne eaf7441da0 Add ObjectUtils.hashCode() - a null safe hash code
bug 28554, from Mario Winterer


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137840 13f79535-47bb-0310-9956-ffa450edef68
2004-06-01 21:08:48 +00:00
Stephen Colebourne 96e23c0fca Fix since tag
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137839 13f79535-47bb-0310-9956-ffa450edef68
2004-06-01 20:56:44 +00:00
Stephen Colebourne 7bc6a98e28 Include enums package tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137838 13f79535-47bb-0310-9956-ffa450edef68
2004-06-01 20:55:28 +00:00
Stephen Colebourne aa1e8866bb Fix Enum equals to work correctly by reflection
bug 28180, from Matthias Eichel


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137837 13f79535-47bb-0310-9956-ffa450edef68
2004-06-01 20:54:57 +00:00
Fredrik Westermarck aa5c638764 PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=28468
Fixed error in javadoc.
Submitted by: Christian d'Heureuse


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137836 13f79535-47bb-0310-9956-ffa450edef68
2004-05-24 20:15:44 +00:00
Gary D. Gregory e93f9adf7b Bullet proofing.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137835 13f79535-47bb-0310-9956-ffa450edef68
2004-05-24 00:10:15 +00:00
Gary D. Gregory e37963c279 typo noticed by Stephen...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137830 13f79535-47bb-0310-9956-ffa450edef68
2004-03-19 00:29:32 +00:00
Gary D. Gregory 1463a4e60d Tests the difference in performance between CharUtils and CharSet.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137829 13f79535-47bb-0310-9956-ffa450edef68
2004-03-18 22:37:39 +00:00
Stephen Colebourne 1047e3cdf6 Update with @since tags
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137828 13f79535-47bb-0310-9956-ffa450edef68
2004-03-16 22:42:58 +00:00
Gary D. Gregory d58c692b20 PR: Bugzilla Bug 27661 [lang] [patch] ArrayUtils.addAll doesn't always return new array
Submitted by:	Maarten Coene
Reviewed by:	
Gary Gregory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137827 13f79535-47bb-0310-9956-ffa450edef68
2004-03-16 01:40:57 +00:00
Stephen Colebourne 694d1de4a9 Fix replaceChars() to complete bug 25454
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137826 13f79535-47bb-0310-9956-ffa450edef68
2004-03-10 23:54:48 +00:00
Stephen Colebourne 70ecaae8b1 Improve javadoc of various methods
bug 27306, from Janek Bogucki


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137825 13f79535-47bb-0310-9956-ffa450edef68
2004-03-10 23:31:53 +00:00
Stephen Colebourne 8774e0a985 Rename toCharacter to toChar
Rename  toInteger  to  toIntValue
Add  toCharacterObject(String)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137824 13f79535-47bb-0310-9956-ffa450edef68
2004-03-10 23:23:46 +00:00
Stephen Colebourne 172d1fa7f8 Fix javadoc descriptions
from Christian Ullenboom


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137823 13f79535-47bb-0310-9956-ffa450edef68
2004-03-10 22:59:45 +00:00
Stephen Colebourne 87f5f094fb Remove util package - Identifier code now in sandbox [id] project
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137822 13f79535-47bb-0310-9956-ffa450edef68
2004-03-04 21:00:02 +00:00
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