Commit Graph

1041 Commits

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