Commit Graph

1786 Commits

Author SHA1 Message Date
Stephen Colebourne c1590455d2 LANG-290 - Rename isEnum to isValidEnum
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831687 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:29:04 +00:00
Stephen Colebourne de820ce189 LANG-487 - Make default style thread-safe (better Javadoc)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831686 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:25:10 +00:00
Oliver Heger a3e3a0b08f [LANG-501] Added MultiBackgroundInitializer class with JUnit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831587 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 19:52:58 +00:00
Oliver Heger 8c413aecd8 [LANG-501] Added BackgroundInitializer class with JUnit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831586 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 19:48:52 +00:00
Stephen Colebourne 86008e6c48 LANG-548 - Use Iterable instead of Collection
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830042 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 01:14:57 +00:00
Stephen Colebourne 77e3dcc393 LANG-487 - Make default style thread-safe (better Javadoc)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830040 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:59:15 +00:00
Stephen Colebourne bf626b85ba LANG-290 - Add more enum utility methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830038 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:51:38 +00:00
Stephen Colebourne 9e2d954177 Remove my author tag, add ASF author tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830032 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 00:15:00 +00:00
Stephen Colebourne 2d31aaf4f0 Add isTrue/isFalse methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830029 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:53:41 +00:00
Stephen Colebourne 6bc82fa5f6 Reorder methods for consistency within package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830028 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:50:31 +00:00
Stephen Colebourne ffeea79694 Javadoc clarifications and tidy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830027 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:49:25 +00:00
Stephen Colebourne 45008b994b Javadoc clarifications and tidy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830024 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:43:09 +00:00
Stephen Colebourne 283fa00f77 Use valueOf() to convert primitive to wrapper class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@830016 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 23:12:05 +00:00
Stephen Colebourne bbab0a4b4c Enhance Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829993 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 22:06:13 +00:00
Stephen Colebourne d55299a055 LANG-487 - Make default style thread-safe
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829991 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 21:56:46 +00:00
Sebastian Bazley 61800cce67 Drop unthrown Exception
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829941 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 20:34:50 +00:00
Sebastian Bazley ababfcf843 No longer need to suppress warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829684 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 01:33:25 +00:00
Stephen Colebourne 93a3b6b251 Remove generics as they provide little value and get in the way
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829635 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 19:59:31 +00:00
Sebastian Bazley b1cf6305e5 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829549 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:45:55 +00:00
Sebastian Bazley 6627b34cbf Drop unthrown Exception
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829548 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:45:41 +00:00
Sebastian Bazley ebb466c417 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829547 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:44:48 +00:00
Sebastian Bazley 7072a549e5 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829545 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:44:15 +00:00
Sebastian Bazley f4ace74c76 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829541 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:26:24 +00:00
Sebastian Bazley 509e3d2e3a Be more generous in the types we accept
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829540 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:24:27 +00:00
Sebastian Bazley c21e66257b Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829538 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:17:49 +00:00
Sebastian Bazley 14cde02867 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829537 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:08:55 +00:00
Sebastian Bazley 5ca6b02849 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829535 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:07:57 +00:00
Sebastian Bazley 64712a4fd3 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829534 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:07:08 +00:00
Sebastian Bazley 1da31f43a9 Unused variables
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829533 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 11:06:52 +00:00
Henri Yandell e2ccc014f8 Rolling back 826960 - IOException would need to be added to the API
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829487 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 03:37:21 +00:00
Stephen Colebourne dc200f42a4 Remove references to Labeled in method names as it is unecessary and the spelling looks poor/confusing in British English
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829405 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:45:42 +00:00
Stephen Colebourne 0a72dbad5a Allow contexted exception to store non-serializable objects (more flexible, and doesn't prevent serialization)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829404 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:38:08 +00:00
Stephen Colebourne 926ed9ea0e Tidy up contexted exception classes, better Javadoc, final variables, etc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829400 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:27:30 +00:00
Sebastian Bazley f61c229c74 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829398 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:17:13 +00:00
Sebastian Bazley 2f941fb8d6 Unused
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829397 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:16:42 +00:00
Sebastian Bazley 96dea6c4f6 Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829395 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:04:22 +00:00
Sebastian Bazley a80284f4c5 Document unused items
Raw types

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829394 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:02:23 +00:00
Sebastian Bazley 223eafb8c9 Drop unused fields
Raw types

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829393 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 16:01:37 +00:00
Sebastian Bazley 835085d912 Fix Eclipse case drop-thru warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829391 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 15:48:10 +00:00
Sebastian Bazley c341321e0c Document impossible unchecked cast warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829388 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 15:38:31 +00:00
Stephen Colebourne ab6b8d8d57 LANG-547 - Remove unused field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829385 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 15:18:48 +00:00
Sebastian Bazley 6fea27514a Fix some raw types and other Eclipse warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829375 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 14:26:35 +00:00
Sebastian Bazley 823e75f9b3 Fix some raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829374 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 14:15:08 +00:00
Sebastian Bazley 6622091f9b Fix internal raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829367 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 13:43:11 +00:00
Sebastian Bazley fdb8010676 Fix raw Class types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829364 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 13:37:46 +00:00
Sebastian Bazley 6eab86bafd Missing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829360 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 12:55:00 +00:00
Sebastian Bazley 726835ef8c Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829359 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 12:54:21 +00:00
Stephen Colebourne 17748e482d Apply generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829352 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 12:08:55 +00:00
Stephen Colebourne 14224204d9 Fix test case tear down that causes other tests to break
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829348 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 11:44:07 +00:00
Stephen Colebourne d87e7f52c0 Reorder methods and adjust Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829345 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 11:23:53 +00:00
Stephen Colebourne 58bf5f3aa3 Apply generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829343 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 11:08:52 +00:00
Henri Yandell 4f9c1c3777 Changing the hashCode() method to return toHashCode() per the request in LANG-520
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829285 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 00:04:07 +00:00
Henri Yandell 3d17fad6d6 Patch from Michael Rudolf in LANG-522 applied with additional String constructor tests added
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829283 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 00:00:47 +00:00
Henri Yandell 51a130b544 Applying patch from Vincent Ricard in LANG-514. CharRange constructors removed and replaced with readable static builder methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829282 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 23:59:02 +00:00
Henri Yandell ba0205c202 Making the private fields final via Sebb's patch from LANG-540
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828944 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 06:46:02 +00:00
Henri Yandell 6ef494b6f4 Making private fields final per Sebb's patch to LANG-540
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828943 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 06:44:45 +00:00
Henri Yandell 37405f1efe Adding back the empty constructor per Sebb's comment on LANG-540
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828942 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 06:43:26 +00:00
Sebastian Bazley f20df89b6f LANG-541 - Switched StringBuffer to StringBuilder when only used internally
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828910 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 01:46:25 +00:00
Sebastian Bazley 749c4c66c5 LANG-541 - Switched StringBuffer to StringBuilder when only used internally
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828909 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 01:37:07 +00:00
Sebastian Bazley e226ac7de9 Make private field final to improve thread safety
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828899 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 00:24:27 +00:00
Sebastian Bazley 8ee228155c Unnecessary semi-colon;
Remove TODO which has been addressed

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828897 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 00:23:15 +00:00
Henri Yandell 711e204e73 Applying the final part of Benjamin Bentmann's patch to LANG-432, improving our handling of case-insensitive Strings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828317 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 05:46:33 +00:00
Henri Yandell 7d3fbbfd43 Applying Tomasz Nurkiewicz's patch from LANG-533 adding notBlank methods to Validate
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@828310 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 05:33:21 +00:00
Henri Yandell 7e83efc1d1 Removing tabs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826970 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 06:11:39 +00:00
Henri Yandell 13a0cc63cd Applying Robert Scholte's patch from LANG-422, adding a appendSeparator with an alternative default separator if the StrBuilder is currently empty
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826969 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 06:10:10 +00:00
Henri Yandell dbf4cd5f42 Moved identityToString(StringBuffer, Object) to identityToString(Appendable, Object) per LANG-542
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826960 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 05:46:43 +00:00
Henri Yandell 6d8ed9be2c Switched StringBuffer to StringBuilder whenever a local usage (and not subsequently used in an API) as per LANG-541
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826958 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 05:35:46 +00:00
Henri Yandell 7f837535c6 Adding a StringUtils.repeat(String, String separator, int) method per request in LANG-348
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826955 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 05:18:57 +00:00
Henri Yandell 5b601a3d6b Applying Sebb's patch from LANG-540 making the NumericEntityEscaper class immutable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826947 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 04:19:47 +00:00
Henri Yandell d68da319fa Fixing compile error introduced after making variable final but leaving a path in which it can miss getting initialized
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826946 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 04:16:38 +00:00
Henri Yandell c9a918a842 Making private options variable final at Sebb's pointing out of thread safety improvement
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@826584 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 04:38:32 +00:00
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 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