Commit Graph

689 Commits

Author SHA1 Message Date
Henri Yandell 1926fbc379 Added note on Language variant to use.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137590 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 00:08:14 +00:00
Henri Yandell cd5c0cdb42 Deprecated the 'capitalise' spelling and introduced the 'capitalize' spelling.
Despite the UK [or international] English base of many of the developers on
Lang, it was felt that it would be better to match Jakarta as a whole.

Also none of us cared enough to make it an issue.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137589 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 00:04:20 +00:00
Stephen Colebourne 1a99abf1cf Added @since tags
bug 22286, from Phil Steitz
Changed from public to package scope


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137588 13f79535-47bb-0310-9956-ffa450edef68
2003-08-13 23:48:19 +00:00
Stephen Colebourne 8766154678 Added @since tags
bug 22286, from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137587 13f79535-47bb-0310-9956-ffa450edef68
2003-08-13 23:47:39 +00:00
Stephen Colebourne 3e2d12ad71 Improve Fraction Javadoc, implementation and tests
bug 22386, from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137586 13f79535-47bb-0310-9956-ffa450edef68
2003-08-13 23:42:17 +00:00
Stephen Colebourne 20c35a1d87 Added extra alternatives as @see links in toString conversions
improvement suggested by Henning Schmiedehausen


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137585 13f79535-47bb-0310-9956-ffa450edef68
2003-08-13 23:30:58 +00:00
Stephen Colebourne 076630818f Remove specific reference to Assert class.
(conforms to general style of lang test cases)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137584 13f79535-47bb-0310-9956-ffa450edef68
2003-08-13 23:08:06 +00:00
Gary D. Gregory e0ccb82824 Refactor "" string literals to use the new:
public static final String EMPTY = ""
I made EMPTY public since I plan on using it when replacing most of our internal StringUtil class with this StringUtil.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137583 13f79535-47bb-0310-9956-ffa450edef68
2003-08-13 21:32:27 +00:00
Steven Caswell 4332582e88 update parseCVS with default English locale
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137582 13f79535-47bb-0310-9956-ffa450edef68
2003-08-10 13:32:16 +00:00
Steven Caswell f325bbd0d3 updated parseCVS test to use US locale to avoid non-English format problems
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137581 13f79535-47bb-0310-9956-ffa450edef68
2003-08-10 13:30:33 +00:00
Henri Yandell 91a7f67d80 Removing unused variables.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137580 13f79535-47bb-0310-9956-ffa450edef68
2003-08-07 21:12:19 +00:00
Henri Yandell c9ba0a38d3 Reworded the comment on quiet methods returning Null patterns.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137579 13f79535-47bb-0310-9956-ffa450edef68
2003-08-07 03:14:26 +00:00
Steven Caswell 332399a528 added test coverage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137578 13f79535-47bb-0310-9956-ffa450edef68
2003-08-07 00:50:30 +00:00
Gary D. Gregory e92543334a Replace statics *TIMEZONE* with *TIME_ZONE*
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137577 13f79535-47bb-0310-9956-ffa450edef68
2003-08-06 21:13:39 +00:00
Gary D. Gregory 6e2639fb20 Oops, tiny typo: "time zone ." -> "time zone."
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137576 13f79535-47bb-0310-9956-ffa450edef68
2003-08-06 02:48:23 +00:00
Gary D. Gregory 4aa1a9cd4c Minor javadoc change: techinally, "time zone" is two words, not one.
This also argues for changing statics from *TIMEZONE* to *TIME_ZONE*


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137575 13f79535-47bb-0310-9956-ffa450edef68
2003-08-06 01:44:57 +00:00
Steven Caswell 76cfb62b92 corrected the test of parseCVS with "h:mm z" format by replacing the current date/time with a series of calls using hard-coded time values
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137574 13f79535-47bb-0310-9956-ffa450edef68
2003-08-06 00:42:56 +00:00
Steven Caswell 8b2c1cf865 applied Javadoc corrections
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137573 13f79535-47bb-0310-9956-ffa450edef68
2003-08-06 00:04:37 +00:00
Steven Caswell f491166adb - fixed javadoc typos
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137572 13f79535-47bb-0310-9956-ffa450edef68
2003-08-05 21:15:49 +00:00
Stephen Colebourne 70d0151452 Rework Enum JDK1.2 solution to avoid needing to store Class
in Serialized object.
Added more tests, improved performance
bug 19030


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137571 13f79535-47bb-0310-9956-ffa450edef68
2003-08-05 00:24:02 +00:00
Stephen Colebourne 8b1992ee2f Rework Functional Enums to work on JDK1.2
bug 19030


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137570 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 23:52:27 +00:00
Stephen Colebourne cf7f46f654 Extra tests inspired by Clover
bug 22098, from Phil Steitz


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137569 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 19:51:00 +00:00
Stephen Colebourne 30426cf21e Extra tests suggested by Clover
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137568 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 02:01:53 +00:00
Stephen Colebourne 8e8b50466b Make serialvers consistent
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137567 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 01:20:47 +00:00
Stephen Colebourne 93e3168da1 Rename includeXxx() to containsXxx()
for consistency with rest of [lang] and Java


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137566 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 01:14:02 +00:00
Stephen Colebourne d43b319902 Improve CharSet testing
bug 22095, from Phil Steitz
Rewrite CharSet parsing, much neater and simpler now


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137565 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 00:50:14 +00:00
Stephen Colebourne 34f6fa8a78 Add additional constructor to complete the set
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137564 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 00:46:47 +00:00
Steven Caswell a3ae0e2804 Added tests to increase coverage (suggested by Clover)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137563 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 00:21:19 +00:00
Steven Caswell 0b3fe95c2b Updated iterator method javadocs to specify valid values of the range style argument
Added throwing IllegalArgumentException in parseCVS method when "last x" is unknown type


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137562 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 00:19:43 +00:00
Stephen Colebourne d35d966e65 Add tolerance checking to indexOf methods
bug 22091, from Tim O'Brien


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137561 13f79535-47bb-0310-9956-ffa450edef68
2003-08-03 23:29:19 +00:00
Stephen Colebourne 3401226d40 Javadoc fixes
bug 22094, from Tim O'Brien


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137560 13f79535-47bb-0310-9956-ffa450edef68
2003-08-03 22:43:03 +00:00
Stephen Colebourne e356710ae4 Attempt to get around a JDK Linux bug
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137559 13f79535-47bb-0310-9956-ffa450edef68
2003-08-02 18:38:36 +00:00
Stephen Colebourne 9114dac200 Update status docs following CharRange/CharSet change
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137558 13f79535-47bb-0310-9956-ffa450edef68
2003-08-02 18:28:19 +00:00
Stephen Colebourne 0b1885821a Completely rework CharRange and CharSet.
Add multiple tests to fully define the set syntax.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137557 13f79535-47bb-0310-9956-ffa450edef68
2003-08-02 18:18:33 +00:00
Stephen Colebourne 5fd988cfcb Improve toString() using StringBuffer
from Chris Feldhacker


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137556 13f79535-47bb-0310-9956-ffa450edef68
2003-08-02 11:20:49 +00:00
Stephen Colebourne fd27d2ecdf Reorder indexOf methods in file
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137555 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 23:58:30 +00:00
Stephen Colebourne 8ce98776ee Complete the indexOfAny() method set
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137554 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 23:54:41 +00:00
Stephen Colebourne 0dce2b5285 Relax exceptions in leftPad(), rightPad() and center()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137553 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 23:20:06 +00:00
Stephen Colebourne 9a51cf5efc Relax exceptions in left(), right() and mid()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137552 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 23:11:55 +00:00
Stephen Colebourne f085c58744 Add overlay() as a replacement for overlayString()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137551 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 23:01:52 +00:00
Stephen Colebourne 95c2d8bbad Add substringBetween() as a replacement for getNestedString()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137550 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 22:05:43 +00:00
Stephen Colebourne 4da8084e45 Add join(Object[]) as a replacement for concatenate
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137549 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 21:02:16 +00:00
Stephen Colebourne a2bb66002d File formatting for clarity
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137548 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 20:45:17 +00:00
Stephen Colebourne 035055e826 Extra tests suggested by Clover
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137547 13f79535-47bb-0310-9956-ffa450edef68
2003-08-01 00:12:32 +00:00
Stephen Colebourne 87b920c44b Hide NPE from ArrayUtils as IAE
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137546 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 23:55:57 +00:00
Stephen Colebourne bcfc9c2602 Make ClassUtils handle null more nicely
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137545 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 23:47:20 +00:00
Stephen Colebourne aa3b4bbccc Unify exception handling re IAE
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137544 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 23:45:28 +00:00
Stephen Colebourne 43db5237ab Fix RandomStringUtils to not throw NPE all the time
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137543 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 23:24:35 +00:00
Stephen Colebourne 6d98f1d5f3 Extra tests suggested by Clover
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137542 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 23:03:46 +00:00
Stephen Colebourne f62d2f0590 Extra tests suggested by Clover
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137541 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 22:36:39 +00:00