Commit Graph

1455 Commits

Author SHA1 Message Date
Henri Yandell 8b718d2470 Switching from printStackTrace to UnhandledException as per LANG-450
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@688011 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 07:49:28 +00:00
Henri Yandell b353a8e999 Added javadoc to show that LANG-444 can be implemented by defaultIfEmpty, and proved it in the unit test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@672995 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 04:53:50 +00:00
Henri Yandell db5c7106a4 Applying Robert Scholte's fix for LANG-440, replicating the SEMI_MONTH logic for AM_PM requests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@664643 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 07:17:24 +00:00
Henri Yandell 08c4a79f5c Fixing the unit test as described in LANG-440. The truncate tests for AM_PM had been copied and were not testing againt the correct expected results. This will break the build.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@664642 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 07:15:50 +00:00
Henri Yandell 98de18758d Fixing the locale to English as hex chars are all ascii
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655256 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 06:26:14 +00:00
Henri Yandell 8fc1df0227 Fixing the toLowerCase locale as we're looking for english text as per LANG-432
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655255 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 06:25:41 +00:00
Henri Yandell e1981a5d7b Removing the Cloneable interface from StrBuilder as per LANG-302
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655251 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 05:57:18 +00:00
Henri Yandell 4342bd5d69 Applying Vincent Behar's second patch for LANG-419 - fixing a bug in abbreviate such that lower limits greater than the length of the string weren't working correctly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655246 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 05:18:02 +00:00
Henri Yandell 23b89b4eb5 Adding Locale overloads for toUpperCase and toLowerCase as provided by Benjamin Bentmann in LANG-430
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655239 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 04:52:10 +00:00
Henri Yandell 0e42c3d9da Fixing the html fix from Benjamin Bentmann in LANG-431 - unclosed tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655203 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 22:37:09 +00:00
Matthew Jason Benson 934e9044bb better exception message
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@654277 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 21:09:23 +00:00
Matthew Jason Benson 98781dc64f use existing API to get all interfaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@654273 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 21:06:48 +00:00
Matthew Jason Benson 30e77453fc unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@654266 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 20:36:54 +00:00
Niall Pemberton 585e4c6eb3 LANG-436 Remove caching from MethodUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@654159 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 16:06:21 +00:00
Matthew Jason Benson e0da000caa remove use of 1.5 Arrays.toString()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@653924 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 21:11:00 +00:00
Matthew Jason Benson 04e9eb14e7 merge [LANG-416] from LANG_POST_2_4 branch
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@653918 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 20:45:11 +00:00
Matthew Jason Benson 504af2f2ed merge from LANG_POST_2_4 branch: test as many locales as possible; test overriding a built-in format
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@653909 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 20:30:15 +00:00
Matthew Jason Benson 8c7546be27 merge ClassUtils isAssignable w/ autoboxing from LANG_POST_2_4 branch
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@653907 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 20:26:08 +00:00
Matthew Jason Benson 290731e746 merge suite name from LANG_POST_2_4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@653839 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 16:57:34 +00:00
Gary D. Gregory dd0deed066 (LANG-421) StringEscapeUtils.escapeJava(String) escapes '/' characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@643953 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 16:08:21 +00:00
Gary D. Gregory 65b5dc69db Simplify branching.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@643952 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 16:07:54 +00:00
Henri Yandell bb8b6f4b0c Fixing the javadoc for endsWithIgnoreCase as per LANG-418, and adding some javadoc to test the novel javadoc examples
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@640727 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 07:37:12 +00:00
Henri Yandell 687f6952ce Adding javadoc to explain what 'Canonical' means. We only mention it on the private method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@639545 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 05:20:17 +00:00
Henri Yandell 986e79355c Modifying these classes to use the JDK 1.2 WeakHashMap constructors as that is all we need to maintain JDK 1.2 compatibility
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@637362 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 06:09:41 +00:00
Henri Yandell a4ab31a286 Hardcoding the version number in the assembly to get around a bug in Maven
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@637008 13f79535-47bb-0310-9956-ffa450edef68
2008-03-14 07:06:56 +00:00
Henri Yandell d10f4be40b Fixing the assemblies to say project.version instead of version to stop '2.4.1' leaking through from the JVM properties. Also making it project.artifactId while I'm doing this.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@637007 13f79535-47bb-0310-9956-ffa450edef68
2008-03-14 06:41:17 +00:00
Niall Pemberton 2fa72ea948 javadoc version 2.3 --> 2.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@636713 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 11:16:36 +00:00
Henri Yandell dcf024f3aa Fixing a possible overflow in the >> 1 divide by two by using >>> 1 instead. Findbugs pointed this out>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@636641 13f79535-47bb-0310-9956-ffa450edef68
2008-03-13 06:11:30 +00:00
Henri Yandell a705f50c7e Dealing with some of the >120 length lines as per checkstyle. A few still need reducing.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@635447 13f79535-47bb-0310-9956-ffa450edef68
2008-03-10 06:27:09 +00:00
Matthew Jason Benson c1bd325d94 get ExtendedMessageFormat working on JDK 1.3, sort of
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634874 13f79535-47bb-0310-9956-ffa450edef68
2008-03-08 00:30:04 +00:00
Niall Pemberton c4e8add680 Fix tests not compiling under JDK 1.3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634854 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 22:40:39 +00:00
Niall Pemberton 8e83403ba9 javadoc/checkstyle changes only
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634096 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 00:58:11 +00:00
Niall Pemberton 52a903c691 Restore JDK 1.3 compatibility (the MessageFormat(String, Locale) constructor was introduced in JDK 1.4)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634092 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 00:26:24 +00:00
Niall Pemberton d86a278500 svn:keywords properties and missing license headers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@634088 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 00:06:05 +00:00
Niall Pemberton 65e3778b9e Remove failing test for unsupported sub-formats
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@633693 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 22:46:54 +00:00
Matthew Jason Benson efe31f5b60 javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@633659 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 21:41:26 +00:00
Matthew Jason Benson 39a6c14bd6 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@633621 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 20:20:23 +00:00
Gary D. Gregory ee0405b407 Make formatting consistent across the file:
Replace "methodcall( expr )" with "methodcall(expr)".
Replace "type foo = (expr)" with "type foo = expr".
Replace "if(expr)" with "if (expr)"


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@632503 13f79535-47bb-0310-9956-ffa450edef68
2008-03-01 00:21:52 +00:00
Matthew Jason Benson be5119c17d remove text describing passing a null value for a char parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@632061 13f79535-47bb-0310-9956-ffa450edef68
2008-02-28 17:15:55 +00:00
Niall Pemberton 60e5d4933c Remove previous ExtendedMesageFormat tests and update package suite to include ExtendedMessageFormatTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631652 13f79535-47bb-0310-9956-ffa450edef68
2008-02-27 17:12:38 +00:00
Niall Pemberton 7f5ffc6036 Add new test case for ExtendedMessageFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631639 13f79535-47bb-0310-9956-ffa450edef68
2008-02-27 16:44:17 +00:00
Matthew Jason Benson b3883c4dc3 refine (?) javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631405 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 22:24:34 +00:00
Matthew Jason Benson 20d5b0101b improve documentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@631256 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 15:36:55 +00:00
Matthew Jason Benson f0e6c30a2d add Niall author tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630972 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 19:58:02 +00:00
Matthew Jason Benson 2e3057caa8 [LANG-362] simplify ExtendedMessageFormat design; recycle as much of super implementation as possible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630969 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 19:51:18 +00:00
Matthew Jason Benson 583c62281e [LANG-366] retract
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630967 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 19:49:21 +00:00
Henri Yandell 68c6547d0c Applying Cedrik Lime's patch to LANG-413; improving the memory footprint of getLevenshteinDistance
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@630580 13f79535-47bb-0310-9956-ffa450edef68
2008-02-24 03:33:49 +00:00
Sebastian Bazley 5cbca4d5f5 LANG-410 - Ambiguous / confusing names in StringUtils replace* methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@627588 13f79535-47bb-0310-9956-ffa450edef68
2008-02-13 20:41:07 +00:00
Henri Yandell 1fe5439baf Applying my patch from LANG-412; fixing Peter Oxenham's report that the appendFixedWidthPadRight and appendFixedWidthPadLeft are not null safe if the nullText has not been set
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@627248 13f79535-47bb-0310-9956-ffa450edef68
2008-02-13 05:44:46 +00:00
Matthew Jason Benson 2e8e3f46ba sp again
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619157 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 21:24:46 +00:00