Stephen Colebourne
d7210650ff
Add asWriter()
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230918 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 22:44:59 +00:00
Stephen Colebourne
5108fdc8fc
Move reverse method in file to be with other methods returning this
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230912 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 22:05:19 +00:00
Stephen Colebourne
eac9add081
Add append(StringBuffer,int,int) and append(StrBuilder,int,int)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230911 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 22:03:31 +00:00
Stephen Colebourne
3aa15e0c47
Test for correct exception
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230908 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:53:55 +00:00
Stephen Colebourne
e6f6b0dbfa
Fix setLength()
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230906 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:50:57 +00:00
Stephen Colebourne
8048e49d99
Fix javadoc, notably exceptions
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230904 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:46:58 +00:00
Stephen Colebourne
ff6bf42b60
Add append(String, int, int)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230902 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:43:39 +00:00
Gary D. Gregory
5346b0d03c
Fix some Checkstyle and PMD warnings. Extract constants from in-lined '\n' and '\r' in StringUtils.java.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230857 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 18:58:58 +00:00
Gary D. Gregory
1a824f69ad
Statement unnecessarily nested within else clause.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230836 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 18:20:13 +00:00
Gary D. Gregory
ea5f046469
Statement unnecessarily nested within else clause.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230717 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 00:43:36 +00:00
Gary D. Gregory
5f0e40893d
Fix PMD warning: Avoid instantiating Boolean objects; you can usually invoke Boolean.TRUE instead.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230715 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 00:05:21 +00:00
Gary D. Gregory
4afe714859
Adds contributors Oliver Heger and Nathan Beyer.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230713 13f79535-47bb-0310-9956-ffa450edef68
2005-08-07 23:40:09 +00:00
Gary D. Gregory
707e1a4a0b
[Bug 36059] [lang] Wrong length check in StrTokenizer.StringMatcher. From Oliver Heger <oliver.heger@t-online.de>.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230565 13f79535-47bb-0310-9956-ffa450edef68
2005-08-06 18:53:57 +00:00
Gary D. Gregory
1225f4309c
Slightly increments the test coverage for NestableDelegate. Includes a rework of the getMessage(String) method. Courtesy of Nathan Beyer [nbeyer@kc.rr.com].
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230403 13f79535-47bb-0310-9956-ffa450edef68
2005-08-05 06:16:19 +00:00
Stephen Colebourne
93a49f6cb0
Add asReader method
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227320 13f79535-47bb-0310-9956-ffa450edef68
2005-08-04 07:53:46 +00:00
Gary D. Gregory
e77e2124c4
Use the name "buffer", not "buf".
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227240 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 18:02:35 +00:00
Gary D. Gregory
dcfba435bb
Use CAPACITY, not literal magic number.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227239 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 18:00:04 +00:00
Gary D. Gregory
614accbff9
Coverage of StrBuilder#delete(String)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227156 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 04:23:16 +00:00
Gary D. Gregory
097438b3b1
Fixes and better unit test code coverage from Nathan Beyer [nbeyer@kc.rr.com].
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227149 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 02:50:53 +00:00
Gary D. Gregory
ee5b770b08
Fixes and better unit test code coverage from Nathan Beyer [nbeyer@kc.rr.com].
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226934 13f79535-47bb-0310-9956-ffa450edef68
2005-08-02 03:54:55 +00:00
Gary D. Gregory
93b5f2a7ac
[Bug 35966] - [lang] StrBuilderTest#testReplaceStringString fails. From Nathan Beyer nbeyer@kc.rr.com.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226922 13f79535-47bb-0310-9956-ffa450edef68
2005-08-02 01:03:45 +00:00
Gary D. Gregory
23845c1751
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226862 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 19:40:49 +00:00
Gary D. Gregory
159999da0c
More tests. Note that testReplaceStringString fails.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226860 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 19:34:19 +00:00
Gary D. Gregory
020480ad81
Better unit test code coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226713 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 01:21:29 +00:00
Gary D. Gregory
2b6e554ccf
Better unit test coverage for StrTokenizer.java.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226712 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 01:14:57 +00:00
Gary D. Gregory
e47b5d8e75
Better unit test code coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226708 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 00:30:42 +00:00
Gary D. Gregory
1e3ecfff20
Slightly better unit test code coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226704 13f79535-47bb-0310-9956-ffa450edef68
2005-07-31 23:55:24 +00:00
Gary D. Gregory
1b8becc1c1
Range unit test coverage now at 100%.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226703 13f79535-47bb-0310-9956-ffa450edef68
2005-07-31 23:40:55 +00:00
Gary D. Gregory
b8c069723e
Better unit test code coverage from Nathan Beyer [nbeyer@kc.rr.com].
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226702 13f79535-47bb-0310-9956-ffa450edef68
2005-07-31 23:33:32 +00:00
Gary D. Gregory
2a760cb9d5
Replace unnecessary else in if/else's with if guard clause.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226598 13f79535-47bb-0310-9956-ffa450edef68
2005-07-31 01:19:22 +00:00
Gary D. Gregory
3535bf265b
Better code coverage from Nathan Beyer [nbeyer@kc.rr.com].
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226597 13f79535-47bb-0310-9956-ffa450edef68
2005-07-31 01:17:01 +00:00
Gary D. Gregory
be164675fe
Format tweak in a while statement to attempt to get Clover to show better code coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226584 13f79535-47bb-0310-9956-ffa450edef68
2005-07-30 21:53:49 +00:00
Gary D. Gregory
914aec8ee8
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226583 13f79535-47bb-0310-9956-ffa450edef68
2005-07-30 21:52:16 +00:00
Gary D. Gregory
a5709b893f
Set JDiff "old" tag to Lang 2.0.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@225330 13f79535-47bb-0310-9956-ffa450edef68
2005-07-26 15:29:45 +00:00
Gary D. Gregory
cf0dda8853
Remove unused @param tags.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@225329 13f79535-47bb-0310-9956-ffa450edef68
2005-07-26 15:28:49 +00:00
Gary D. Gregory
c4db5b37ba
Remove a clover setting that was intended to omit the text package, but didn't (for me).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@225239 13f79535-47bb-0310-9956-ffa450edef68
2005-07-26 06:21:29 +00:00
Gary D. Gregory
5aeb66d2bf
Another new boundary tests for VariableFormatterTest.java.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@225184 13f79535-47bb-0310-9956-ffa450edef68
2005-07-25 21:11:32 +00:00
Gary D. Gregory
abbe3f0e26
IllegalStateException in text.VariableFormatter with "empty" keys.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@225179 13f79535-47bb-0310-9956-ffa450edef68
2005-07-25 20:52:08 +00:00
Gary D. Gregory
d1f1606960
Another new boundary tests for VariableFormatterTest.java: testReplaceEmptyKeys.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@225152 13f79535-47bb-0310-9956-ffa450edef68
2005-07-25 16:43:07 +00:00
Gary D. Gregory
7785367406
Another new boundary tests for VariableFormatterTest.java.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@224650 13f79535-47bb-0310-9956-ffa450edef68
2005-07-24 20:09:42 +00:00
Gary D. Gregory
16630b35f6
Sort methods.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@224562 13f79535-47bb-0310-9956-ffa450edef68
2005-07-23 22:27:12 +00:00
Gary D. Gregory
c8d6447928
Three new boundary tests for VariableFormatterTest.java.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@224561 13f79535-47bb-0310-9956-ffa450edef68
2005-07-23 22:26:02 +00:00
Gary D. Gregory
cdb9168538
Removes Interpolation and MappedMessageFormat from the text package in favor of VariableFormatter. (See message below) No one has complained on commons-dev.
...
-----Original Message-----
From: Gary Gregory [mailto:ggregory@seagullsoftware.com]
Sent: Thursday, July 21, 2005 9:34 AM
To: Jakarta Commons Developers List
Subject: [lang] text.VariableFormatter to replace Interpolation and MappedMessageFormat (WAS a [POLL])
Hello:
It's been two weeks since I posted the original message below and I've
not heard negative comments on removing Interpolation and
MappedMessageFormat from the text package in favor of VariableFormatter.
I will therefore do so real soon.
Please raise your hand you disagree.
Thanks,
Gary
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@224558 13f79535-47bb-0310-9956-ffa450edef68
2005-07-23 21:56:59 +00:00
Gary D. Gregory
7952a55254
Removes Interpolation and MappedMessageFormat from the text package in favor of VariableFormatter. (See message below) No one has complained on commons-dev.
...
-----Original Message-----
From: Gary Gregory [mailto:ggregory@seagullsoftware.com]
Sent: Thursday, July 21, 2005 9:34 AM
To: Jakarta Commons Developers List
Subject: [lang] text.VariableFormatter to replace Interpolation and MappedMessageFormat (WAS a [POLL])
Hello:
It's been two weeks since I posted the original message below and I've
not heard negative comments on removing Interpolation and
MappedMessageFormat from the text package in favor of VariableFormatter.
I will therefore do so real soon.
Please raise your hand you disagree.
Thanks,
Gary
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@224556 13f79535-47bb-0310-9956-ffa450edef68
2005-07-23 21:48:28 +00:00
Gary D. Gregory
cbb4f55bff
Make testing equality more flexible.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@220158 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 18:13:30 +00:00
Gary D. Gregory
0ce9977fa3
- VariableFormatter.java now gets 98.7% clover coverage.
...
- MapVariableFormatter.java now gets 100% clover coverage.
- Javadocs.
- Constructor clean ups.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@219119 13f79535-47bb-0310-9956-ffa450edef68
2005-07-14 22:24:17 +00:00
Stephen Colebourne
0a92b2c279
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@219118 13f79535-47bb-0310-9956-ffa450edef68
2005-07-14 22:09:50 +00:00
Stephen Colebourne
66f83099a5
Fix ClassUtils.primitiveToWrapper() to handle Void.TYPE
...
bug 34327, from Alban Peignier
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@219117 13f79535-47bb-0310-9956-ffa450edef68
2005-07-14 22:08:08 +00:00
Stephen Colebourne
5b5d6b23d1
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@219116 13f79535-47bb-0310-9956-ffa450edef68
2005-07-14 21:54:47 +00:00
Stephen Colebourne
afcdb367ad
Add text package tests back into commons-lang
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@219114 13f79535-47bb-0310-9956-ffa450edef68
2005-07-14 21:48:13 +00:00