Commit Graph

997 Commits

Author SHA1 Message Date
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
Henri Yandell f010588d53 commented out failing test. need to decide how to fix
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137931 13f79535-47bb-0310-9956-ffa450edef68
2004-09-12 05:02:06 +00:00
Stephen Colebourne fc40d1cb65 Add isSameDay method to DateUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137930 13f79535-47bb-0310-9956-ffa450edef68
2004-09-07 23:03:37 +00:00
Stephen Colebourne e5e5fb3ebd Update constants, ensuring that 64bit longs are used properly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137929 13f79535-47bb-0310-9956-ffa450edef68
2004-09-07 22:50:45 +00:00
Henri Yandell d528509c82 added classes to write about
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137928 13f79535-47bb-0310-9956-ffa450edef68
2004-09-06 00:41:02 +00:00
Henri Yandell 031eaedaad put section in the wrong place
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137927 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 21:48:48 +00:00
Henri Yandell 52486f5266 developer guide moved to the site and hooked into the navigation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137926 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 21:48:08 +00:00
Henri Yandell 0fc469b57c updated user guide
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137925 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 21:47:37 +00:00
Henri Yandell c467592f55 typo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137924 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 20:38:36 +00:00
Henri Yandell 271fc307d2 No longer Antony\'s email
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137923 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 20:09:33 +00:00
Henri Yandell 8b361b4134 tests the state checking and uses SplitTime
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137922 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 19:55:29 +00:00
Henri Yandell 64fa7bc607 linked in userguide, though it needs work
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137921 13f79535-47bb-0310-9956-ffa450edef68
2004-09-05 01:43:45 +00:00
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