Stephen Colebourne
4ef9502e78
First cut at release notes for 2.1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137981 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 16:45:59 +00:00
Stephen Colebourne
cf9f073b26
Add since tags
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137980 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 15:20:30 +00:00
Stephen Colebourne
7df3b63cb3
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137979 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 15:19:40 +00:00
Stephen Colebourne
1ae0107b35
Add initial version of StrBuilder, currently without any tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137978 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 15:09:52 +00:00
Stephen Colebourne
5111ae7db0
Rework DurationFormatUtils to have clearer API based on two types of formatting
...
Fix millisecond formatting bug
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137977 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 23:11:31 +00:00
Stephen Colebourne
275aab5d86
Fix test for changed exception message
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137976 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 23:10:33 +00:00
Stephen Colebourne
5417810157
Remove commented out code that never went anywhere
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137975 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 20:57:18 +00:00
Stephen Colebourne
092d2010eb
Update Javadoc to better describe the behaviour and use cases of the exceptions
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137974 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 20:55:01 +00:00
Gary D. Gregory
3dbb90fe58
'enum' should not be used as an identifier, since it is a reserved keyword from source level 1.5.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137973 13f79535-47bb-0310-9956-ffa450edef68
2004-10-15 00:43:29 +00:00
Stephen Colebourne
4d7e4b5e78
Add Date equivalent of isSameDay method
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137972 13f79535-47bb-0310-9956-ffa450edef68
2004-10-13 21:48:00 +00:00
Stephen Colebourne
097aa30a36
Remove lastIndex(), which is better done as getLength() - 1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137971 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 18:56:16 +00:00
Stephen Colebourne
f4f34dc60a
Fix bug where add() didn't use array type
...
Remove unecessary calls to lastIndex() for performance
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137970 13f79535-47bb-0310-9956-ffa450edef68
2004-10-09 11:55:51 +00:00
Stephen Colebourne
657eac9347
Change behaviour of indexOf to match subclasses, with appropriate comments
...
bug 30929
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137969 13f79535-47bb-0310-9956-ffa450edef68
2004-10-09 10:45:24 +00:00
Stephen Colebourne
fbaf1c371a
Add additional method to support subclass searching of exceptions in a chain
...
bug 30929
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137968 13f79535-47bb-0310-9956-ffa450edef68
2004-10-09 10:04:04 +00:00
Gary D. Gregory
2610570ec1
Javadoc hashCode() more precisely.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137967 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 22:29:33 +00:00
Stephen Colebourne
c1757779c6
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137966 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 22:10:37 +00:00
Stephen Colebourne
8f56942301
Extra tests based on Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137965 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 22:10:23 +00:00
Stephen Colebourne
468efa24c7
Rename allElementsOfClass to allElementsOfType, and change to instanceof check
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137964 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 21:44:41 +00:00
Stephen Colebourne
b2214a272b
Remove wrong Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137963 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 21:33:03 +00:00
Stephen Colebourne
ad794c4978
Add isTrue and isFalse methods
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137962 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 21:27:00 +00:00
Gary D. Gregory
49e1f137eb
- Added javadoc package.html
...
- Removed all "implements java.io.Serializable" since java.lang.Number already declares it.
- New Javadoc for equals(Object) methods to match Number subclasses, in particular to provide more details for Float and Double.
- equals(Object) methods now use /type/Value() calls instead of ".value" direct references (similar impl to Number subclasses).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137961 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 19:45:46 +00:00
Stephen Colebourne
beed062120
Add since tags for 2.1 and fix Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137960 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 00:11:22 +00:00
Stephen Colebourne
c9e1d29360
Add since tags for 2.1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137959 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 00:11:00 +00:00
Stephen Colebourne
16938363f6
Fix javadoc to refer to the correct entities
...
from knuti at ibm
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137958 13f79535-47bb-0310-9956-ffa450edef68
2004-10-07 22:45:27 +00:00
Stephen Colebourne
f27ed8f698
Rename Tokenizer to StrTokenizer and move to text subpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137957 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 22:29:25 +00:00
Stephen Colebourne
6fe93ed44e
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137956 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:40:09 +00:00
Henri Yandell
59d5f2f523
CharacterEncoding renamed to CharEncoding
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137955 13f79535-47bb-0310-9956-ffa450edef68
2004-10-02 01:46:30 +00:00
Henri Yandell
dd2a1841fc
Calendar.setTimeInMillis(long) is a JDK 1.4 method, so reverting to an older variant
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137954 13f79535-47bb-0310-9956-ffa450edef68
2004-10-02 01:40:30 +00:00
Gary D. Gregory
17c6ebcfa1
Minor format tweak, add some leading spaces to two lines. (One more time, without tabs in the two spots).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137953 13f79535-47bb-0310-9956-ffa450edef68
2004-10-01 22:45:51 +00:00
Gary D. Gregory
dd2f1a2f03
Minor format tweak, add some leading spaces to two lines.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137952 13f79535-47bb-0310-9956-ffa450edef68
2004-10-01 22:32:53 +00:00
Gary D. Gregory
f1106ca1c1
Run mutable tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137951 13f79535-47bb-0310-9956-ffa450edef68
2004-10-01 21:53:50 +00:00
Gary D. Gregory
9c08168c2d
Remove unnecessary type casts.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137950 13f79535-47bb-0310-9956-ffa450edef68
2004-10-01 17:12:29 +00:00
Gary D. Gregory
ef8f9c9842
Javadoc: Replace some HTML anchor hrefs with Javadoc @link and other nits.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137949 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 17:24:47 +00:00
Gary D. Gregory
440ac74e04
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137948 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 16:57:18 +00:00
Gary D. Gregory
74dbcc9b90
Javadoc package description.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137947 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 16:57:05 +00:00
Gary D. Gregory
53d9d01b61
The Sun Javadoc for versions prior to 1.3 are off-line:
...
<property name="jdk.javadoc" value="http://java.sun.com/j2se/1.3/docs/api/ "/>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137946 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 16:51:14 +00:00
Henri Yandell
5fdb8a39db
rolled back BUG#30929 pending opinions
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137945 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 07:03:25 +00:00
Henri Yandell
0a08b6e7ef
added javadoc to warn of Bug#31422, reported by Itzik Levin
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137944 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 06:35:52 +00:00
Henri Yandell
11b51253fc
Gary wants us to be more precise :)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137943 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 06:26:37 +00:00
Henri Yandell
2a041e2778
Bug#30929. Shorn Tolley pointed out that using equals() means you can't pass
...
SQLException in and expect to get back extensions of SQLException. Switching
to isAssignableFrom allows you to do this.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137942 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 06:21:40 +00:00
Henri Yandell
cc95d41828
I am such an idiot. It is dd for day of month, not DD. No surprise it was printing 366 and not 31 for the last day of the year. Excuse me while I garotte myself.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137941 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 06:12:17 +00:00
Henri Yandell
f80cb56da1
typo fixed, a couple of extra overload methods added (need javadoc) and formatting for start->end changed to match millis implementation, for a pattern of M, 4 years is reported as 48 months and not 0 months.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137940 13f79535-47bb-0310-9956-ffa450edef68
2004-09-27 04:49:07 +00:00
Henri Yandell
3424e42050
tests updated to not need the removed month/year milli estimates
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137939 13f79535-47bb-0310-9956-ffa450edef68
2004-09-27 04:46:47 +00:00
Henri Yandell
69ec8f4668
teach me to commit without a compile. Removed an overloaded method, so needs another parameter to hit a different overload
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137938 13f79535-47bb-0310-9956-ffa450edef68
2004-09-27 03:40:15 +00:00
Henri Yandell
a453bf410b
fixing the optimisation separation
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137937 13f79535-47bb-0310-9956-ffa450edef68
2004-09-27 03:31:59 +00:00
Henri Yandell
a1414f529c
updated javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137936 13f79535-47bb-0310-9956-ffa450edef68
2004-09-27 03:30:10 +00:00
Henri Yandell
177d40989f
removed the weak assumptions for number of millis in a month/year from DateUtils. Implemented a second format method that relies on a start and an end in DurationFormatUtils, though I found that TimeZone was very important in the overloaded millis version. The two methods hand off to each other depending on whether the time is > or < than 28 days
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137935 13f79535-47bb-0310-9956-ffa450edef68
2004-09-27 03:14:15 +00:00
Henri Yandell
fc447adfef
switched tests away from using the extended format to using just the pattern and the duration format code. Switched a year to being 365.25 days, though months are still quite off when doing durations on milliseconds.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137934 13f79535-47bb-0310-9956-ffa450edef68
2004-09-26 05:45:33 +00:00
Gary D. Gregory
f629a89219
Javadoc nit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137933 13f79535-47bb-0310-9956-ffa450edef68
2004-09-21 02:11:06 +00:00
Henri Yandell
3aab5ae026
Fix for zero-padding of years.
...
A commented out set of failing tests are added to the Unit Test and need to be addressed.
Submitted by: Jerson Chua
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137932 13f79535-47bb-0310-9956-ffa450edef68
2004-09-12 05:03:26 +00:00