Commit Graph

2327 Commits

Author SHA1 Message Date
Sebastian Bazley 13bdd203ce Unused imports
Suppress deprecation warnings for tests of deprecated methods

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899938 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 13:00:07 +00:00
Sebastian Bazley 78792f3873 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899936 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 12:59:21 +00:00
Sebastian Bazley b777356fa3 LANG-564 Improve StrLookup API documentation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899933 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 12:53:54 +00:00
Sebastian Bazley 54c0f6ba9e LANG-571 ArrayUtils.add(T[] array[, offset], T element) can create unexpected ClassCastException
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899929 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 12:39:20 +00:00
Henri Yandell a5dc7f1e68 Adding hashCode caching in line with LANG-481
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899897 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 08:04:40 +00:00
Henri Yandell 8860c37b9d Adding String lazy caching
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899895 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 07:58:11 +00:00
Henri Yandell 5be7671ea1 Adding javadoc note on immutable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899893 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 07:48:16 +00:00
Sebastian Bazley 1da401f263 FIx Javadoc error
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899264 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 16:08:20 +00:00
Sebastian Bazley ab20f86381 Fix paste typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899260 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 16:03:56 +00:00
Sebastian Bazley b88699d65f Another case-insensitive test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899245 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:40:03 +00:00
Sebastian Bazley 491a1d6e88 LANG-581 - Javadoc bug in org.apache.commons.lang.StringUtils.removeEndIgnoreCase()
Add some case-insensitive examples

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899242 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:37:42 +00:00
Sebastian Bazley a7b7e11461 Fix JUnit message to agree with test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899239 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:31:13 +00:00
Sebastian Bazley 9a5da72bbf LANG-581 - Javadoc bug in org.apache.commons.lang.StringUtils.removeEndIgnoreCase()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899231 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:12:47 +00:00
Henri Yandell 86e893cc6d Removing unnecessary <p> and Class variable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897533 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 20:23:13 +00:00
Henri Yandell 5494a87bbb Replacing the creation of a List in the core of each Builder class to test contains on the excludeFields with a call to ArrayUtils.contains. Reported by Anthony Whitford in LANG-575
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897421 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 11:44:06 +00:00
Henri Yandell 8d518b7786 Performance improvement per Anthony Whitford in LANG-574. Check for isArray to short-circuit the 9 instanceof checks. Improves both non-arrays and Object[] in tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897419 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 11:20:49 +00:00
Henri Yandell 72e4ab4b00 Synchronizing the COMMON Map so that getInstance doesn't miss a put from a subclass in another thread. LANG-494
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897408 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 10:06:42 +00:00
Henri Yandell 2493294550 Removing unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897406 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 10:02:59 +00:00
Henri Yandell 069d15e863 Removing unused WordUtils import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897404 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 10:02:25 +00:00
Henri Yandell 18b3e505cf Renaming media for the simple reason that two directories pisses off my tab completion :)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895915 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 06:11:37 +00:00
Oliver Heger ee00c7a6f7 [LANG-560] Added TimedSemaphore class to concurrent package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895466 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 19:04:08 +00:00
Paul C. Benedict Jr 76e14e483c Push down WordUtils to "text" sub-package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895335 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 07:13:31 +00:00
Paul C. Benedict Jr 08d51233f9 LANG-559: Added validState()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895334 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 06:39:04 +00:00
Paul C. Benedict Jr f06192a865 Remove customized src/test directories
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895325 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 02:16:45 +00:00
Paul C. Benedict Jr 8104e916b4 Move test source into src/test/java
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895324 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 02:14:46 +00:00
Paul C. Benedict Jr 45f57844df Add src/test/java for standard Maven
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895323 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 02:12:52 +00:00
Paul C. Benedict Jr fc5c081e22 Move main source to src/main/java
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895322 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 02:11:26 +00:00
Paul C. Benedict Jr 6b32246f5f Add src/main for standard Maven
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895321 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 02:09:21 +00:00
Paul C. Benedict Jr 9fdad2aecd Add self as developer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895319 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 01:59:52 +00:00
Henri Yandell 1fe031e6ca Added deprecation for 4.0 notices. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895132 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 06:13:25 +00:00
Henri Yandell d7a5c76170 Removed the support for exceptions with a field named 'detail'. It's been there since the beginning, but does not seem like a very important use case. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895131 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 06:07:11 +00:00
Henri Yandell 99b21a45ef Removed unnecessary private toArray method. It was only invoked from one location. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895130 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 06:02:33 +00:00
Henri Yandell e539bde396 Removed the ability to modify the static store of cause method names. If that feature is wanted, it's easy for the user to pass in their own list, or use the newly added getDefaultCauseMethodNames and modify that before calling. This removes the need for synchronization code. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895129 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:58:57 +00:00
Henri Yandell e87ee0a705 Removing now unnecessary static initializer block. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895128 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:47:45 +00:00
Henri Yandell e6e7f16e57 Removing setCause method. JDK 1.4 provided an initCause method and this method was to support both pre and post JDK 1.4 use cases. I don't see much of a reason to keep supporting Exceptions that have setCause as well as the inherited initCause. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895126 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:44:35 +00:00
Henri Yandell 00a4628d4e Removing unused NestableRuntimeException legacy class. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895123 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:24:18 +00:00
Henri Yandell 228527bd83 Removing the selfCause tests. This is not a legal state for JDK Throwable cause properties, and I'm going to drop the support for people creating methods named 'setCause'. I can't find a lot of examples of this method naming in search engines. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895122 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:15:05 +00:00
Henri Yandell 64f0e8ecb0 Removing SQLException usage per LANG-539. This leads to removing getCauseUsingWellKnownTypes and dropping the optimization step for SQLException and InvocationTargetException; plus a simplification of the code in getCause(String,String[]) for LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895118 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 04:57:10 +00:00
Henri Yandell ebfb96b0a9 Removing isThrowableNested, isNestedThrowable and getFullStackTrace as they were all types of no-op once you got to JDK 1.4. LANG-491
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895097 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 00:06:06 +00:00
Henri Yandell 1a433d2ec7 Adding parseDateStrictly method per LANG-486
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895055 13f79535-47bb-0310-9956-ffa450edef68
2010-01-01 19:01:18 +00:00
Henri Yandell edc4514e15 Removing commented out code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893703 13f79535-47bb-0310-9956-ffa450edef68
2009-12-24 07:13:17 +00:00
Joerg Schaible 7423b012fa Fix timezone ;-)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893548 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 15:36:48 +00:00
Joerg Schaible bcfc180f37 Add ArrayUtils.toArray (LANG-537).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893547 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 15:27:38 +00:00
Henri Yandell 26bc3fe010 isNumber(String) and createNumber(String) both modified to support "2.". LANG-521
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893088 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:52:42 +00:00
Henri Yandell 506bd018b3 Making class final, switching getMin/Max usage to this.min/max usage. LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893083 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:23:27 +00:00
Sebastian Bazley 5739bba3eb LANG-568 - @SuppressWarnings("unchecked") is used too generally
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892343 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 18:44:24 +00:00
Sebastian Bazley 352a4ef2a3 Propagate original exception (LANG-567); update docs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892326 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 18:02:11 +00:00
Henri Yandell e5ccf09656 Switching from getTime() to getTimeInMillis() per Sebb's report that it still fixes LANG-538 and is going to be lighter weight
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892161 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 07:21:10 +00:00
Sebastian Bazley 8fdfbff87c LANG-568 - @SuppressWarnings("unchecked") is used too generally
Partial fix - some warnings remain to be addressed

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892136 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:04:11 +00:00
Sebastian Bazley ed3d84438b LANG-568 - @SuppressWarnings("unchecked") is used too generally
Partial fix - some warnings remain to be addressed

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892135 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:03:42 +00:00