Commit Graph

2100 Commits

Author SHA1 Message Date
Henri Yandell 56e830a235 Removing old Range classes per LANG-551. New lang.Range class replaces these
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835780 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:54:04 +00:00
Henri Yandell 452a6c0cd8 Adding elementCompareTo method as requested in LANG-386 (which called the method positionOfXxx)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835777 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:51:08 +00:00
Henri Yandell 4c124cea28 Adding @throws and test for the ClassCastException thrown by the ComparableComparator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835771 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 08:05:11 +00:00
Matthew Jason Benson 89af393b32 generics fixup
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@834663 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 20:59:16 +00:00
Oliver Heger caf3f0c3c3 [LANG-545] Added ability to create a ConstantFuture object. Thanks to Stephen Colebourne for the patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833709 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 16:37:05 +00:00
Henri Yandell 5bfa8aaf14 Adding todo note to consider final/field-usage - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833363 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:53:38 +00:00
Henri Yandell da7e4f3840 Adding more tests, plus a rename of lessThan to elementBefore; greaterThan to elementAfter and bugfix so the new code works - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833358 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:45:38 +00:00
Henri Yandell b7a34131b8 containsRange test added - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833343 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 11:11:38 +00:00
Henri Yandell bd900f6be7 Added test for contains method, along with a null fix for contains and improved javadoc - LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833337 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 10:47:15 +00:00
Henri Yandell ff1102d68d Committing work in progress version of a new Range class to replace the math.*Range classes as discussed in LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833308 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 07:56:22 +00:00
Henri Yandell acb16f7348 Applying Jörg Gottschling's patch from LANG-358 with Thomas Menzel's naming from LANG-550 and some of his tests. This adds a firstNonNull method to ObjectUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@833016 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 07:25:54 +00:00
Stephen Colebourne 928950c9bf LANG-493 - Remove allElementsOfType as generics handles this pretty well now
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831709 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 17:10:02 +00:00
Stephen Colebourne dab4ca0812 Add generic return types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831704 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 16:54:34 +00:00
Stephen Colebourne 661832fb35 LANG-546 - Validate.validIndex()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@831689 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 15:45:09 +00:00
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
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
Henri Yandell d0e667d278 Updating TODOs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795892 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:12:53 +00:00
Henri Yandell be336df54a Improving Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795891 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:12:35 +00:00
Henri Yandell 944f642f0b Applying my patch to LANG-355, making StrBuilder implement Appendable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795604 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:41:50 +00:00
Henri Yandell 4351e7a1a1 Applying Arnaud Brunet's patch from LANG-355 to make StrBuilder implement CharSequence
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795600 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:30:40 +00:00
Henri Yandell 49e68a3f96 Applying Robert Scholte's patch to Travis Reeder's request for a DateUtils.ceiling(...) method to complete truncate(...) and round(...) in LANG-434
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795597 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:21:04 +00:00
Henri Yandell 784e93e61d Refactoring the array of Java ctrl characters to be in EntityArray rather than embedded in their own escape/unescape
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795596 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:15:14 +00:00
Henri Yandell dff12292a0 Updating javadoc to note new '/' difference between Java and JavaScript (LANG-421)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795594 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 19:04:30 +00:00
Henri Yandell 0bfa6b451e Adding unit test to show the problem reported in LANG-339 - namely that Chinese, Japanese etc characters are escaped. Furthermore the test notes that they are not subsequently unescaped; which means a lack of symmetry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@795593 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19 18:41:14 +00:00
Henri Yandell 489cc2fd6f Applying Ivan Bilenjkij's patch from LANG-513, improving the generics of the getEnumMap method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@792051 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 06:45:02 +00:00
Henri Yandell 8f9a5889e0 Updating comment to explain why a public constructor exists
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@792050 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 06:35:53 +00:00
Henri Yandell 2a7a320d63 synchronized removed from availableLocaleSet per LANG-488
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@792049 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 06:30:04 +00:00
Henri Yandell a4325e5559 Moving availableLocaleSet and availableLocaleList to both lazily initialize in a separate synchronized method. This brings the two pieces of code into line with each other, allows availableLocaleSet() to be unsynchronized as desired in LANG-488 and removes the static initialization of availableLocaleList() as requested in LANG-511
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@791726 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 07:10:02 +00:00
Henri Yandell 76555b1480 Deprecating StringEscapeUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@791721 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 06:56:22 +00:00
Henri Yandell ee930ccac2 Splitting out the \b \n \t \f \r Java ctrl chars as their own translator to help with the request in LANG-498
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789589 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 07:04:06 +00:00
Henri Yandell 9d917f24ce Making the EntityArrays class public by cloning the arrays when they are accessed. API might need a sanity check as this is the old Entities stuff. Also changing the arrays to be private and the rest of the code to use the cloning methods. This does add performance overhead, but I think it'll be negligible and better to practice safe coding. Part of LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789584 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 06:47:18 +00:00
Henri Yandell 5ead3906e2 Moving a few of the StringUtils methods over to accepting CharSequence instead of String as part of LANG-510
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789575 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 06:34:01 +00:00
Henri Yandell b395162258 Applying Vincent Ricard's patch in LANG-471 (reported by Ivica Mikic) adding isAllUpperCase and isAllLowerCase to StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789573 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 06:24:20 +00:00
Henri Yandell 697cb0fc1a Performance improvement. Switching from looping through a doubled array to using a Map. This probably costs more for simple cases like Java/EcmaScript/Xml, but makes up for it in the Html case. This gets performance of the testUnescapeHexCharsHtml method back down to near the same region as the original code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789567 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 05:47:39 +00:00
Henri Yandell df0d0cc96a Adding a simple unit test for text translate. More needed, though StringEscapeUtils does do a good job of hitting a high level of coverage for these classes already. It's easier to debug when you have tighter testing.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789566 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 05:46:08 +00:00
Henri Yandell 78d29f75f9 Added todo note
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@789561 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 05:09:01 +00:00
Henri Yandell f3ac86a292 Applying patch from LANG-461 from Vincent Ricard to add toByte and toShort methods to NumberUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788276 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 07:09:30 +00:00
Henri Yandell 275f3fa088 Refactoring to avoid code duplication - LANG-458
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788275 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 06:58:11 +00:00
Henri Yandell 47cd2e5536 Generifying the general Mutable, and the underlying MutableObject. This then allows for typed checking of a MutableBigDecimal for example as per LANG-276
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788263 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 05:25:23 +00:00
Henri Yandell 171fa698d3 Removing unnecessary Escape*AsciiAsUnicode classes. UnicodeEscaper now handles the range concept directly and the ctrl character lookup table is now a direct LookupTranslator defined in EscapeUtils. cf LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788259 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 05:00:39 +00:00
Henri Yandell bda5d16000 Fixing bug in below/above implementations found while implementing NumericEntityEscaper
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788257 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 04:57:19 +00:00
Henri Yandell b4bdbdfe9c Replacing the NonAsciiAsNumericEntity class with a more generic NumericEntityEscaper. cf LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788256 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 04:56:18 +00:00
Henri Yandell f8a77fc872 Adding some todo notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788255 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 04:54:48 +00:00
Henri Yandell 05107d6474 Indentation fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788254 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 04:52:32 +00:00
Henri Yandell cec3b9ff20 Updating ESCAPE_JAVA to use the new .with() approach and to fold the two unicode escape methods into one.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788245 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 03:55:18 +00:00
Henri Yandell b9ab7659bc Rather than writing specific translators to handle unicode between different ranges, UnicodeEscaper now supports a range filter. cf LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788244 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 03:54:43 +00:00
Henri Yandell a11f380774 Adding a method to chain translators together. I've gone back and forth on the name, currently with() is my preference. So you could say: BASIC_XML.with(HTML4_ENTITIES). cf LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788243 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 03:54:03 +00:00
Henri Yandell a027b12acf Adding escapeXxx(String) and unescapeXxx(String) methods to EscapeUtils + UnescapeUtils, and changing StringEscapeUtils to use them. LANG-505
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@787903 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 04:41:51 +00:00
Henri Yandell c159ace15b Removing Suite classes per agreement on mailing list back in March
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@787896 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 04:03:36 +00:00
Henri Yandell c5ef7421d9 Removing IntHashMap. Without Entities it's not needed.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@787895 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 04:01:35 +00:00
Henri Yandell 8a57de11ee Updating the @since as I don't expect a 2.5
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@787893 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 03:59:23 +00:00
Henri Yandell c404121979 Committing a rewrite of StringEscapeUtils guts - LANG-505. Entities.java can now go away. Most of the code is in the new text.translate package. More work is needed, including what to actually define as 'ESCAPE_XML' etc, but it's now easy for someone to look at the source to EscapeUtils and UnescapeUtils and put their own ESCAPE_XML variable together, and with lots of reuse value.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@787560 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 06:15:50 +00:00
Henri Yandell bc1104da49 Removing escapeSql per LANG-493
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@786942 13f79535-47bb-0310-9956-ffa450edef68
2009-06-21 05:35:04 +00:00
Henri Yandell 9209200145 Moving isEmpty to generics as per LANG-504
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775797 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 03:15:33 +00:00
Henri Yandell f38cdfbf8c Cloning the output from getExcludeFieldNames, adjusting the code to use the attribute directly so it doesn't pay the clone() cost every time and changing the attribute from private to protected to let subclasses retain the ability to modify the field names (if that is why a getExcludeFieldNames method existed). Document in LANG-489
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775432 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 08:26:07 +00:00
Henri Yandell 58178ddfd8 Started cloning the input character array. Record in LANG-489 for migration guide.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775429 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 08:18:46 +00:00
Henri Yandell 0d231cb285 Commented out unused field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775428 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 08:17:21 +00:00
Henri Yandell 226801cebc Removing unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775425 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 07:27:40 +00:00
Henri Yandell 373624c4f0 Removing unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775420 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 06:32:52 +00:00
Henri Yandell bb7775388f Fixing javadoc, unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775411 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 03:46:27 +00:00
Henri Yandell e9b32bccfa Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775410 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 03:44:06 +00:00
Henri Yandell 7c7fea8957 Commiting my variant patch from LANG-336 to Henrik Maryn's genericizing code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775048 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 07:34:17 +00:00
Henri Yandell ed49378250 Genericizing per LANG-336. Removed two lines in the test that were trying to build a to string up to a class that was not in the hierarchy. The compiler now protects against this.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@775045 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 07:33:02 +00:00
Henri Yandell a60f59ac93 Type doesn't need to be ArrayList, and updating for loops
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772553 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 08:42:01 +00:00
Henri Yandell 7d744b2267 Genericizing excludeFieldList variable and updating for loop to foreach - LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772551 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 08:41:42 +00:00
Henri Yandell ca3a3baa65 Genericizing excludeFieldList variablle - LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772548 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 08:31:48 +00:00
Henri Yandell bab78e92bb Type doesn't need tobe ArrayList
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772544 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 08:28:13 +00:00
Henri Yandell 97631fd612 Adding generics - LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772541 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 08:12:25 +00:00
Henri Yandell a373714575 Updating to java 5 foreach - LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772540 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 08:11:38 +00:00
Henri Yandell 3d2c545acb Updating to java 5 foreach - LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772539 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 08:10:59 +00:00
Henri Yandell 73ac4a0289 Applying Hendrik Maryns' generics changes for Entities + Validate from LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@770891 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 05:20:35 +00:00
Henri Yandell 8b7956d27f Applying a set of updates for new Java features from Hendrik Maryns in LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@770105 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 08:08:48 +00:00
Henri Yandell f89a50b528 Simplifying for loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@770101 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 07:50:19 +00:00
Henri Yandell c58bbaaa4b Applying Hendrik Maryns' generics changes for Mutable classes from LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@770100 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 07:40:02 +00:00
Henri Yandell 0904ecd4fa Removing NumberUtils.compare(float,float) and NumberUtils.compare(double,double). These are now foud in Float and Double respectively. Keeping the unit tests, but pointing to the JDK methods as a regression. LANG-492
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@770078 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 06:03:16 +00:00
Henri Yandell 574493d175 Improving getPackageName(Class) to be class.getPackage().getName(). This method then becomes one of the null-protection only methods... which are imo struggling for justification
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@763561 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 08:38:53 +00:00
Henri Yandell 9adc537013 Removing BooleanUtils.toBooleanObject(boolean) as JDK 1.4 provides Boolean.valueOf(boolean) - even if we ignore autoboxing. LANG-492
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@763559 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 08:34:47 +00:00
Sebastian Bazley 07c1324202 Generic fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@756852 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 01:00:21 +00:00
Sebastian Bazley 6cf9814780 ObjectUtils.max(null,null) requires casts to agree with signature; likewise min
Also use actual Date objects rather than generic Comparable.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@756844 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 00:17:43 +00:00
Sebastian Bazley b9e3bc72d5 LANG-495 - add generics for max and min
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@756634 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 17:10:39 +00:00
Sebastian Bazley b8a8046723 Test min and max are reflexive; test both nulls
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@755579 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 12:33:03 +00:00
Sebastian Bazley 6349c0d097 Generics
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@755573 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 12:05:47 +00:00
Sebastian Bazley e8512544ed LANG-369 - must use fixed object as lock target
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@755391 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 20:54:52 +00:00
Sebastian Bazley 86d0d0e216 Ensure calculation is performed as a long
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@755387 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 20:51:58 +00:00
Sebastian Bazley 8338eb2544 Specify encoding to use; Use better JUnit; Add JCIP annotation depend
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@755269 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 14:40:26 +00:00
Sebastian Bazley 654fb75d80 Genericize some more classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754810 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 03:35:20 +00:00
Sebastian Bazley 950def5b6f Genericize some more classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754808 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 02:11:38 +00:00
Sebastian Bazley 9aa057fea0 Add test with empty string array
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754806 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 02:11:08 +00:00
Sebastian Bazley e0914986c4 Byte.valueOf() is definitely faster than new Byte()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754805 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 02:08:49 +00:00
Sebastian Bazley 909dd44949 Byte.valueOf() is definitely faster than new Byte()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754804 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 02:06:18 +00:00
Henri Yandell 64dfea8d86 Fixing javadoc to not reference removed method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754782 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 22:36:07 +00:00
Sebastian Bazley f3a2199a83 Genericize
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754686 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 16:27:34 +00:00
Sebastian Bazley c06b74202d Genericize; remove invalid Javadoc reference
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754682 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 16:11:01 +00:00
Sebastian Bazley ebfe3a9c1d Genericize; add final qualifier to private var
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754678 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 15:27:48 +00:00
Sebastian Bazley d85758d688 LANG-438 - replace links to Javadoc that was deleted with the deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754677 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 15:06:03 +00:00
Sebastian Bazley 524e74451b Don't expose static arrays to potential writes, even for testing
Add package protected read method instead

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754653 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 11:18:30 +00:00
Henri Yandell 9aaab6cabb This should bring code coverage to 100% for MutableBoolean
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754611 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 03:43:40 +00:00
Henri Yandell f4a99655f0 Bringing the code coverage to 100% :) Constructor wasn't being tested.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754610 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 03:41:15 +00:00
Sebastian Bazley 8a51b94300 Generify LocaleUtils and its Test class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754603 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 02:50:18 +00:00
Henri Yandell 856a80b608 Removing removed test from suite - LANG-493
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754602 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 02:49:37 +00:00
Henri Yandell 351ace5692 Dropping RandomUtils from Lang to the backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754601 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 02:46:35 +00:00
Henri Yandell da46e86e2f Dropping RandomUtils from Lang to the backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754600 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 02:44:13 +00:00
Henri Yandell b2fdd722e7 Dropping JVMRandom from Lang to the backcompat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754599 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 02:43:42 +00:00
Henri Yandell 791e7f3830 Removing the Lang NestableException concept and instead relying on the JDK support. [LANG-492]. [LANG-491] notes the need to rethink ExceptionUtils and its test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754589 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 02:10:44 +00:00
Sebastian Bazley 2455cece59 Remove spurious blank line from output
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754553 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 23:38:25 +00:00
Sebastian Bazley c1c4bb4a77 Add missing test class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754550 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 23:30:26 +00:00
Sebastian Bazley f26a785f20 Fix Short test case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754549 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 23:29:22 +00:00
Sebastian Bazley bb90472825 Remove tests of removed deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754539 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 21:57:10 +00:00
Sebastian Bazley fd0deef560 Suppress warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754538 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 21:55:11 +00:00
Sebastian Bazley eaac4a7df7 Replace deprecated method call
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754537 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 21:54:00 +00:00
Sebastian Bazley ef0dec934b Remove deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754531 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 21:33:48 +00:00
Sebastian Bazley 71711e3cf8 Remove deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754522 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 21:24:04 +00:00
Sebastian Bazley a4548304f9 Suppress warnings for unread/unused fields and casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754519 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 21:00:26 +00:00
Sebastian Bazley d744105cdb Suppress warnings for unread/unused fields
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754493 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 17:01:21 +00:00
Sebastian Bazley 1c224cbdd2 Extraneous ;
Make private variable final

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754492 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 17:00:31 +00:00
Sebastian Bazley f960575bce Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754490 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:53:10 +00:00
Henri Yandell 6a1996d610 Removed deprecated methods from ToStringStyle (setShortClassName + isShortClassName) [LANG-438]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754486 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:37:15 +00:00
Henri Yandell 084cfeed41 Removed deprecated getJavaVersion() method from SystemUtils [LANG-438]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754485 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:36:17 +00:00
Henri Yandell 69717be43d Removed deprecated constructors from ReflectionToStringBuilder [LANG-438]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754484 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:34:16 +00:00
Henri Yandell d3f62a5f6f Removed deprecated methods from StandardToStringStyle (setShortClassName + isShortClassName) [LANG-438]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754483 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:33:57 +00:00
Henri Yandell 386cd26dab Removing deprecated evaluateSet and translate methods [LANG-438]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754482 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:29:28 +00:00
Sebastian Bazley dc08c40f60 revert Oops, readers need to be synch too - misread field name
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754477 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:12:09 +00:00
Sebastian Bazley fb94c3fe59 Oops, readers need to be synch too
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754474 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:08:19 +00:00
Sebastian Bazley 2bfd4fec17 Can we make these fields private?
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754472 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:04:58 +00:00
Sebastian Bazley 5bfe84d276 Make private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754471 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:04:17 +00:00
Sebastian Bazley e0d8c67113 Make private fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754470 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:03:31 +00:00
Sebastian Bazley 46b743d26e Add synch for lazily created static field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754469 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 16:02:18 +00:00
Sebastian Bazley 3b03f6a0ad Oops - accidentally removed some lines in r753655. Replaced.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754460 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 15:18:22 +00:00
Sebastian Bazley 7585da946c Document thread-safety of cDefaultPattern
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754457 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 14:57:45 +00:00
Sebastian Bazley c0917e861a Make private static fields final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754456 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 14:56:55 +00:00
Sebastian Bazley b43136cb1c Tab police
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753662 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 14:05:13 +00:00
Sebastian Bazley 80941d0b80 Add missing @Override markers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753660 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 14:00:22 +00:00
Sebastian Bazley 94036044a4 Unnecessary casts (clone)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753658 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:55:29 +00:00
Sebastian Bazley a7670821dc Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753656 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:41:29 +00:00
Sebastian Bazley d165a84e9e Fix various Eclipse warnings (casts, unused vars, @Override)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753655 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:40:37 +00:00
Sebastian Bazley 8328a95adb Fix various Eclipse warnings (casts, unused vars)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753654 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:37:21 +00:00
Sebastian Bazley 6315813381 Casts not really needed, but keep for consistency so suppress warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753653 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:32:29 +00:00
Sebastian Bazley 5b64c9177b Avoid class cast and unused var warnings [Eclipse]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753652 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:23:02 +00:00
Sebastian Bazley 6c2ce661d9 Cast null for calling invoke() [Eclipse]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753651 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:17:50 +00:00
Sebastian Bazley 63f03f356c Cast null for calling getMethods() [Eclipse]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753650 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 13:15:07 +00:00
Sebastian Bazley 43db58d70f Add missing @Override markers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753646 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 12:58:05 +00:00
Sebastian Bazley fede75d58f Add missing @Override markers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753645 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 12:54:15 +00:00
Sebastian Bazley c653a71c1e Add missing index to array reference (Findbugs)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753643 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 12:22:50 +00:00
Henri Yandell d34bc6a603 Removed deprecated NumberRange class [LANG-438]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753627 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 10:03:13 +00:00
Henri Yandell f62839527b Removing deprecated NumberUtils.toInt methods [LANG-438]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753626 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 10:01:53 +00:00
Henri Yandell 5ca11e049c Removed deprecated org.apache.commons.lang.NumberUtils class as per LANG-438
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753625 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 09:59:56 +00:00
Henri Yandell cba79c706b Removing deprecated fields in DateUtils as per LANG-438
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753624 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 09:57:47 +00:00
Henri Yandell 798b3306f8 Fixing package name. Removing import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753621 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 09:26:42 +00:00
Henri Yandell 929156a833 Moving IDKey into builder package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753620 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 09:26:14 +00:00
Henri Yandell ebeafe7dd0 Making IDKey package private. Which means it needs to move into builder
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753619 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 09:26:01 +00:00
Matthew Jason Benson 9ec9d423fa comments, a spelling correction, some ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@752469 13f79535-47bb-0310-9956-ffa450edef68
2009-03-11 15:27:27 +00:00
Henri Yandell eca2cde607 Fixing names of classes so they compile/run
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@751359 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 02:20:22 +00:00
Henri Yandell e745797ab3 Renaming files to match *Test.java of other tests. Code is broken - needs to be edited after the svn mv
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@751358 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 02:15:36 +00:00
Henri Yandell 76fdbaf1a4 Removing EnumTests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@751351 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 01:57:50 +00:00
Henri Yandell 69d0399fcd Moving the enums package over to the backcompat branch. Won't be in 3.0 as people should use Java enums nowadays
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@751350 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 01:56:56 +00:00
Henri Yandell 784a817fef Moving the enums package over to the backcompat branch. Won't be in 3.0 as people should use Java enums nowadays
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@751349 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 01:56:00 +00:00
Henri Yandell bcf6e9d662 Adding Java5 EnumUtils class with getEnumMap method. LANG-290
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@751347 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 01:37:57 +00:00
Henri Yandell f5203850b0 Documenting future of enums
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@751344 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 01:07:17 +00:00
Henri Yandell 4f49d7d272 Removing the enum package from the All test suite
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749174 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 03:44:13 +00:00
Henri Yandell 50af57d0b8 Moving enum test package to back compat 'branch'
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749173 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 03:40:27 +00:00
Henri Yandell 5df3e1aad7 Moving enum package to back compat 'branch'
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749171 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 03:39:27 +00:00
Henri Yandell 4f3b802594 Adding javadoc per LANG-424 to point out what happens in substringLast/substringBefore methods when substring is not found
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749151 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 02:33:24 +00:00
Henri Yandell cb8a0d43ea Applying my patch from LANG-478 - moving StopWatch to using nanoTime under the hood.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749114 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 21:18:18 +00:00
Henri Yandell ef718fccdf Removing the notion that -1 was a special state value. The code was changed a while back to have properly defined states. Helps prepare for LANG-478
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749101 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 21:02:57 +00:00
Henri Yandell c068395793 Applying Alexander Kjall's patch from LANG-480; along with a unit test made from his example. Fixes unicode conversion above U+00FFFF being done into 2 characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@749095 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 20:54:40 +00:00
Matthew Jason Benson 00fee20efc ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@739041 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 22:00:55 +00:00
Niall Pemberton a38e2e942d Fix for LANG-477 OutOfMemory with custom format registry and a pattern containing single quotes - thanks to Duncan Eley
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@733169 13f79535-47bb-0310-9956-ffa450edef68
2009-01-09 22:05:14 +00:00
Henri Yandell eb8b39b145 Removing commented out main method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@723785 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 16:34:26 +00:00
Sebastian Bazley 4ebd1df198 Typos
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@720929 13f79535-47bb-0310-9956-ffa450edef68
2008-11-26 18:16:33 +00:00
Sebastian Bazley 748d68532e Remove Javadoc for non-existent parameter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@720923 13f79535-47bb-0310-9956-ffa450edef68
2008-11-26 17:34:58 +00:00
Henri Yandell b1e8a26177 Updating the BigDecimal.compareTo(Object) to BigDecimal.compareTo(BigDecimal) to match JDK change - fixes LANG-468/LANG-464
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@711969 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 20:36:17 +00:00
Henri Yandell a6a2d04877 Applying Robert Scholte's excellent unit tests from LANG-443 and his second patch from LANG-440 fixing a discovered boundary case for AM_PM in round
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@711616 13f79535-47bb-0310-9956-ffa450edef68
2008-11-05 17:00:43 +00:00
Henri Yandell 0d0061f247 Applying test/fix from LANG-457 - getting a StringIndexOutOfBounds from createNumber rather than a NumberFormatException
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@711605 13f79535-47bb-0310-9956-ffa450edef68
2008-11-05 16:33:25 +00:00
Henri Yandell 17f1d2951f Improving javadoc a little to explain what the point of this class is/was
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@699767 13f79535-47bb-0310-9956-ffa450edef68
2008-09-28 03:31:24 +00:00
Sebastian Bazley a78f1c2b45 LANG-445 - new method StringUtils.startsWithAny(String str, String[] searchStrs)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@697715 13f79535-47bb-0310-9956-ffa450edef68
2008-09-22 08:53:07 +00:00
Niall Pemberton fa436d849d LANG-460 - JavaDoc corrections - parameters interchanged in StringUtils startsWith/startsWithIgnoreCase methods thanks to Jörg Gottschling
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@696516 13f79535-47bb-0310-9956-ffa450edef68
2008-09-17 23:26:20 +00:00
Sebastian Bazley 3ed99652c8 LANG-459 HashCodeBuilder.reflectionHashCode() can generate incorrect hashcodes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@695951 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 16:03:14 +00:00
Matthew Jason Benson 6f27e9bbd1 assembly version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@692272 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 22:09:13 +00:00
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
Gary D. Gregory 11fc6950e9 Format @since 2.4 methods to match the rest of the file. For example, expressions use no spaces around parens.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619143 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 20:21:57 +00:00
Gary D. Gregory 004d7b3e8f Simplify code paths where a statement is unnecessarily nested within an else clause. Also flip some if/else statements when tests can be expressed more clearly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619137 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 20:10:05 +00:00
Gary D. Gregory db456f2f89 Eat own dog food: Use EMPTY instead of "".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619115 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 19:27:10 +00:00
Sebastian Bazley fc734d1046 Correct spelling and punctuation in Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619091 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 18:24:59 +00:00
Henri Yandell cced495fa6 Pointless having the version here given that it gets automatically put above it when building
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619048 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 16:15:34 +00:00
Henri Yandell 531e28e356 Added missing '@since 2.4' lines based on jardiff report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@618884 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 04:37:17 +00:00
Gary D. Gregory b0b8356b0b [LANG-407] StringUtils.length(String) returns null-safe length.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@618882 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 04:32:56 +00:00
Sebastian Bazley 6dd93fc367 Remove extraneous exec properties
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@618693 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 16:33:29 +00:00
Henri Yandell 16120b386c Applying my patch from LANG-379, based on Robert Scholte's patch adding the 'getFragment' family of methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@617360 13f79535-47bb-0310-9956-ffa450edef68
2008-02-01 07:12:56 +00:00
Henri Yandell 9fc5424a6e Fixing the expected exception so the test doesn't fail (see LANG-180)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@616173 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 05:39:44 +00:00
Henri Yandell 3b7ca1d4a2 Applying my modified version of Chris Hyzer's patch from LANG-180 - adding a replaceEach(String, String[], String[]) and replaceRepeatedly(String, String[], String[]) pair of methods. The internal code to the private replaceEach method has not been fully reviewed yet - I wanted to get more eyes focused on the algorithm
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@616170 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 05:33:17 +00:00
Niall Pemberton 9681a37481 javadoc correction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@615244 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 15:21:08 +00:00
Niall Pemberton e266303c56 LANG-404 Add Calendar flavour format methods to DateFormatUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@615243 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 15:20:32 +00:00
Gary D. Gregory 680d605d3f Apply sebb's suggestion.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612880 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 17:34:43 +00:00
Niall Pemberton 5cb16e839d Add missing license files
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612786 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 10:37:38 +00:00
Henri Yandell 10658442a5 Applying my patch from LANG-298, based on Tomasz Blachowicz's original patch, and adds getPackageCanonicalName and getShortCanonicalName sets of methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612749 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 08:05:23 +00:00
Gary D. Gregory 57c6a6e832 Remove dependency on Java 1.4.2. Stick with Java 1.3.1.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612746 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 07:54:21 +00:00
Gary D. Gregory ee3839f5f4 Fix javadoc warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612656 13f79535-47bb-0310-9956-ffa450edef68
2008-01-17 00:31:27 +00:00
Henri Yandell 2a94f969ed Applying my patch from LANG-257, adding Cameron Whitehead's desired splitByWholeSeparatorPreserveAllTokens methods. In addition to the patch, I've added @since 2.4 tags to the javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@612367 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 06:43:30 +00:00
Henri Yandell e199d381f8 Applying my patch from LANG-393; EqualsBuilder uses compareTo for BigDecimal and not equals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611543 13f79535-47bb-0310-9956-ffa450edef68
2008-01-13 07:00:22 +00:00
Matthew Jason Benson 97f1c120c0 [LANG-192] API improvements
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611528 13f79535-47bb-0310-9956-ffa450edef68
2008-01-13 03:46:28 +00:00
Matthew Jason Benson c739e01c68 add'l splitByCharacterType tests for single trailing characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611290 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 20:26:02 +00:00
Matthew Jason Benson ea810cbbbd [LANG-192] addSplitByCharacterType and camelCase variant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611288 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 20:13:02 +00:00
Henri Yandell 400f92899e Adding missing javadoc param
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610682 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 05:31:24 +00:00
Henri Yandell 34ad89c74d Deprecating add(Date, int, int) as there is no value in it being public
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610670 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 04:44:55 +00:00
Henri Yandell 9878845801 Marking @since 2.4 on the new methods from LANG-383
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610669 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 04:42:51 +00:00
Henri Yandell 85dda0d25a Applying the Date.setXxx replacement methods that use Calendar as supplied by Travis Meisenheimer in LANG-383
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610668 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 04:41:22 +00:00
Sebastian Bazley d3e28b6802 LANG-399 - Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@610452 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 16:53:06 +00:00
Henri Yandell bee5b923c5 Applying third patch from LANG-381. Fixes the minimum(float[]) type methods to correctly return NaN when it is in the array, and adds an IEEE754rUtils class that obeys the IEEE 754r update in which NaN in min/max methods should be ignored unless all values are NaN.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@609475 13f79535-47bb-0310-9956-ffa450edef68
2008-01-06 23:58:59 +00:00
Henri Yandell ea4ce16289 Applying my patch from LANG-374 that adds an unescape method. It stays true to the spec and considers "foo.bar" to unescape as "foo.bar", ie) no unescaping, because "foo.bar" is illegal output from the escape method spec-wise.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@609094 13f79535-47bb-0310-9956-ffa450edef68
2008-01-05 06:33:12 +00:00
Henri Yandell e53cce977e Fixing the javadoc as per Tomasz Bartczak's report in LANG-384
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@606672 13f79535-47bb-0310-9956-ffa450edef68
2007-12-24 06:42:08 +00:00
Matthew Jason Benson dadd5e0130 disable toPattern() assertions pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600610 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:24:47 +00:00
Matthew Jason Benson 20817861c9 account for unavailability of NumberFormat.getIntegerInstance(...) pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600608 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:23:05 +00:00
Matthew Jason Benson 426bd462c9 account for unavailability of NumberFormat.getIntegerInstance(...) pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600607 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:21:50 +00:00
Matthew Jason Benson 524f1518d9 no (String, Locale) constructor on MessageFormat pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600606 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:21:09 +00:00
Matthew Jason Benson 686f2f611c account for unavailability of NumberFormat.getIntegerInstance(...) pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600605 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:20:24 +00:00
Matthew Jason Benson b952b75526 add note about toPattern() differences pre JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600602 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 17:19:23 +00:00
Matthew Jason Benson 0d575a6952 build on JDK 1.3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@600566 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 15:28:25 +00:00
Matthew Jason Benson 673385b43d [LANG-380]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@599500 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 16:25:54 +00:00
Matthew Jason Benson dab1bdfc0f [LANG-380] tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@599499 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 16:25:30 +00:00
Matthew Jason Benson b124f18766 undo a little formatting mayhem
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598710 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:34:34 +00:00
Matthew Jason Benson 55817e2233 [LANG-362] checkstyle; javadoc; extended testing which necessitated some refactorings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598707 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:27:35 +00:00
Matthew Jason Benson 0acf60c6b2 remove unused variables
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598706 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:26:28 +00:00
Matthew Jason Benson deae2ba238 [LANG-380] return when either arg == 0 plus early return when either == 1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@598705 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 17:24:59 +00:00
Henri Yandell 5ade5ae2b1 Fixing the @see->@link bit so it doesn't have @link
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597284 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:56:59 +00:00
Henri Yandell fa5bec39ff Adding return tag info
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597283 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:44:38 +00:00
Henri Yandell 11575edd7e Fixing checkstyle issue - lack of braces after an if
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597282 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:31:31 +00:00
Henri Yandell d2075adb52 Replacing the escaped quote with CSV_QUOTE, and changing the non-Writer version to reuse the Writer version - See: LANG-374
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597281 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 01:26:39 +00:00
Niall Pemberton 41d242e9ea LANG-377 Add containsAny() methods to StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595929 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 09:53:12 +00:00
Niall Pemberton 71a46589ca LANG-374 - implement Sebb's improvement to use StringUtils.containsNone()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595927 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 09:27:36 +00:00
Henri Yandell ac54287664 Adding Vista as per LANG-375
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595798 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 20:01:43 +00:00
Henri Yandell 272ca375e3 Removing testWTF as per LANG-376
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595779 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 19:02:49 +00:00
Niall Pemberton 8dd04a3897 Javadoc changes only
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595544 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 04:26:16 +00:00
Niall Pemberton 38760d2171 LANG-374 - Add escaping for CSV columns to StringEscapeUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595541 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 04:12:44 +00:00
Niall Pemberton 9d138fd0c0 Update m2 build
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@595540 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 04:11:59 +00:00