Commit Graph

2219 Commits

Author SHA1 Message Date
Henri Yandell bdb8ae03b6 Changing Param to Option. A Parameter is a user supplied value; an Option is a user supplied choice. LANG-507 related.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826518 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 20:32:40 +00:00
Henri Yandell 0fd4b3afe1 Sebb pointed out that the implementation for LANG-507 was not thread safe. Rewriting to pass parameters in to the constructor, but doing so in an experimental way - comments very much desired on whether this makes for a nice API or not
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826514 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 20:14:30 +00:00
Sebastian Bazley b3cec0c2c3 Add missing @Override markers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826421 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 12:21:31 +00:00
Sebastian Bazley b287ebae61 Remove unused imports and throws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826420 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 12:16:50 +00:00
Sebastian Bazley c634f0c64c Constructors, fields and nested classes do not inherit doc comments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826413 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 11:40:46 +00:00
Henri Yandell 64c615346f Implementing an option to UnicodeUnescaper in which the syntax '\u+0047' is supported. By default it remains unsupported to match Java's method of parsing. Request in LANG-507
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826370 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 07:25:59 +00:00
Henri Yandell 2dc5618257 Applying my patch from LANG-535 - adding support to getShortClassName and getPackageName for arrays, including primitive arrays and multi-dimensional arrays. Also stopped getPackageName relying on the underlying class.getPackage as it's sometimes null
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@825420 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 07:31:32 +00:00
Henri Yandell bb8709f3e3 Prefering the Class methods (and thus JDK) over the String methods for getShortClassName/getPackageName when you already have an Object
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@824597 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 05:50:51 +00:00
Henri Yandell 1e282a9643 Upgrading to JUnit 4.7. Changing two classes (ClassNotFoundSerializationTest and CharUtilsPerfTest) to not end with Test as that was throwing them into the JUnit setup. CharUtilsPerfTest renamed to CharUtilsPerfRun. ClassNotFoundSerializationTest becomes ClassNotFoundSerialization.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@824595 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 05:40:15 +00:00
Oliver Heger 169a20fb98 [LANG-499] Test class for ConcurrentUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@820071 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 19:14:56 +00:00
Oliver Heger 13ef1d725f [LANG-499] Added ConcurrentException and ConcurrentUtils classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@820070 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 19:14:17 +00:00
Sebastian Bazley 826adcfbaf Fixup raw types for private variables (non-API)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819703 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 20:14:36 +00:00
Sebastian Bazley e6c395c5d8 unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819701 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 20:08:27 +00:00
Sebastian Bazley 5beb105d6b Use Eclipse comment-style to suppress drop-thru warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819700 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 20:07:53 +00:00
Sebastian Bazley d3391ff4aa unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819698 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 20:06:18 +00:00
Oliver Heger c7ee4f6d32 Accidently changed formatting in the previous commit.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819148 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 15:07:07 +00:00
Oliver Heger 1e060c6e35 [LANG-496] Added a comment why a temporary variable is used in get().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819146 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 15:03:06 +00:00
Oliver Heger f4ae31ef19 Added myself as developer.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819143 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 14:35:23 +00:00
Oliver Heger 8958fdcc73 [LANG-496] Added LazyInitializer class plus test class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819141 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 14:27:32 +00:00
Oliver Heger 31a812e4eb [LANG-529] Created new concurrent package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@819140 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 14:26:43 +00:00
Matthew Jason Benson 7cdd4ed1d8 generics for addAll(Object[], Object[]) + varargs for all addAll addends
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@818214 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 19:16:19 +00:00
Matthew Jason Benson 014c032b16 add quick type compatibility check
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@813984 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 18:56:24 +00:00
Matthew Jason Benson 3d69a1f2cd ArrayUtils generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@813971 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 18:27:18 +00:00
Henri Yandell ab66a1d87c Applying Boris' patch in LANG-481 to improve thread safety in the Range classes. The previous code's reuse of the hashCode variable for local operations means it is utterly non-thread-safe. Now uses a local variable so that the worst case should be the hashCode being calculated multiple times, but not ending up with different values.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@812236 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 17:56:30 +00:00
Henri Yandell 02f510c204 Applying Ivan Bilenjkij's patch such that the Mutable classes implement an appropriately typed Mutable interface. LANG-528
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@812235 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 17:52:53 +00:00
Henri Yandell bb75332087 Reverting accidental commit in r811944.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@811948 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 23:00:28 +00:00
Henri Yandell 86c1cfa637 Applying Stefan Zeller's performance improvement to StrBuilder (LANG-523) by doubling the size of the String in ensureCapacity. Tests indicate a hundredhold improvement in appending speed, which seems worth the doubling of data size.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@811944 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 22:56:09 +00:00
Sebastian Bazley da95cca2f3 Remove JCIP annotations
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@807425 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24 22:57:52 +00:00
Sebastian Bazley 48abc2fb74 Remove references to obsolete files that have been deleted
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@807420 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24 22:41:50 +00:00
Henri Yandell 62aef1a558 Making inner class private fields final per LANG-474
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@803006 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 06:39:39 +00:00
Joerg Schaible d836af99d2 Fix svn:ignores.
Update POM.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802570 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:08:26 +00:00
Joerg Schaible 7bd9b8ada1 Fix failing unit test of Contexted(Runtime)Exception, adjust formatted message.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802569 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:06:58 +00:00
Joerg Schaible ad922624da Add ExceptionContext package (LANG-497, contributed by Derek Ashmore).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802566 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 17:46:13 +00:00
Henri Yandell 2e165be127 Improving performance of getAllInterfaces per LANG-500's patch from Pino Silvaggio
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@802477 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 02:44:56 +00:00
Henri Yandell f957d81625 Fixing classes to not need UnhandledException and IllegalArgumentException
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796078 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:55:30 +00:00
Henri Yandell 5e58c2cfd8 Moving IncompleteArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796076 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:51:04 +00:00
Henri Yandell d8ae0bdbef Moving NullArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796075 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:56 +00:00
Henri Yandell 687dc10a61 Moving NotImplementedException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796074 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:47 +00:00
Henri Yandell f04f89bfda Moving IllegalClassException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796073 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:42 +00:00
Henri Yandell 26b587c7ba Moving UnhandledException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796071 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:50:16 +00:00
Henri Yandell a2773b230e Fixing classes to not need NullArgumentException
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796070 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:46:42 +00:00
Henri Yandell 72913ae9d7 Moving IncompleteArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796068 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:43:08 +00:00
Henri Yandell 4af0d359b4 Moving IllegalClassException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796067 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:41:01 +00:00
Henri Yandell 13ad49b575 Moving NotImplementedException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796066 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:40:38 +00:00
Henri Yandell eb888eb2ef Moving UnhandledException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796065 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:40:09 +00:00
Henri Yandell 9a0e5f8c0f Moving NullArgumentException to backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796064 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:39:08 +00:00
Henri Yandell cc6281fc3e Improving code coverage with more tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@796062 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 23:28:45 +00:00
Henri Yandell 75b967beaa Improving code coverage by testing exceptions and empty constructor
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795895 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:14:34 +00:00
Henri Yandell 84beb062c1 Improving code coverage for a couple of null cases
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795894 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:14:16 +00:00
Henri Yandell 4a30af0280 Removing missing import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795893 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:13:10 +00:00