Commit Graph

2755 Commits

Author SHA1 Message Date
Gary D. Gregory 9506bec96f Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185705 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:59:56 +00:00
Gary D. Gregory 1b2fa6a727 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185704 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:56:56 +00:00
Gary D. Gregory c800d51a69 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185703 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:55:38 +00:00
Gary D. Gregory fa1c89f7e1 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185702 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:53:59 +00:00
Gary D. Gregory d9ad78065d Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185700 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:52:55 +00:00
Gary D. Gregory 6e9a3888a6 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185699 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:51:31 +00:00
Gary D. Gregory f4223f93e4 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185697 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:50:15 +00:00
Gary D. Gregory d0ea299cdf Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1185695 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:47:48 +00:00
Gary D. Gregory 41e61322d6 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183484 13f79535-47bb-0310-9956-ffa450edef68 2011-10-14 20:12:49 +00:00
Gary D. Gregory d454e564c1 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183477 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 20:03:54 +00:00
Gary D. Gregory 00a102e828 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183474 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 19:48:03 +00:00
Gary D. Gregory 7d00a80c97 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1183473 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 19:46:16 +00:00
Gary D. Gregory 16c3a32975 [LANG-759] Add Support in SystemUtils for Windows Server 2003 and Windows Server 2008.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1180197 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 20:12:48 +00:00
Sebastian Bazley 5244e89e73 LANG-744 Use IOD for stripAccent init
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1178626 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:04:54 +00:00
Henri Yandell c103730424 Adding additional example for whitespace per Bruno's patch in LANG-758
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1177171 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 05:56:45 +00:00
Gary D. Gregory 4e2882b6c3 [LANG-756] Add APIs ClassUtils.isPrimitiveWrapper(Class<?>) and isPrimitiveOrWrapper(Class<?>)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1174469 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 00:47:45 +00:00
Gary D. Gregory 74480a2362 Convert to Java 5 enhanced for loops.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1169521 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 20:10:58 +00:00
Henri Yandell 765e4ff843 Making this package private as it lacks any public API value at the present
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167674 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:49:13 +00:00
Henri Yandell 8819b52ba1 Making ComparatorChain implement Iterable. Including test and package private copy of Collections' UnmodifiableIterator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167673 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:47:33 +00:00
Henri Yandell 2fcc80e71f Simplifying ComparatorChain version from the version taken from Commons Collections. The ability to modify the comparator list, and the ability to reverse items (rather than simply wrapping in ReverseComparator) was complexity inducing. Also added a unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167671 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:07:14 +00:00
Henri Yandell dc3bef79c8 Adding test for equals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1167669 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 05:06:14 +00:00
Sebastian Bazley 1db449142a LANG-752 Fix createLong() so it behaves like createInteger()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166820 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 17:30:04 +00:00
Sebastian Bazley 0ee2a1ec2c LANG-744 StringUtils throws java.security.AccessControlException on Google App Engine
Display both Java6 and Sun exceptions when neither is available for stripAccents

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166786 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 16:37:26 +00:00
Gary D. Gregory 603d818735 [LANG-751] Include the actual type in the Validate.isInstance and isAssignableFrom exception messages.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166685 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 13:41:05 +00:00
Gary D. Gregory 960b9a6cf7 Remove dead space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166371 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 20:09:25 +00:00
Gary D. Gregory 613e988c80 Revert changes from r1166233: [LANG-750] Add MethodUtil APIs to call methods without parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166253 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 16:27:42 +00:00
Gary D. Gregory 6a82ecae17 [LANG-750] Add MethodUtil APIs to call methods without parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166233 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 15:39:45 +00:00
Gary D. Gregory 1a37d98e3b Convert to JUnit 4 from 3.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166221 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 15:18:43 +00:00
Gary D. Gregory 9ed740b8bf Convert to JUnit 4 from 3.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166220 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 15:18:06 +00:00
Sebastian Bazley 8b9dba5315 LANG-744 StringUtils throws java.security.AccessControlException on Google App Engine
Change static code to catch and save Exception; only report failure if no method is available

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1165701 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 15:16:47 +00:00
Gary D. Gregory 2c3cc60001 Changes for [parent] 22-SNAPSHOT.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1165645 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 12:46:39 +00:00
Gary D. Gregory 507ae723e3 Test [LANG-744] StringUtils throws java.security.AccessControlException on Google App Engine.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1164305 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:10:32 +00:00
Gary D. Gregory f46c6726da Test [LANG-744] StringUtils throws java.security.AccessControlException on Google App Engine.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1164304 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:09:49 +00:00
Henri Yandell 2998309d72 Adding a System.err when a security manager stops JDK 1.5 from being able to access the Sun Normalizer class. LANG-744
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1163906 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 05:17:32 +00:00
Sebastian Bazley fafb1135a1 Clarify deprecation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1163586 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 11:41:10 +00:00
Henri Yandell 087067d581 Removing most of the ComparatorUtils code. Need to figure out how to get rid of the last attribute.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1162021 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 08:22:00 +00:00
Henri Yandell a41bf2aa2e Adding javadoc for the type
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1162020 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 08:19:53 +00:00
Henri Yandell 6cf48caa26 Deprecating chomp(String, String) per Verneri Åberg's report in LANG-748
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1161997 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 05:19:00 +00:00
Henri Yandell 2e30bec7af Rolling back r1161378. NullComparator and ReverseComparator need the NATURAL_COMPARATOR field and the ComparableComparator.INSTANCE field is not a straight replacement
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1161605 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 15:27:39 +00:00
Henri Yandell 7eb4f39699 Removing ComparatorUtils. I don't think min/max(Obj,Obj,Comparator) are the most useful methods, and I'm not sure we need the static factory methods to instantiate the comparators.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1161378 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 04:29:29 +00:00
Sebastian Bazley 41326bf526 LANG-746 NumberUtils does not handle upper-case hex: 0X and -0X
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160660 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 12:32:52 +00:00
Sebastian Bazley c98fbe27b2 Avoid boxing of both arguments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160647 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 12:17:26 +00:00
Henri Yandell 90e280bced Adding current 3.0.2 items
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160581 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 08:23:12 +00:00
Henri Yandell b948627d91 Adding documentation that the Mutable numbers don't work as might be expected with String.format. LANG-698
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160571 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 07:36:08 +00:00
Henri Yandell 7636080403 Adding an exception to catch AccessControlExceptions in Google App Engine as reported by Clément Denis in LANG-744
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160568 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 07:05:46 +00:00
Henri Yandell e234e7d341 Adding FreeBSD, NetBSD and OpenBSD per Oliver's suggestion in LANG-695
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160564 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 06:56:42 +00:00
Henri Yandell c7d0111a2a Filling out ReverseComparator testing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1160015 13f79535-47bb-0310-9956-ffa450edef68
2011-08-21 17:26:36 +00:00
Henri Yandell 07f1732b2f Adding a basic ComparableComparator test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159030 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:36:12 +00:00
Henri Yandell f4ebe14c5f Dropped @author notes, moved individuals to the pom.xml contributor list
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159028 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:27:57 +00:00
Henri Yandell 8e57642b79 Adding a basic FixedOrderComparatorTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159026 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:24:57 +00:00
Henri Yandell 4fd7625f4b Adding a basic ReverseComparatorTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159024 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:20:40 +00:00
Henri Yandell 0eaabc4315 Adding a basic NullComparatorTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159023 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:13:48 +00:00
Henri Yandell 4335b4067d Removing collections tests - far too complex a system for the comparators' needs. Will rewrite as standalone test classes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159018 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 03:59:16 +00:00
Gary D. Gregory 76416c0ad8 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158284 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:11:31 +00:00
Gary D. Gregory 866705e3c6 Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158282 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:09:15 +00:00
Gary D. Gregory 4c2f18af7f [LANG-736] CharUtils static final array CHAR_STRING is not needed to compute CHAR_STRING_ARRAY.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158279 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:06:45 +00:00
Gary D. Gregory 1493ab204f Port to JUnit 4.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158278 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 14:04:52 +00:00
Sebastian Bazley 11425c7892 Replace non-ASCII hyphen with ASCII version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1157551 13f79535-47bb-0310-9956-ffa450edef68
2011-08-14 15:35:16 +00:00
Henri Yandell 6f417859b7 Formatting the Maven xml block
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156027 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 05:11:15 +00:00
Henri Yandell f3ff37b4de More updates to the front page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156026 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:52:59 +00:00
Henri Yandell f55832f51f Adding 3.0.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156024 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:44:14 +00:00
Henri Yandell 9972bc15ea Setting release date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156022 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:42:10 +00:00
Henri Yandell 8b7f1e5c99 Missed 3.0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156021 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:40:48 +00:00
Henri Yandell 92cd620d4b Upgrading version in site.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156020 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:39:35 +00:00
Henri Yandell 2b0a81b899 Adding 2.x release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156018 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:04:22 +00:00
Henri Yandell 03bcf46acd Linking in release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156017 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:02:34 +00:00
Henri Yandell a644b32010 More release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156016 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 04:01:38 +00:00
Henri Yandell c600bccaeb Adding the 3.0.1 release notes as text. Managing a copy in HTML is a real pain in the arse, especially as it primarily duplicates changes.xml. Instead I'm going to build a dir with all the release notes we've had
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156015 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 03:58:11 +00:00
Henri Yandell 5716bf685b Improving the text to work with our having released more than one 3.x version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1156014 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 03:56:45 +00:00
Sebastian Bazley f59609bb4d eol-style
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1155421 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 16:13:53 +00:00
Henri Yandell 64003a07a7 Updating site to 3.0.1. Realizing that I'll have some fun keeping the compare/ package out of the site upon 3.0.1 release :)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154847 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:49:27 +00:00
Henri Yandell b0e216a208 Fixing package names and adding excludes to the pom.xml for the parts of the collections framework that followed over
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154844 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:26:12 +00:00
Henri Yandell 2093b8da08 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154842 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:20:03 +00:00
Henri Yandell f971e82651 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154841 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:59 +00:00
Henri Yandell 4d0f6ab3f0 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154840 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:56 +00:00
Henri Yandell 12c7493a52 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154839 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:54 +00:00
Henri Yandell c66005b91f Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154838 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:51 +00:00
Henri Yandell 359d7d225e Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154837 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:19:01 +00:00
Henri Yandell 0597723492 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154836 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:18:36 +00:00
Henri Yandell f32ee938f3 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154835 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:18:14 +00:00
Henri Yandell 9c96f2a222 Fixing package names so things compile. Removing Boolean and Transform usages in ComparatorUtils as those classes didn't come accross
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154833 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:15:51 +00:00
Henri Yandell 6f279ce78b Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154832 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:11:36 +00:00
Henri Yandell cebecbbca8 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154831 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:11:26 +00:00
Henri Yandell 2276b288b8 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154830 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:11:16 +00:00
Henri Yandell c405a2bac5 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154829 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:59 +00:00
Henri Yandell c409d49153 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154828 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:47 +00:00
Henri Yandell 8650ed30a0 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154827 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:33 +00:00
Henri Yandell 8fb580f1a8 Copying from Collections to Lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154826 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 05:10:00 +00:00
Henri Yandell c80a3d41d7 Generating a txt file as well as the xml for the changes report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154814 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 04:07:20 +00:00
Joerg Schaible ef346b48b2 Ignore assertions for IBM JDK 1.6.0 in ToStringBuilderTest.testReflectionHierarchyArrayList because the test makes assumptions on the internal representation of an ArrayList (LANG-727).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154530 13f79535-47bb-0310-9956-ffa450edef68
2011-08-06 15:43:07 +00:00
Matthew Jason Benson 31bd69942f junit4ify ToStringBuilderTest + some generics-related fixup
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154217 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 13:58:52 +00:00
Matthew Jason Benson 391375b08a missing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154216 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 13:57:16 +00:00
Henri Yandell 18c02cbd9b Adding a '.' to the end of every <action>. This fits the subsequent addition of 'Fixes' in the generated report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1154113 13f79535-47bb-0310-9956-ffa450edef68
2011-08-05 07:58:55 +00:00
Gary D. Gregory e6e215d960 [LANG-738] Use internal Java's Number caches instead creating new objects
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153491 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:55:53 +00:00
Gary D. Gregory f5026c122d Use internal Java's Number caches instead creating new objects:
- Use more efficient Integer cache: Use "Integer.valueOf(int)" instead of "new Integer(int)".
- Use more efficient Long cache: Use "Long.valueOf(int)" instead of "new Long(long)".
- Use more efficient Short cache: Use "Short.valueOf(int)" instead of "new Short(short)".

