Stephen Colebourne
9a05c7404c
Update testing for FastDateFormat
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137328 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:41:21 +00:00
Stephen Colebourne
a4452d34e1
Update licence
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137327 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:40:24 +00:00
Stephen Colebourne
6d4516cccc
Update class and add javadoc ready for release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137326 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:39:53 +00:00
Stephen Colebourne
378587735d
Change version number ready for release
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137325 13f79535-47bb-0310-9956-ffa450edef68
2003-05-21 23:37:20 +00:00
Gary D. Gregory
0cd7de5283
Fix javadoc, a <u> was used instead of a <p>.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137324 13f79535-47bb-0310-9956-ffa450edef68
2003-05-20 21:15:19 +00:00
Gary D. Gregory
199ec3aa9c
Fix javadoc, was missing a </code>.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137323 13f79535-47bb-0310-9956-ffa450edef68
2003-05-20 21:11:07 +00:00
Gary D. Gregory
cc411622e9
Improve performance (by ~10% on Sun Java 1.3.1_08) for the method escapeEntities(String str, Entities entities) by using the existing StringBuffer instead of String + to the same buffer.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137322 13f79535-47bb-0310-9956-ffa450edef68
2003-05-18 00:10:38 +00:00
Stephen Colebourne
713af7b691
Remove functor subpackage
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137321 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:17:35 +00:00
Stephen Colebourne
e329c3556c
Organize imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137320 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:08:31 +00:00
Stephen Colebourne
70cab8f8e6
Change Identifier generation code to be independent of functors
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137319 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 22:07:38 +00:00
Gary D. Gregory
9e0419790b
Javadoc only. Provide more uniform comments.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137318 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 19:00:07 +00:00
Stephen Colebourne
6098de63f7
Add since tags
...
Update javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137317 13f79535-47bb-0310-9956-ffa450edef68
2003-05-16 16:14:17 +00:00
Henri Yandell
e2c43be20f
Commonly usable enhancements to some of the Exceptions found in java.lang.
...
Submitted by: Matthew Hawthorne
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137316 13f79535-47bb-0310-9956-ffa450edef68
2003-05-15 04:05:11 +00:00
Gary D. Gregory
794221a9ca
Be a little more precise in the IS_JAVA_* javadocs.
...
Make JAVA_* javadocs read more like sentences.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137315 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 17:13:00 +00:00
Henri Yandell
82c5dada6f
Bug #14357 fixed. Mohan's patch makes removeCommonFrames public, and adds an
...
isThrowableNested to ExceptionUtils.
It adds static attributes to decide if the stack trace should be topDown
and if the stack traces should be trimmed on repeat. If running 1.4 or higher,
it uses the default stack trace, and the functionality of NestableError,
NestableException and NestableRuntimeException getMessage()s all change.
Accompanying these changes are numerous tests.
Submitted by: Mohan Kishore
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137314 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:59:13 +00:00
Henri Yandell
9d8cc76413
Bug #19880 fixed. RandomStringUtils.random(int count, char[] set)
...
doesn't include the last character in set.
Submitted by: Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137313 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:50:43 +00:00
Henri Yandell
9f2efa84a2
Bug #19756 dealt with.
...
Submitted by: Phil Steitz
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137312 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 02:41:26 +00:00
Henri Yandell
3734b1e3ad
Block nextInt(int) and nextLong(long) from being <= 0.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137311 13f79535-47bb-0310-9956-ffa450edef68
2003-05-12 04:41:40 +00:00
Henri Yandell
d129fa0e4a
Fixed bug reported by Phil Steitz in which poorly placed casting was
...
making all random methods return 0 :)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137310 13f79535-47bb-0310-9956-ffa450edef68
2003-05-12 04:29:26 +00:00
Henri Yandell
77ce33145f
Empty constructor stops it calling setSeed in Random's empty constructor.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137309 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 19:14:01 +00:00
Henri Yandell
d99a9fcfb9
RandomUtils functionality moved to JVMRandom. RandomUtils then becomes a proper XxxUtils class.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137308 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 15:09:19 +00:00
Gary D. Gregory
0de135be9c
Fix broken links. Use thrid person in comment. Use @see tags.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137307 13f79535-47bb-0310-9956-ffa450edef68
2003-05-06 22:10:40 +00:00
Stephen Colebourne
81b579a7eb
Add explicit public constructor
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137306 13f79535-47bb-0310-9956-ffa450edef68
2003-04-26 16:17:05 +00:00
Henri Yandell
e11a2eb63d
Stopping checkstyle from worrying about whether operators are at the end of a line or at the start of the line. I doubt it's something we care enough to standardise on.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137305 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 15:21:03 +00:00
Gary D. Gregory
23acc6804d
Added myself as agreed with Henri.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137304 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 13:44:02 +00:00
Gary D. Gregory
8ba5fec31d
Address Checkstyle report issues as reported by Henri ( http://www.generationjava.com/maven/jakarta-commons/lang/ )
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137303 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 09:12:16 +00:00
Gary D. Gregory
d63c271a8c
Address Checkstyle report issues as reported by Henri ( http://www.generationjava.com/maven/jakarta-commons/lang/ )
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137302 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 07:01:47 +00:00
Henri Yandell
9263c5eda7
Put } and else on the same line.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137301 13f79535-47bb-0310-9956-ffa450edef68
2003-04-18 04:57:19 +00:00
Henri Yandell
5f0560cb60
Fixed Antony's name. He wrote the original escape() method.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137300 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 16:31:45 +00:00
Henri Yandell
eb6a2942c0
Tenfold improvement in performance for leftPad, rightPad and repeat when repeat is over a String of length 1, by implementation of a padding method. The padding method is kept private for the moment.
...
Also a modification of containsOnly so it has a partner method indexOfAnyBut. Unit Test added for indexOfAnyBut.
Submitted by: Robert Simpson
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137299 13f79535-47bb-0310-9956-ffa450edef68
2003-04-16 04:37:33 +00:00
Henri Yandell
92a9a68b72
Integrated WordWrapUtils testing in.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137298 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 14:29:01 +00:00
Henri Yandell
fb2548b304
Return of WordWrapUtils, fresh with bugs fixed in StringTaglib. Part of the
...
reason for dropping it originally was that I knew my methods [wordWrap rather than wrapText or wrapLine] had nasty die-a-death bugs and hadn't had time to fix them. These got fixed as a part of String Taglib so I'm now personally happy with the code. As happy as you can ever be anyway without more tests to hurt it.
Submitted by: Henning Schmiedehausen
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137297 13f79535-47bb-0310-9956-ffa450edef68
2003-04-15 14:28:41 +00:00
Martin van den Bemt
5dc5e3c0e9
Added eclipse files to ignorelist.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137296 13f79535-47bb-0310-9956-ffa450edef68
2003-04-14 11:37:59 +00:00
Gary D. Gregory
b48f4effee
Added myself to the list of committers.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137295 13f79535-47bb-0310-9956-ffa450edef68
2003-04-10 18:59:48 +00:00
Gary D. Gregory
408466f404
Remove unused imports (with agreement on shared clean up chores from Alex).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137294 13f79535-47bb-0310-9956-ffa450edef68
2003-04-10 00:01:21 +00:00
Alex Chaffee
49d5add385
improving javadoc
...
added apos entity to XML escape/unescape
add test for "unknown entity" behavior
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137293 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 21:30:18 +00:00
Alex Chaffee
69cc0e40e6
Extracted Entities class (instead of inner class)
...
Added support for full HTML 4.0 entity set
Separated XML, ISO8859-1 (HTML 3.2), and HTML 4.0 entities inside Entities object
Added escapeXml and unescapeXml public API methods
Escape now uses entities for values 0x80 or greater (previously 0x100)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137292 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 20:55:33 +00:00
Alex Chaffee
6af3b80369
Escaping unicode uses capital letters e.g. \uABCD
...
Found and fixed bug when unicode character is at the end of a string to unescape
Added unit tests for above bug to both StringUtilsTest and StringEscapeUtilsTest
StringUtils.[un]escape now call StringEscapeUtils.[un]escapeJava
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137291 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 18:45:29 +00:00
Alex Chaffee
2e862e0c47
make test strings 7-bit clean (bug 18836)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137290 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 17:30:29 +00:00
Henri Yandell
3ac32dd142
Patch for RandomString bug in which counts of 0 or negative counts would cause array exceptions.
...
Submitted by: ville.skytta@iki.fi (Ville Skytt�)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137289 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 14:13:03 +00:00
Gary D. Gregory
082cde8df8
Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137288 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 01:08:30 +00:00
Gary D. Gregory
e5c8e4a225
Fix some Javadoc {@link}s and clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137287 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 01:04:48 +00:00
Gary D. Gregory
f810dc3645
Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
FYI, warnings like: This sentence is different from what will be interpreted as the first sentence in the
next major release (when that interpretation will be internationalized), which is: <snip/>
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137286 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 00:07:50 +00:00
Gary D. Gregory
ccde85985d
Removed unused import.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137285 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 23:45:16 +00:00
Gary D. Gregory
6a1dc2997c
Improve Javadoc (I hope!).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137284 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 22:36:04 +00:00
Gary D. Gregory
e180daa748
Clean up some Javadoc comments to remove warnings generated when Javadoc from Java 1.4.1 is used.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137283 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 22:34:53 +00:00
Gary D. Gregory
cdf3c5161e
Fix a missing javadoc </code> end tag.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137282 13f79535-47bb-0310-9956-ffa450edef68
2003-04-08 20:44:10 +00:00
Henri Yandell
076ebc6d17
A Utils class that wraps java.lang.Math.random() and offers up methods
...
similar to that found on the java.util.Random class. Effectively this class
contains the methods that ought to be found on java.lang.Math.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137281 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 16:28:15 +00:00
Alex Chaffee
4e443f9cfc
added some more entities from HTML 4.0 spec, refactored (Entities class), initialize maps on demand
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137280 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 06:14:46 +00:00
Henri Yandell
965077e483
Put myself in as author of escape/unescape and removed unused imports.
...
Really just to test eclipse/cvs on OS X.
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137279 13f79535-47bb-0310-9956-ffa450edef68
2003-04-01 17:19:28 +00:00