Commit Graph

2276 Commits

Author SHA1 Message Date
Sebastian Bazley a7bbdfb54b Remove unnecessary main() and suite() methods from tests
Also remove setUp() and tearDown() methods with no useful code.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892118 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 03:39:13 +00:00
Sebastian Bazley 2f8f67ab29 LANG-567 - ArrayUtils.addAll(T[] array1, T... array2) does not handle mixed types very well
Also remove unnecessary main() and suite() from test class

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892114 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 02:50:21 +00:00
Henri Yandell eb2b517b46 Improving doc to indicate null->false for elementBefore(T) and elementAfter(T). LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891635 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 11:13:39 +00:00
Henri Yandell a926c717c0 Making ComparableComparator Serializable. This doesn't stop people putting non-Serializable comparators in a Range, but it does mean the default case can be serialized. LANG-551
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891627 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 11:02:53 +00:00
Henri Yandell 6e4a19b9e5 Change of groupId means clirr needs to be pointed to the old groupId
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891623 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 10:51:32 +00:00
Henri Yandell 1b85d8ba9e Applying 'fix' for LANG-530. DateUtils.parseDate now protects the common use case of FastDateFormat ZZ output, namely ZZ on the end of the pattern, from being passed to SimpleDateFormat as is. Use of ZZ elsewhere in the pattern isn't protected and will want to consider emulating the String changes made in this patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891572 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 07:21:25 +00:00
Henri Yandell 825481f019 Fixing LANG-538 - you need to call getTime() on a calendar sometimes to get it in the right state, otherwise the timezone gets out of whack.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891542 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 06:04:28 +00:00
Henri Yandell 91ac16e0b4 Applying Niall's patch from LANG-569 adding indexOfIgnoreCase() and lastIndexOfIgnoreCase() methods to StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891528 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 03:35:39 +00:00
Sebastian Bazley 84522bed5d Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891316 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 17:04:47 +00:00
Sebastian Bazley 8beafc0da1 Fix Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891268 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 14:54:48 +00:00
Henri Yandell 5aa9532c4e Updating copyright year - just in time :)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891147 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 08:00:57 +00:00
Henri Yandell 425dcadca5 Applying my patch from LANG-469 - adding a lastOrdinalIndexOf method to complement the existing ordinalIndexOf method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@891142 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 07:32:30 +00:00
Sebastian Bazley aa5d2162e5 Fix generic map type
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890413 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 17:54:26 +00:00
Sebastian Bazley db9b110a7e Fix up some raw types.
May need to adjust some types if lookup() is made generic (see LANG-564)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890360 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 15:06:14 +00:00
Sebastian Bazley 8f80cedd8c Make autoboxing explicit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890337 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 14:11:31 +00:00
Sebastian Bazley a05e28d6e2 Changing appendAll and appendWithSeparators methods to take Iterable instead of Collection. LANG-548 - part two, change Javadoc references
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890336 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 14:10:55 +00:00
Sebastian Bazley 62a047cc69 Fix up raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890329 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 13:54:27 +00:00
Sebastian Bazley 7a8356e0fb Fix up raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890328 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 13:54:06 +00:00
Sebastian Bazley 128b94d1d9 Fix Eclipse warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890327 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 13:53:17 +00:00
Henri Yandell 56550bf277 Applying fix for LANG-552. StringUtils.replaceEach(String, String[], String[]) no longer NPEs when null appears in the last String[]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890212 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 07:51:05 +00:00
Henri Yandell dafb8e85dc Adding stripAccents method to StringUtils. It requires JDK 1.6 (and accesses it via reflection until Lang becomes 1.6 dependent). LANG-285
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890205 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 07:31:42 +00:00
Henri Yandell 0c6c23076f Adding a reset() method to EqualsBuilder. LANG-466
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@890196 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 06:40:42 +00:00
Henri Yandell 2851806365 Changing appendAll and appendWithSeparators methods to take Iterable instead of Collection. LANG-548
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889236 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 12:28:50 +00:00
Henri Yandell 3745c67bd2 Making noNullElements methods take Iterable types rather than Collection types. LANG-548
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889235 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 12:28:15 +00:00
Henri Yandell fdbdd0174a lang -> lang3 (LANG-563)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889228 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 12:09:00 +00:00
Henri Yandell 14e9231cb0 Fixing package name. LANG-563
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889227 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 12:08:23 +00:00
Henri Yandell 4c560e85a2 Removing package name from comment - unnecessary. LANG-563
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889225 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 12:06:34 +00:00
Henri Yandell cf429f5324 Moving back from lang3 to lang for the exception stack traces in these test documentation comments as they indicate historical cases. LANG-563
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889222 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 12:04:56 +00:00
Henri Yandell dc0509f7eb Fixing @links to point to new lang3 package. LANG-563
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889219 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 12:02:50 +00:00
Henri Yandell c6e8f706dc Renaming class package names and unit test data to use org.apache.commons.lang3. LANG-563
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889215 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 11:56:38 +00:00
Henri Yandell debc02c6d9 Changing directory name from lang to lang3. Build will fail (probably) until Java code is changed in subsequent commit. LANG-563
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889202 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 11:33:51 +00:00
Henri Yandell 375d7d0954 Changing groupId (LANG-562)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@889198 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 11:31:27 +00:00
Niall Pemberton ea3f8ad774 LANG-508 Fix tests broken by r885195
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@885913 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 20:27:40 +00:00
Paul C. Benedict Jr e51cf4380e LANG-508: Allow exception message parameters as varargs, employ String#format to format exception message, full documentation update
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@885195 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 06:30:23 +00:00
Henri Yandell 92269ffa64 Updating versions of reports, fixing bugs with Cobertura and JavaNCSS. Checkstyle still not understanding generics, but the 2.4 report errors so needs more investigation before trying that.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884501 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:56:01 +00:00
Henri Yandell e346542745 Removing broken @see
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884498 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:52:59 +00:00
Henri Yandell 4bf376b34b Removing @author on method (not legal javadoc) and adding an @see to the jira issue
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884494 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:42:27 +00:00
Henri Yandell d21300717e Fixing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884493 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:40:13 +00:00
Henri Yandell df925dc314 Commenting out javancss report as it errors on our source, adding taglib report, and making findbugs default as I find I need 512m now anyway to build the site
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884492 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:31:16 +00:00
Henri Yandell b1ac38cb1b Clone the passed in array
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884490 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:29:33 +00:00
Henri Yandell 0abdedcd16 Removing imports from same package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884489 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:27:34 +00:00
Henri Yandell ad953dc976 Fixing javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884487 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:23:16 +00:00
Henri Yandell 823eb10825 Moving 'todo' to 'TODO' to match general style
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@884486 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 10:17:31 +00:00
Oliver Heger 63e4b09f23 [LANG-501] There was a problem with inconsistent line endings in the last commit, so the svn:eol-style property was not set. Fixing now.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@883101 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 17:03:10 +00:00
Oliver Heger 21df5c4fce [LANG-501] Added CallableBackgroundInitializer class with unit tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@883100 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 16:57:39 +00:00
Sebastian Bazley 37239c934b Generic fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882971 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 19:05:52 +00:00
Sebastian Bazley 030babab20 Rename private variable to avoid shadowing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882970 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 19:05:38 +00:00
Sebastian Bazley 765963f423 Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882969 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:58:57 +00:00
Sebastian Bazley a12632228f Suppress Eclipse warnings for deliberate behaviour
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882968 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:58:33 +00:00
Sebastian Bazley 9a76dcf3c9 Suppress Eclipse warnings for deliberate name shadowing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882964 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:48:48 +00:00