Gary D. Gregory
2546311b27
Added ordinalIndexOf() and associated unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137663 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 18:18:18 +00:00
Phil Steitz
b586a8123d
Added missing constructor calls to complete path coverage in IntRangeTest.
...
Suggested by Janek Bogucki.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137662 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 16:25:56 +00:00
Phil Steitz
e0bee37d15
Added stringToFloat to NumberUtils
...
Patch contributed by Fredrik Westermarck
Reviewed by Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137661 13f79535-47bb-0310-9956-ffa450edef68
2003-09-04 07:27:12 +00:00
Stephen Colebourne
f20a3903bb
Fix Javadoc problems arising from recent commits
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137658 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 10:39:20 +00:00
Gary D. Gregory
d9feeca6e4
Class Javadoc: Normalize the first sentence.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137656 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 00:41:29 +00:00
Gary D. Gregory
4b4b5a8295
Class Javadoc: Normalize the first sentence.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137655 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 00:22:53 +00:00
Gary D. Gregory
3ac49984ed
Class Javadoc: Normalize the first sentence and some @see's and {@link}s
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137654 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 00:21:49 +00:00
Gary D. Gregory
338dc559fe
Class Javadoc: Normalize on the active voice, "Returns", "Sets", etc.
...
The .lang pkg now lists with consistent format in the package level doc too.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137653 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 17:25:33 +00:00
Gary D. Gregory
172095f52e
Javadoc: Normalize on the active voice, "Returns", "Sets", etc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137652 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 16:57:04 +00:00
Gary D. Gregory
95bce1fb29
Javadoc: Added missing end tags for <li>.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137651 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 16:34:06 +00:00
Gary D. Gregory
22aeaddb5e
Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137647 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 03:06:36 +00:00
Gary D. Gregory
70075bdf4a
Renamed StringUtils.differenceAt() to StringUtils.indexOfDifference()
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137645 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 22:13:24 +00:00
Gary D. Gregory
fac4f8d2d6
Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137644 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 15:52:55 +00:00
Gary D. Gregory
f74b10ecad
Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137643 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 15:13:09 +00:00
Gary D. Gregory
7fedb2b1cc
Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137642 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:57:21 +00:00
Gary D. Gregory
8b34e1dffc
Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137641 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:35:23 +00:00
Gary D. Gregory
4e3962a6e4
Follow same @author style.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137640 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:26:02 +00:00
Gary D. Gregory
07ea8e7fa2
Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137639 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 05:25:34 +00:00
Henri Yandell
f5a4e148c5
Removed UtilTestSuite
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137633 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 02:38:56 +00:00
Henri Yandell
5c40d53bf0
Moved BitField and Validate from the util package up to the main package.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137632 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 02:32:16 +00:00
Stephen Colebourne
8d36a61bb5
Remove evaluateSet(String) which is deprecated, but wasn't in 1.0.1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137631 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 00:21:46 +00:00
Stephen Colebourne
73031bac98
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137630 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 00:11:20 +00:00
Gary D. Gregory
8348f8b8dc
Removed: The private field DateUtils.dateFormats is never read locally.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137629 13f79535-47bb-0310-9956-ffa450edef68
2003-08-18 21:52:39 +00:00
Henri Yandell
379d1bcac3
Applied Gary's fix of "acknowlegement" to "acknowledgement" in all java files.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137625 13f79535-47bb-0310-9956-ffa450edef68
2003-08-18 02:22:28 +00:00
Stephen Colebourne
b5c1a4795f
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137622 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 23:31:44 +00:00
Stephen Colebourne
c9fe5f02aa
Add capitalizeFully() to deal with a whole string whatever its current state
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137621 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 23:06:11 +00:00
Stephen Colebourne
d1d8827200
Move capitalizeAllWords, uncapitalizeAllWords, swapCase to WordUtils
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137620 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 22:59:28 +00:00
Stephen Colebourne
47367eb9ab
Rename WordWrapUtils to WordUtils
...
Refactor wrapLine method, making it public and work properly
Remove wrapText method
Test
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137618 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 21:57:37 +00:00
Henri Yandell
8cd3765a60
Pulled the test for WordWrapUtils from this class. Will need adding back in later.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137615 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 19:41:17 +00:00
Stephen Colebourne
84d0246c92
Missing Apache licence
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137613 13f79535-47bb-0310-9956-ffa450edef68
2003-08-17 02:15:48 +00:00
Stephen Colebourne
b25c0aff6c
Javadoc changes
...
bug 22480, from Pete Gieser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137612 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 13:02:14 +00:00
Stephen Colebourne
96de49e7ae
Deprecate shortClassName in favour of useShortClassName for consistency
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137611 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 12:56:25 +00:00
Stephen Colebourne
e84bafdfe5
Organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137610 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 12:48:22 +00:00
Stephen Colebourne
512753f347
Javadoc clarity
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137609 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 12:45:38 +00:00
Stephen Colebourne
443e9b3696
Javadoc changes
...
bug 22480, from Pete Gieser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137608 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 12:41:23 +00:00
Stephen Colebourne
6ed0e0b718
Javadoc changes
...
bug 22480, from Pete Gieser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137607 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 11:15:42 +00:00
Stephen Colebourne
89d68fcd96
uncapitaliseAllWords was not in 1.0.1, so it should not be in 2.0 as deprecated
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137606 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 10:36:00 +00:00
Stephen Colebourne
219fc47a0d
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137605 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 09:50:59 +00:00
Henri Yandell
7c2ce42936
Commented out the parseCVS code for consideration/fixing for Lang 2.1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137600 13f79535-47bb-0310-9956-ffa450edef68
2003-08-15 16:14:35 +00:00
Gary D. Gregory
cebf61b873
Javadoc: Add matching </li> tags.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137599 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 02:20:48 +00:00
Gary D. Gregory
826567f826
Javadoc improvements, clean up and fix a missing </code> tag.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137598 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 01:49:03 +00:00
Henri Yandell
d431527275
Added in Javadoc for deprecated capitalise methods.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137597 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 01:21:36 +00:00
Gary D. Gregory
e246e1e126
Forgot the @author tag.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137596 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 01:16:30 +00:00
Gary D. Gregory
ce55228326
A couple more cap/uncap tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137595 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 01:15:51 +00:00
Gary D. Gregory
8e74bb298e
Fix 2 Javadoc typos and cross-reference cap/uncapitaliZe methods ;-)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137594 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 00:59:39 +00:00
Stephen Colebourne
9c6e4b0421
Add text to describe when deprecated methods removed
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137592 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 00:14:20 +00:00
Stephen Colebourne
3e439de47b
Use ClassUtils to get the short class name
...
suggested by Pete Gieser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137591 13f79535-47bb-0310-9956-ffa450edef68
2003-08-14 00:10:42 +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
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
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
Stephen Colebourne
c6bfb25997
Extra tests suggested by Clover
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137540 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 22:31:12 +00:00
Stephen Colebourne
ed86f124d6
Emit correct exceptions
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137539 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 22:30:07 +00:00
Stephen Colebourne
4926914ecb
Fix CharSetUtils to not throw NPE all the time
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137538 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 21:32:47 +00:00
Stephen Colebourne
357851bdb1
Add replaceChars() to StringUtils
...
Deprecate translate() on CharSetUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137537 13f79535-47bb-0310-9956-ffa450edef68
2003-07-31 20:38:26 +00:00
Stephen Colebourne
7f7d37421a
Bring EnumUtils public constructor testing in line with main package
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137534 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 23:21:39 +00:00
Stephen Colebourne
d793a1fd62
Lang version 1.0.1 serial compatability
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137533 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 23:17:23 +00:00
Stephen Colebourne
7f9f65f7e2
Extra tests and optimisations suggested by Clover
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137532 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 23:13:09 +00:00
Stephen Colebourne
c7767ea25b
Additional tests as suggested by Clover report
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137531 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 22:21:39 +00:00
Stephen Colebourne
35b8cc4ce3
Fixes arising from Clover report
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137530 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 22:17:49 +00:00
Stephen Colebourne
45232572e2
Update javadoc to better describe method
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137529 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 22:17:00 +00:00
Stephen Colebourne
61df6f8b53
Make package scoped
...
Format as per the [lang] coding standards
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137528 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 21:16:13 +00:00
Stephen Colebourne
3a8907682b
Javadoc fixes and improved tests
...
bug 21952, from Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137524 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 00:08:38 +00:00
Stephen Colebourne
4f1528447c
Redo null/empty string checking for performance
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137522 13f79535-47bb-0310-9956-ffa450edef68
2003-07-28 21:37:32 +00:00
Gary D. Gregory
c8ecea62ca
Severity Description Resource In Folder Location Creation Time
...
The private field StringEscapeUtils.DEFAULT_ENTITIES is never read locally StringEscapeUtils.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang line 80 July 28, 2003 9:17:25 AM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137521 13f79535-47bb-0310-9956-ffa450edef68
2003-07-28 16:17:57 +00:00
Gary D. Gregory
3b19309d76
Fix http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21904 as suggested (but with the guard clause factored in a method.)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137520 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 19:12:30 +00:00
Stephen Colebourne
9410b31864
Remove final status, classes can be subclassed
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137519 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:39:04 +00:00
Stephen Colebourne
89d6fa50c5
Update padding to be thread-safe
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137518 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:35:35 +00:00
Stephen Colebourne
f3506beb79
Variables renamed to capitals
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137517 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:34:47 +00:00
Stephen Colebourne
a86463bcc2
Declare variables final, and rename to capitals
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137516 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:34:19 +00:00
Stephen Colebourne
bdbdb49ace
Declare variable final
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137515 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 15:33:34 +00:00
Stephen Colebourne
3f532cf5c3
Add test for indexOf edge case
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137514 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:36:30 +00:00
Stephen Colebourne
3d97997494
Comment out unreliable test based on stack trace
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137513 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:36:00 +00:00
Stephen Colebourne
89e735ed4e
Handle JDK1.2/JDK1.3 bug in String.indexOf
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137512 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:34:49 +00:00
Stephen Colebourne
9345b31d15
Fix bug in isNestedThrowable, shown on JDK<1.4
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137511 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 14:22:21 +00:00
Stephen Colebourne
ccb2c966f9
Update null handling in ExceptionUtils
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137509 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 13:11:21 +00:00
Stephen Colebourne
96de08907e
Update null handling in ExceptionUtils
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137508 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 13:05:21 +00:00
Stephen Colebourne
5943137656
Javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137507 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 13:00:36 +00:00
Stephen Colebourne
7edd55554a
Fix Javadoc troubles
...
from Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137506 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 10:32:17 +00:00
Gary D. Gregory
b612cd4156
In 2 places, removed local var def before return of var, replaced with actual expression.
...
This follows the other methods' code pattern.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137505 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 02:57:37 +00:00
Gary D. Gregory
f133c130bc
Severity Description Resource In Folder Location Creation Time
...
Unnecessary cast to type int for expression of type int Fraction.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/math line 391 July 25, 2003 5:56:34 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137504 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:57:02 +00:00
Gary D. Gregory
da00e1d426
Avoid Javadoc warning with Standard Doclet version 1.4.2.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137503 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:45:27 +00:00
Gary D. Gregory
77f8c186f2
Severity Description Resource In Folder Location Creation Time
...
Unnecessary cast to type int for expression of type char Entities.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang line 643 July 23, 2003 11:22:37 AM
Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int Entities.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang line 642 July 23, 2003 11:22:37 AM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137502 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:32:19 +00:00
Gary D. Gregory
9e100212ce
Severity Description Resource In Folder Location Creation Time
...
Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int EntitiesTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang line 130 July 23, 2003 11:22:39 AM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137501 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:31:29 +00:00
Gary D. Gregory
e81e45f27f
Severity Description Resource In Folder Location Creation Time
...
Unnecessary cast to type int for expression of type char RandomStringUtils.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang line 259 July 23, 2003 11:22:36 AM
Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int RandomStringUtils.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang line 258 July 23, 2003 11:22:36 AM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137500 13f79535-47bb-0310-9956-ffa450edef68
2003-07-26 00:26:32 +00:00
Stephen Colebourne
98732b58ca
Change as recommended by findBugs
...
(static variables private or final, and Boolean constructor optimisation)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137499 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:06:58 +00:00
Gary D. Gregory
d9816dab73
Severity Description Resource In Folder Location Creation Time
...
Unnecessary cast to type String[] for expression of type Object[]. It is already compatible with the argument type Object NestableDelegate.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/exception line 378 July 23, 2003 11:22:36 AM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137498 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:05:22 +00:00
Gary D. Gregory
85d33454a1
Severity Description Resource In Folder Location Creation Time
...
Unnecessary cast to type Object for expression of type Object ToStringStyle.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 420 July 23, 2003 11:22:36 AM
Unnecessary cast to type Object for expression of type Object ToStringStyle.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 422 July 23, 2003 11:22:36 AM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137497 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:04:24 +00:00
Gary D. Gregory
43dd7284cf
Severity Description Resource In Folder Location Creation Time
...
Unnecessary cast to type int for expression of type byte. It is already compatible with the argument type int HashCodeBuilder.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 471 July 23, 2003 11:22:36 AM
Unnecessary cast to type int for expression of type char. It is already compatible with the argument type int HashCodeBuilder.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 460 July 23, 2003 11:22:36 AM
Unnecessary cast to type int for expression of type short. It is already compatible with the argument type int HashCodeBuilder.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 449 July 23, 2003 11:22:36 AM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137496 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 23:03:30 +00:00
Stephen Colebourne
247c97f507
Remove unneeded String constructor as found by findBugs
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137495 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 22:53:49 +00:00
Stephen Colebourne
a303646251
Javadoc and tests for ObjectUtils
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137494 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 22:37:59 +00:00
Stephen Colebourne
7ff6e3a30f
Rename slice functions to substringAfter/substringBefore
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137493 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 22:22:30 +00:00
Stephen Colebourne
d33605dfc9
Update slice methods to be more consistent
...
from Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137492 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 00:50:00 +00:00
Stephen Colebourne
e758deb5e8
Add extra example code javadoc and related tests
...
bug 21797, from Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137491 13f79535-47bb-0310-9956-ffa450edef68
2003-07-22 23:36:40 +00:00
Stephen Colebourne
e00c4a2546
Increase explanation comment, requested by Gary Gregory
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137490 13f79535-47bb-0310-9956-ffa450edef68
2003-07-22 00:09:14 +00:00
Stephen Colebourne
2d17989e28
Fix stupid compile error....
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137489 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:32:41 +00:00
Stephen Colebourne
1f0aeca4d5
Javadoc fixes
...
bug 21758, from Pete Gieser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137488 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:30:42 +00:00
Stephen Colebourne
dbe97c09ca
Javadoc fixes
...
bug 21758, from Pete Gieser
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137487 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:14:37 +00:00
Stephen Colebourne
a1e6b5d617
Reverse recent addition of date formatting. Better solution required.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137486 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 23:03:53 +00:00
Stephen Colebourne
6a0ce20988
Fix class so IS_JAVA_* and IS_OS_* constants work correctly.
...
bug 21767, from Tetsuya Kaneuchi
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137485 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 22:57:51 +00:00
Gary D. Gregory
0e08941e69
Severity Description Resource In Folder Location Creation Time
...
Superfluous semicolon NumberUtilsTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math line 157 July 20, 2003 12:01:26 PM
Superfluous semicolon NumberUtilsTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math line 168 July 20, 2003 12:01:26 PM
Superfluous semicolon NumberUtilsTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math line 179 July 20, 2003 12:01:26 PM
Superfluous semicolon NumberUtilsTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math line 190 July 20, 2003 12:01:26 PM
Superfluous semicolon NumberUtilsTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math line 201 July 20, 2003 12:01:26 PM
Superfluous semicolon NumberUtilsTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math line 212 July 20, 2003 12:01:26 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137483 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 19:42:12 +00:00
Gary D. Gregory
3d3276ba5a
Missing '.' caused the Javadoc warning:
...
[javadoc] Generating C:\cvs-store\apache.org\jakarta\commons\lang\dist\docs\api\index-all.html...
[javadoc] "<p>Append to the <code>toString</code> a <code>Date</code>
[javadoc] value, using the optional <code>DateFormat</code>"
[javadoc] C:\cvs-store\apache.org\jakarta\commons\lang\src\java\org\apache\commons\lang\builder\ToStringStyle.java:476: warning - The first sentence is interp
reted to be:
[javadoc] This sentence is different from what will be interpreted as the first sentence in the
[javadoc] next major release (when that interpretation will be internationalized), which is:
[javadoc] "<p>Append to the <code>toString</code> a <code>Date</code>
[javadoc] value, using the optional <code>DateFormat</code></p>"
[javadoc] To avoid this note, change the doc comment to make this a proper first sentence, then
[javadoc] use -breakiterator from that point forward, which will output this new sentence.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137482 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 19:34:10 +00:00
Stephen Colebourne
f434e7ba71
Update Javadoc examples
...
Change mid() to accept invalid startPos
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137480 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 00:41:13 +00:00
Stephen Colebourne
d381baaf33
Update Javadoc and tests
...
bug 21750, from Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137479 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 23:57:26 +00:00
Gary D. Gregory
82c4c69189
Severity Description Resource In Folder Location Creation Time
...
Superfluous semicolon RandomUtilsTest.java Apache Jakarta Commons/lang/src/test/org/apache/commons/lang/math line 315 July 18, 2003 8:21:31 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137478 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 18:58:46 +00:00
Stephen Colebourne
af6aba957f
Update null handling behaviour and documentation
...
bug 21734, from Phil Steiz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137476 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 16:03:21 +00:00
Stephen Colebourne
69756032f5
Organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137475 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 15:49:58 +00:00
Stephen Colebourne
9af8bc1c40
Remove defaultString(Object) from StringUtils
...
Add toString(Object) to ObjectUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137474 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 15:41:52 +00:00
Stephen Colebourne
1ea34cbbba
Add more javadoc example code
...
Ensure empty string behaviour documented in example code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137473 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 15:29:44 +00:00
Stephen Colebourne
91a22bc494
Add summary javadoc section to StringUtils class
...
Rename reverseDelimitedString to reverseDelimited
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137472 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 14:47:29 +00:00
Stephen Colebourne
4c1e760dd8
Add new method center(String, int, char) to complete API
...
Rework padding internals
Example javadoc difference()/differenceAt()
Remove dependency on NumberUtils
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137471 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 10:29:22 +00:00
Stephen Colebourne
5d5af47995
Fix wrong javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137470 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 10:24:49 +00:00
Gary D. Gregory
2cf366c11a
Severity Description Resource In Folder Location Creation Time
...
The static field DateFormat.FULL should be accessed directly FastDateFormat.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time line 112 July 19, 2003 5:17:12 PM
The static field DateFormat.LONG should be accessed directly FastDateFormat.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time line 116 July 19, 2003 5:17:12 PM
The static field DateFormat.MEDIUM should be accessed directly FastDateFormat.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time line 120 July 19, 2003 5:17:12 PM
The static field DateFormat.SHORT should be accessed directly FastDateFormat.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/time line 124 July 19, 2003 5:17:12 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137469 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:21:29 +00:00
Gary D. Gregory
155533d20d
Severity Description Resource In Folder Location Creation Time
...
Superfluous semicolon MethodUtils.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/reflect line 491 July 18, 2003 8:21:29 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137468 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:13:54 +00:00
Gary D. Gregory
cd63d78c4a
Severity Description Resource In Folder Location Creation Time
...
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly ReflectionToStringBuilder.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 346 July 18, 2003 8:21:31 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137467 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:13:14 +00:00
Gary D. Gregory
42a2549dc0
Severity Description Resource In Folder Location Creation Time
...
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly HashCodeBuilder.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 341 July 18, 2003 8:21:31 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137466 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:12:32 +00:00
Gary D. Gregory
d27569f61a
Severity Description Resource In Folder Location Creation Time
...
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly EqualsBuilder.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 268 July 19, 2003 6:10:35 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137465 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 01:11:05 +00:00
Stephen Colebourne
243fb789c6
Group all the trim/strip methods together in source file
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137464 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 00:37:09 +00:00
Stephen Colebourne
30ddfad67f
Deprecate deleteSpaces()
...
Move delete methods next to replace
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137463 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 00:17:29 +00:00
Stephen Colebourne
97adbab600
Add new methods stripToNull/stripToEmpty to provide alternative to trim versions
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137462 13f79535-47bb-0310-9956-ffa450edef68
2003-07-20 00:04:12 +00:00
Stephen Colebourne
51af2aef0b
Add new methods for null-safe indexOf/lastIndexOf
...
Add new methods for contains
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137461 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 23:29:06 +00:00
Stephen Colebourne
9ea271c0c7
Move IndexOf and Contains tests to StringUtilsEqualsIndexOfTest
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137460 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 23:28:23 +00:00
Stephen Colebourne
895cedb404
Rework isEmpty and isNotEmpty following user feedback
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137459 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 21:55:05 +00:00
Stephen Colebourne
9001aa2613
Update null behaviour for consistency and clarity
...
Doument null behaviour
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137458 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:22:36 +00:00
Stephen Colebourne
8c6294dd70
Document null behaviour
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137457 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:21:39 +00:00
Stephen Colebourne
a0aef72d87
Update original file location to author tag for consistency
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137456 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:21:08 +00:00
Stephen Colebourne
f52c84195f
Change error text to be more clear
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137455 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 20:19:24 +00:00
Stephen Colebourne
2a1cabe169
Update author tags
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137454 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 19:54:24 +00:00
Stephen Colebourne
7e0990cccc
Additional testing, especially in the area of whitespace
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137453 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 18:10:30 +00:00
Stephen Colebourne
6c009fd782
Fix split to use whitespace, remove StringTokenizer
...
Performance tune some methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137452 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 18:09:33 +00:00
Gary D. Gregory
4bf65d4732
Severity Description Resource In Folder Location Creation Time
...
The static method setAccessible(AccessibleObject[], boolean) from the type AccessibleObject should be accessed directly CompareToBuilder.java Apache Jakarta Commons/lang/src/java/org/apache/commons/lang/builder line 254 July 18, 2003 7:11:22 PM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137451 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 03:25:38 +00:00
Stephen Colebourne
4e070edf4b
Minor performance tweaks, and some extra tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137450 13f79535-47bb-0310-9956-ffa450edef68
2003-07-19 00:22:50 +00:00
Stephen Colebourne
59b77af292
Fixed leftPad() and rightPad() to correctly handle multi letter pad strings
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137449 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 23:57:43 +00:00
Gary D. Gregory
b1a7e16922
Added an ISO 8601 formatter for the date time extended format used in durations, with XML Schema durations particularly in mind.
...
Note that the util class is still a package level class only.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137448 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 17:05:54 +00:00
Gary D. Gregory
b870bcd7c0
Added an ISO 8601 formatter for the date time extended format used in durations, with XML Schema durations particularly in mind.
...
Note that this is still a package level class only.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137447 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 17:04:31 +00:00
Gary D. Gregory
bed05aef0e
PR: 21715
...
Obtained from: commons-dev
Submitted by: KANEUCHI Tetsuya [mailto:tetsuyak@ka2.so-net.ne.jp]
Reviewed by: Gary Gregory
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137446 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 16:48:25 +00:00
Stephen Colebourne
90d076139e
Null handling changes
...
Javadoc fixes and tidying
File layout grouping
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137445 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 02:06:24 +00:00
Stephen Colebourne
b026fbd30f
Update Null handling in StringUtils to handle nulls quietly
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137444 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 23:56:45 +00:00
Stephen Colebourne
7b88508ce9
Update Null handling in StringUtils to handle nulls quietly
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137443 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 23:45:39 +00:00
Stephen Colebourne
2a94c6d2e5
Remove StringUtils.unescape
...
Its deprecated, and wasn't in 1.0
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137442 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 21:23:50 +00:00
Stephen Colebourne
f59fb46272
Implement changes to StringUtils.isEmpty and friends
...
This is an incompatible change for isEmpty and isNotEmpty from 1.0
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137441 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 21:19:22 +00:00
Stephen Colebourne
25b9bd6244
Remove old unused commented out code
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137440 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 20:19:24 +00:00
Gary D. Gregory
7d9d08c4fc
The private field FastDateFormatTest.fastDateFormat is never read locally (line 76)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137439 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 05:14:43 +00:00
Gary D. Gregory
61dd85ca2f
Refactor such that the ObjectUtils.identityToString() method logic is only in ObjectUtils and not duplicated in the builder package.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137438 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 01:47:40 +00:00
Stephen Colebourne
0dd253a756
Javadoc null behaviour
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137437 13f79535-47bb-0310-9956-ffa450edef68
2003-07-16 00:39:05 +00:00
Stephen Colebourne
1206dcd401
Update Javadoc defining empty, space and whitespace
...
Improve performance of repeat
Add defaultString(String) back in for performance
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137435 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 23:41:54 +00:00
Stephen Colebourne
5a0ff3f957
Javadoc typo
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137434 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 23:12:51 +00:00
Gary D. Gregory
54b752653d
Give a Javadoc example for overridding the accept method.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137433 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 23:04:23 +00:00
Henri Yandell
1afb92a31c
Version 2.0 of the Lang specification
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137430 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 00:07:07 +00:00
Henri Yandell
e1d1630351
Updated the manifest to pretty much match http://jakarta.apache.org/commons/releases/prepare.html
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137428 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 23:35:39 +00:00
Stephen Colebourne
d516948613
Javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137423 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 23:02:27 +00:00
Stephen Colebourne
10e73ca2d2
Unify format of NOTE comments
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137422 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 23:02:08 +00:00
Stephen Colebourne
0d38944091
Update Avalon references
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137421 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:58:31 +00:00
Henri Yandell
faf34a0bb7
Solely Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137420 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:29:04 +00:00
Henri Yandell
00dc5a8684
Javadoc fixes and change from append(String) to append(char)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137419 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:28:48 +00:00
Stephen Colebourne
18f71280b5
Add and rework isEmpty, isNotEmpty, isEmptyTrimmed, isNotEmptyTrimmed
...
Javadoc methods, adding example code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137418 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:26:51 +00:00
Stephen Colebourne
83dd0ea7b8
Add and rework isEmpty, isNotEmpty, isEmptyTrimmed, isNotEmptyTrimmed
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137417 13f79535-47bb-0310-9956-ffa450edef68
2003-07-14 22:26:22 +00:00