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
Mark R. Diggory
89e0635ffc
Adding postGoal to copy css stylesheets from commons-build when site is generated. Please maintain this modification for consistent look and feel across commons subprojects.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137896 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 15:38:47 +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
Henri Yandell
0ce8d154dd
cleaning up some bad maven configuration. A <resource> tag is needed between the resources and includes to work. As it no longer works, I have removed the sections as they appear to not need them (copy and paste from original poms in commons). Also removed empty jar tags and integrationTest tags
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137883 13f79535-47bb-0310-9956-ffa450edef68
2004-07-13 12:46:02 +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
2b026a32cf
Added C. Scott Ananian to contributors.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137880 13f79535-47bb-0310-9956-ffa450edef68
2004-07-11 23:21:01 +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
Henri Yandell
43eba0aec4
added the view that we should not use boolean arguments to overload methods of similar signature
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137872 13f79535-47bb-0310-9956-ffa450edef68
2004-07-07 05:08:05 +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
6977758a3a
hooked in previous tag for jdiff reporting
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137856 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 18:22:09 +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