Commit Graph

1100 Commits

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