Henri Yandell
9bf6c67314
added Class.forName improvement to see what people think
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138016 13f79535-47bb-0310-9956-ffa450edef68
2005-01-27 06:45:11 +00:00
Henri Yandell
4af43102aa
overloaded addAll for all primitives
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138015 13f79535-47bb-0310-9956-ffa450edef68
2005-01-27 06:43:20 +00:00
Henri Yandell
838c1e7d0e
primitive overloads added for add(array, int index, element)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138014 13f79535-47bb-0310-9956-ffa450edef68
2005-01-22 04:22:12 +00:00
Gary D. Gregory
73c601bed5
Add test from http://issues.apache.org/bugzilla/show_bug.cgi?id=33067 .
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138013 13f79535-47bb-0310-9956-ffa450edef68
2005-01-17 01:59:52 +00:00
Gary D. Gregory
e3f46b722e
No bug fix but add a test like http://issues.apache.org/bugzilla/show_bug.cgi?id=33069 .
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138012 13f79535-47bb-0310-9956-ffa450edef68
2005-01-16 19:34:34 +00:00
Stephen Colebourne
cd9922ef8b
ToStringStyle setArrayEnd handled null incorrectly
...
bug 31933, fix from Masato Tezuka
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138011 13f79535-47bb-0310-9956-ffa450edef68
2004-12-28 23:13:03 +00:00
Henri Yandell
2463fd3380
all non-covered parts of the code are now covered. 100% coverage for a package, while not in itself a great thing, feels damn good
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138010 13f79535-47bb-0310-9956-ffa450edef68
2004-12-26 02:35:47 +00:00
Henri Yandell
60666b2ae2
Default is meant to be for the trimmer to be a NoMatcher.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138009 13f79535-47bb-0310-9956-ffa450edef68
2004-12-25 21:02:20 +00:00
Henri Yandell
3155f2ce74
matching the other javadoc style; though I think it's a pretty useless bit of javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138008 13f79535-47bb-0310-9956-ffa450edef68
2004-12-25 20:42:48 +00:00
Henri Yandell
b7e3f07c5f
I assume this is a typo, a second setting of the trimmer matcher.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138007 13f79535-47bb-0310-9956-ffa450edef68
2004-12-25 20:41:23 +00:00
Henri Yandell
bee437f63a
Without this line the code infinite loops. With it the tests still fail, but a failure is nicer than an infinite loop.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138006 13f79535-47bb-0310-9956-ffa450edef68
2004-12-25 20:30:16 +00:00
Henri Yandell
91e2e8e838
Switched to use the static call explicitly (yup, I just started using Eclipse again)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138005 13f79535-47bb-0310-9956-ffa450edef68
2004-12-25 19:50:09 +00:00
Henri Yandell
a776fd026c
Unnecessary imports.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138004 13f79535-47bb-0310-9956-ffa450edef68
2004-12-25 19:43:51 +00:00
Henri Yandell
bcd86e7fbe
more test coverage of obscure situations
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138003 13f79535-47bb-0310-9956-ffa450edef68
2004-12-25 17:52:19 +00:00
Matthew P. Inger
57b94c34ea
Added a trimmer matcher which is now used to determine
...
which characters to trim off the left and right of tokens.
the ignore matcher is now truly an ignore matcher, which
will leave out any matching characters from all tokens.
I also fixed a few minor bugs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138002 13f79535-47bb-0310-9956-ffa450edef68
2004-12-23 18:55:48 +00:00
Stephen Colebourne
d669920cb2
Remove Class and Package comparators - too specific set of use cases
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138001 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 22:35:38 +00:00
Henri Yandell
74d20911d4
should now run the last bit of code
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@138000 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 03:30:38 +00:00
Henri Yandell
a33961018a
few more tests to get 100% coverage for Token
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137999 13f79535-47bb-0310-9956-ffa450edef68
2004-12-19 03:23:00 +00:00
Henri Yandell
4932018862
override so it uses the latest clover
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137998 13f79535-47bb-0310-9956-ffa450edef68
2004-12-18 03:06:35 +00:00
Henri Yandell
8beb1547c6
Bug in javadoc example as described in Bugzilla entry 32198.
...
PR: 32198
Submitted by: Ronald Wildenberg
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137997 13f79535-47bb-0310-9956-ffa450edef68
2004-12-18 02:48:01 +00:00
Gary D. Gregory
46643a1325
Javadoc nits.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137996 13f79535-47bb-0310-9956-ffa450edef68
2004-12-12 22:36:20 +00:00
Gary D. Gregory
1ad7fd1e5a
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137995 13f79535-47bb-0310-9956-ffa450edef68
2004-11-23 19:15:28 +00:00
Stephen Colebourne
167c031371
Handle Java version with text prefix, as found on HP-UX
...
bug 32123, from Jason Gritman
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137994 13f79535-47bb-0310-9956-ffa450edef68
2004-11-12 00:48:41 +00:00
Gary D. Gregory
bf0e5af79d
Javadox typo.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137993 13f79535-47bb-0310-9956-ffa450edef68
2004-11-06 01:27:59 +00:00
Gary D. Gregory
bbdd2932db
Javadoc only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137992 13f79535-47bb-0310-9956-ffa450edef68
2004-10-21 01:18:34 +00:00
Gary D. Gregory
e65e22fe10
Allow Java 1.5 to be used to build with Maven.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137991 13f79535-47bb-0310-9956-ffa450edef68
2004-10-21 00:36:37 +00:00
Gary D. Gregory
d5095df781
Two items:
...
(1) Allow the Java 1.5 to be used to build by adding:
# Specifies the source version for the Java compiler.
# Corresponds to the source attribute for the ant javac task.
# Valid values are 1.3, 1.4, 1.5.
compile.source = 1.3
(2) Refactor the multiple use of the javac/target="1.1" into a build property:
# Generate class files for specific VM version (e.g., 1.1 or 1.2).
# Note that the default value depends on the JVM that is running Ant.
# In particular, if you use JDK 1.4+ the generated classes will not be usable
# for a 1.1 Java VM unless you explicitly set this attribute to the value 1.1
# (which is the default value for JDK 1.1 to 1.3).
compile.target = 1.1
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137990 13f79535-47bb-0310-9956-ffa450edef68
2004-10-21 00:21:39 +00:00
Stephen Colebourne
ac517f7c0d
Add parse method that handles multiple patterns
...
bug 30674
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137989 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 21:06:18 +00:00
Stephen Colebourne
e08b9b890f
Fix unescape to handle invalid entities
...
bug 29149, from Dan Goldberg
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137988 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 18:52:21 +00:00
Stephen Colebourne
d728e81d69
Document how to format a date
...
from bug 21663
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137987 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 18:20:46 +00:00
Stephen Colebourne
084de396a7
Remove dead code
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137986 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 18:13:34 +00:00
Stephen Colebourne
c0722eaddf
Add bug 30929
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137985 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 17:47:48 +00:00
Stephen Colebourne
d19d4a8521
Fix DateUtils.truncate oddity at the far end of the Date spectrum
...
bug 31395, from Marc Portier
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137984 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 17:43:05 +00:00
Stephen Colebourne
22269dccbe
Improve example
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137983 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 17:27:11 +00:00
Stephen Colebourne
61cccd3e0a
Add methods to compare dates and calendars in different ways
...
based on bug 26922
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137982 13f79535-47bb-0310-9956-ffa450edef68
2004-10-16 17:08:42 +00:00
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