3631 Commits

Author SHA1 Message Date
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
a1f963e6f7 Recast security manager test as an integration test (commented out.)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1165644 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 12:46:17 +00:00
Gary D. Gregory
7dc2291733 Running lang under a security manager and LANG-744.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1165437 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 22:20:44 +00:00
Gary D. Gregory
c014f1c13c Use 2 spaces per indent instead of 4 for formatting and remove trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1165436 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 22:15:18 +00:00
Gary D. Gregory
6edbaf2fc5 I meant to say:
Updated maven-changes-plugin 2.4 to 2.6
maven-checkstyle-plugin 2.6 to 2.7.
findbugs-maven-plugin 2.3.1 to 2.3.2
cobertura-maven-plugin 2.4 to 2.5.1
clirr-maven-plugin 2.2.2 to 2.3
maven-pmd-plugin 2.3 to 2.5


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1164315 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:38:40 +00:00
Gary D. Gregory
94464da05b Update Maven plugins:
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1164314 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:37:19 +00:00
Gary D. Gregory
ec502d9839 Update Maven plugins:
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1164313 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:36:44 +00:00
Gary D. Gregory
a6323c354d 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@1164306 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 00:11:36 +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
Henri Yandell
ff66dbcf6e Fixing the OSGi SymbolicName by updating the commons.componentid. Issue identified by Brandon Harper in LANG-749
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1163904 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 05:10:35 +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
678146cb18 Removing excludes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1159025 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 04:24:44 +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
Henri Yandell
2c499868db Fixing the component-name (aka artifactId in Maven language). LANG-741
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1158501 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 04:11:37 +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