In Java version 1.6.0_24 (vendor: Sun Microsystems Inc.), Float and Double do not implement caches, but I've made the same changes for consistency and future proofing.

- Use "Double.valueOf(int)" instead of "new Double(double)".
- Use "Float.valueOf(int)" instead of "new Float(float)".

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153490 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:53:35 +00:00
Gary D. Gregory 16d92dc923 Use more efficient Short cache: Use "Short.valueOf(int)" instead of "new Short(short)"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153488 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:47:49 +00:00
Gary D. Gregory 4b1702489c Use more efficient Long cache: Use "Long.valueOf(int)" instead of "new Long(long)"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153487 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:44:51 +00:00
Gary D. Gregory ddeba76d0b Use more efficient Integer cache: Use "Integer.valueOf(int)" instead of "new Integer(int)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153484 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:39:42 +00:00
Gary D. Gregory 9d6f32538c Use more efficient Integer cache.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153479 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:28:39 +00:00
Gary D. Gregory 6869f0abad Generify.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153477 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 13:26:35 +00:00
Henri Yandell bd082cddc8 Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153350 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 05:29:21 +00:00
Henri Yandell 2d9e540fdf Adding Apache license header to placate RAT
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153349 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 05:29:13 +00:00
Henri Yandell 11ecc04c07 Added missing @since 3.0.1 tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153346 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 04:59:46 +00:00
Henri Yandell b2c23e4697 Rolling back r1153037 and r1153038 - the changes didn't help
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153343 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 04:49:45 +00:00
Joerg Schaible f761a82212 Missing method getRawMessage for ContextedException and ContextedRuntimeException (LANG-737).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153271 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 21:04:35 +00:00
Gary D. Gregory 2b5f7a79b0 Fix PMD issues: "These nested if statements could be combined"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153241 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 18:49:52 +00:00
Gary D. Gregory ad5b9b0149 [LANG-734] The CHAR_ARRAY cache in CharUtils duplicates the cache in java.lang.Character.
[LANG-735] Deprecate CharUtils.toCharacterObject(char) in favor of java.lang.Character.valueOf(char).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153229 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 18:04:51 +00:00
Gary D. Gregory 9c28c3538d Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153214 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 17:37:12 +00:00
Gary D. Gregory 6a14e228f5 Javadoc for generics.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153213 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 17:35:39 +00:00
Henri Yandell 2d4b3edff9 Escaping <T>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153058 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 07:39:30 +00:00
Henri Yandell 8bff241c54 Noting improved exception message
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153048 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 07:10:43 +00:00
Henri Yandell d43bde077e Updating changes.xml with all resolved items
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153047 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 07:04:13 +00:00
Henri Yandell b82ab99340 Applying Sven Ludwig's patch from LANG-626. This modifies the SerializationUtils.clone method to use the threadContextLoader if it is unable to find a class using the object's current classloader. This should (hopefully) help with Weblogic and Tomcat situations where Lang is outside the web-inf for some reason (likely user error with Tomcat, by design for Weblogic)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153046 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 06:57:04 +00:00
Henri Yandell 9908144874 Added comment on LANG-727
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153038 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 06:14:57 +00:00
Henri Yandell 656312f90a Rearranging the testReflectionHierarchyArrayList test per LANG-727; shouldn't make assumptions about ArrayList now
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153037 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 06:14:17 +00:00
Henri Yandell d94ef57853 Changing exception message per Sebb's comment iN LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1152021 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 22:21:38 +00:00
Henri Yandell a7fe1f5018 Improving error message when recursion fails TTL in replaceEachRepeatedly. LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151345 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 06:02:06 +00:00
Henri Yandell 64dd0a070b Fixing javadoc to use the right exception types. Related to LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151343 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 05:59:00 +00:00
Henri Yandell 85d6318351 Fixing javadoc. The replaceEachRepeatedly does in fact repeat. Related to LANG-686
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1151340 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 05:55:39 +00:00
Matthew Jason Benson 37b9565b26 require values parameter when generating bit vectors from enums, throwing NullPointerException if omitted; merge check for type eligibility; add E... generateBitVector() variant; alter generateBitVector(Class<E>, EnumSet<E>) to (Class<E>, Iterable<E>) by using |= << instead of + to accumulate values; process only specified values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1149320 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 19:11:47 +00:00
Matthew Jason Benson 42c7d34dff junit4ify EnumUtilsTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1149314 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 18:54:45 +00:00
Henri Yandell 4574329913 Adding Nelson Carpentier's patch adding an EnumSet to bit vector (and back again) to EnumUtils. LANG-730
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1149058 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 08:00:28 +00:00
Gary D. Gregory b1d97bc2fa Test that XML should be able to unescape >0x7f values with leading 0s.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148531 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 21:03:42 +00:00
Gary D. Gregory 2c3fa8366e Javadoc, comments, and message strings: Change "unicode" to "Unicode".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148520 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 20:53:23 +00:00
Henri Yandell e9a72d4552 Adding a link to the 2->3 clirr report and a note on 2 and 3 being in different packages to the front page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148233 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:40:02 +00:00
Henri Yandell cd7b32ad09 Adding 3.0 release notes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148227 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:31:05 +00:00
Henri Yandell eac36c633d Fixing the 3.0 release date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148225 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:30:03 +00:00
Henri Yandell 50d7884787 Added note on Lang 3.0 being useable beside earlier versions; and removing the lang3.exception header
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148224 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 08:28:56 +00:00
Henri Yandell de3285f462 Adding a unit test for LANG-729
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148172 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:17:03 +00:00
Henri Yandell 5997452fe7 Fixing test to use the right escaper; numeric entities and not unicode. LANG-728
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148167 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:10:03 +00:00
Henri Yandell 1a22532991 Fixing documentation; it was pointing to UnicodeEscaper and not NumericEntityEscaper. Also updated the API to not be Range based as we dropped that.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148166 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:09:46 +00:00
Henri Yandell 2556149b64 Fixing javadoc - it was pointing to the wrong translator
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148164 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:08:14 +00:00
Henri Yandell 42dd1e1902 Dropping Ignore import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148163 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 05:04:00 +00:00
Henri Yandell 9fa142b118 Updating unit test for LANG-728 to work with Lang 3.0 way of using escapeXml with > 0x7f characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148162 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 04:58:03 +00:00
Henri Yandell 96156936d8 Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148160 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 04:54:58 +00:00
Henri Yandell c40ebb8edf Setting 3.0 release date
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148140 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 03:41:22 +00:00
Matthew Jason Benson 2e072c1da8 [LANG-726] Add a method e.g. Range<T> Range<T>.intersectionWith(Range<T>)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147537 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 06:10:37 +00:00
Matthew Jason Benson 6c65862a68 junit4ify RangeTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147536 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 06:01:17 +00:00
Matthew Jason Benson fe235bbb83 junit expected exceptions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147531 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:33:33 +00:00
Matthew Jason Benson 2b0b97178b junit4ify NumberUtilstest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147528 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:18:14 +00:00
Matthew Jason Benson b46f9adc0b revert c1147524
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147526 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:16:30 +00:00
Matthew Jason Benson 4660e5159b [LANG-724] Convert Validate.noNullElements(Object[]) to varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147524 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 05:02:39 +00:00
Henri Yandell 30bae8f0ff Updating the clirr report
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147523 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 04:48:14 +00:00
Matthew Jason Benson 81b5435a3a [LANG-723] Add mode and median Comparable... methods to ObjectUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147522 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 04:22:51 +00:00
Matthew Jason Benson aee1b76fb6 junit4ify ObjectUtilsTest
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147521 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 03:46:44 +00:00
Matthew Jason Benson afa12a7960 ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147520 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 03:43:51 +00:00
Matthew Jason Benson b81dfde37c commentary
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147515 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 02:56:15 +00:00
Matthew Jason Benson 8ffdb2df2e ws
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147513 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:44:50 +00:00
Matthew Jason Benson b4a00f93bf add @since tags for and/or methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147512 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:43:57 +00:00
Matthew Jason Benson c808034989 [LANG-722] Add BooleanUtils.and/or varargs methods to complement xor
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147511 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 01:39:14 +00:00