Commit Graph

1226 Commits

Author SHA1 Message Date
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
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