Henri Yandell
53d9ad9ffb
'stolen' is a cute word, but given it means taking without permission it's incorrect here
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@924407 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 18:32:36 +00:00
Henri Yandell
dec906e158
Fixing javadoc per LANG-600. Examples already in tests.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@924372 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:17:45 +00:00
Sebastian Bazley
311dc94070
Tab police (and trailing spaces)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923551 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 02:34:00 +00:00
Gary D. Gregory
2fdfb4a387
Change the APIs from char to int character input to match underlying JRE API called. There is no need to narrow the input type argument to the JRE, in fact this causes us to loose support for Unicode supplementary characters. The APIs changed are:
...
- indexOf(String, char) -> indexOf(String, int)
- indexOf(String, char, int) -> indexOf(String, int, int)
- lastIndexOf(String, char) -> lastIndexOf(String, int)
- lastIndexOf(String, char, int) -> lastIndexOf(String, int, int)
- contains(String, char) -> contains(String, int)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923527 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 00:46:02 +00:00
Gary D. Gregory
bc52782cd8
https://issues.apache.org/jira/browse/LANG-607 StringUtils methods do not handle Unicode 2.0+ supplementary characters correctly.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923525 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 00:37:07 +00:00
Gary D. Gregory
6505531d5c
Fix tabs to spaces, thank you Jörg.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923386 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 18:47:37 +00:00
Joerg Schaible
022d08cfd3
Fix DefaultExceptionContext.addValue that overwrites information in a recursive situation (LANG-605). Allow explicit replacement of a label with the new replaceValue methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923341 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 17:11:55 +00:00
Niall Pemberton
4d7a616cca
Update components to point to the new download pages
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923339 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 17:04:53 +00:00
Gary D. Gregory
646c27b226
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922912 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 17:45:49 +00:00
Gary D. Gregory
a9b61fc427
Back out a CSU experiment.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922911 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 17:44:23 +00:00
Gary D. Gregory
7780fa0ad5
Oops, experiment in progress. Back out last change.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922910 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 17:42:08 +00:00
Gary D. Gregory
5fe2d862fc
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922909 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 17:37:07 +00:00
Gary D. Gregory
5b7817cc3f
Fix defaultIsEmpty typing.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922904 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 17:33:23 +00:00
Gary D. Gregory
1ced894df7
https://issues.apache.org/jira/browse/LANG-607 StringUtils.containsAny methods incorrectly matches Unicode 2.0+ supplementary characters.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922703 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 00:54:03 +00:00
Gary D. Gregory
8a8859cb88
Makes sure "..." is the same all over this method.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922448 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 22:59:21 +00:00
Gary D. Gregory
655050f6fd
Use INDEX_NOT_FOUND instead of magic number.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@920546 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:22:31 +00:00
Joerg Schaible
7f23ec3d90
ContextedRuntimeException must extend RuntimeException (LANG-602).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@920544 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:20:12 +00:00
Gary D. Gregory
7cfa8a9328
Change StringUtils arguments from String to CharSequence.
...
Details: Working with (trunk) StringUtils (SU) I see the following emerge:
- In SVN already and continuing: Change StringUtils arguments from String to CharSequence (CS).
- This leads to replacing calls to String.substring(int[,int]) with calls to CharSequence.subSequence(int)
- This leads to creating a CharSequenceUtils class (in SVN now, more on this new class below) and CharSequenceUtils.subSequence(CharSequence,int) to avoid changing "str.substring(start)" over and over to "str.subSequence(start, str.length())". For examples, see new versions of capitalize and uncapitalize.
- We end up using a toString() on CharSequence to return a String from StringUtil when working with a CharSequence.
So we have StringUtils using CharSequence inputs as much as possible instead of String, which is nice.
The CharSequence method subSequence returns a CharSequence; though the Javadoc states "Returns a new CharSequence that is a subsequence of this sequence.", this does not guaranteed the return value to be the same kind of CharSequence as the receiver). Since we are after all in a class called StringUtil, calling toString() is a must.
I propose that we create when possible the methods that are now StringUtils CharSequence methods into CharSequenceUtils and let StringUtil call CharSequenceUtils and then do its toString() and other String specific logic. Later we could have other CharSequence type of utils (for CharBuffer, StringBuiler, StringBuffer, etc) that use the 'primitives' from CharSequenceUtils.
This means that for methods that are based solely on methods that are now in CharSequence, these can be moved to CharSequenceUtils without effort (all is* methods only call CharSequence#length() and charAt() for example and are now typed as CS, still in SU).
We can leave @deprecateds method in SU as a nicety to avoid too much porting pain: First change the package to lang3 then you can 'optimize' by changing call sites from SU to CSU.
As a start, I put in SVN a CharSequenceUtils (CSU) implementation for length() and subSequence().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@920543 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:15:08 +00:00
Gary D. Gregory
9c0379850b
Convert defaultIfEmpty from String to CharSequence.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@920187 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 03:41:49 +00:00
Niall Pemberton
e1077c023d
Re-generate the download pages using the new commons-build-plugin .12 (via commons-parent version 13)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@920156 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 00:11:50 +00:00
Gary D. Gregory
9abfbaecab
More tests for length()
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@919872 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 22:54:34 +00:00
Gary D. Gregory
543f2d36e4
Change length(String) to length(CharSequence)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@919859 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 22:09:37 +00:00
Henri Yandell
f91a7c97d3
Per David M. Sledge's patch to LANG-599, added support to ClassUtils.getClass(String) to support inner classes being separated by '.' as well as the official '$'
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@919340 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 09:05:47 +00:00
Henri Yandell
51df5ea90c
Closing the paragraph tag on the ThreadSafe notation. LANG-370
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918868 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 06:22:16 +00:00
Sebastian Bazley
18e7603cac
Fix threadsafety comments
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918836 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 03:12:36 +00:00
Sebastian Bazley
26cdd7ba56
Iterator is not threadsafe
...
Make private field final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918829 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 02:57:03 +00:00
Henri Yandell
c84c4669aa
Some more #ThreadSafe# tags per LANG-370
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918373 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 09:22:46 +00:00
Henri Yandell
bb0d189f1b
Adding ThreadSafe notes to some obviously threadsafe classes (LANG-370)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918369 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 09:16:38 +00:00
Henri Yandell
36a29645fb
Fixing javadoc @see tags
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918368 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 09:09:14 +00:00
Henri Yandell
45488c9826
Adding info on the LANG-559 commits
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918367 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 08:58:10 +00:00
Henri Yandell
4f31ae757c
Applying Valentin Rocher's patch from LANG-559, adding isInstanceOf and isAssignableFrom methods.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918366 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 08:56:22 +00:00
Sebastian Bazley
6699e44845
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918240 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 23:01:54 +00:00
Sebastian Bazley
52baa809b8
Unused import; missing @Override markers
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918239 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 23:01:40 +00:00
Sebastian Bazley
8e4147b75c
Fix raw types
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918238 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 22:55:22 +00:00
Sebastian Bazley
11272085d7
Tab police
...
Also removed extraneous trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918237 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 22:52:09 +00:00
Henri Yandell
b72207ccf4
Updating package.html files (LANG-490).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@917897 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 06:58:04 +00:00
Paul C. Benedict Jr
7721acd0ef
LANG-594: Add truncatedEquals and truncatedCompareTo
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916906 13f79535-47bb-0310-9956-ffa450edef68
2010-02-27 03:29:43 +00:00
Niall Pemberton
e49c05bdce
2.5 changes report should show LANG-348 instead of LANG-438
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916449 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 20:51:17 +00:00
Henri Yandell
90f45b447a
Adding toString test. LANG-588
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916099 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 03:11:48 +00:00
Henri Yandell
88d44051a1
Applying Matt's patch with my modifications from LANG-588. Adds a Pair class to Lang.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916098 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 03:04:19 +00:00
Henri Yandell
e0ddfa767c
Adding BasicThreadFactory class. Same as Oliver's original patch in LANG-582, with an @since 3.0 added
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916095 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 02:53:04 +00:00
Niall Pemberton
cf74865561
Update site for 2.5 release
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916082 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 01:29:36 +00:00
Niall Pemberton
43fca0d749
Port @since tags from 2.x branch
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916081 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 01:28:13 +00:00
Niall Pemberton
8c16b39c3d
Minor javadoc changes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@915111 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 23:25:21 +00:00
Niall Pemberton
1fdcb829bb
Minor code simplification
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@915110 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 23:22:18 +00:00
Niall Pemberton
3afb07ec81
Remove Maven1 XML documents
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@911992 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 21:31:32 +00:00
Niall Pemberton
6aca4b61a0
Checkstyle changes only
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@911987 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 21:27:31 +00:00
Joerg Schaible
7b6ab58a01
Add methods for Cloneables to ObjectUtils (LANG-576).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@908745 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 23:22:05 +00:00
Sebastian Bazley
7a304cfc7b
Javadoc clarification
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907630 13f79535-47bb-0310-9956-ffa450edef68
2010-02-08 12:22:32 +00:00
Henri Yandell
1b5c1b4371
Adding extra javadoc to point out that usually indexOf on an empty String == -1. LANG-589
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907561 13f79535-47bb-0310-9956-ffa450edef68
2010-02-08 06:57:34 +00:00
Henri Yandell
10cc16fe82
Moving the indexOf(String, String, int) method above the ordinalIndexOf methods to put it with its overloaded peers. LANG-590
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907385 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 07:10:14 +00:00
Henri Yandell
ab759f7d06
Removing JDK 1.2/1.3 protecting bugfix. We're now on JDK 1.5. LANG-590
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907384 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 07:08:58 +00:00
Henri Yandell
779828c9a2
Applying Valentin Rocher's patch to LANG-579, adding new regexp and in range methods to Validate
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907382 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 05:40:10 +00:00
Matthew Jason Benson
76660f4a98
reread ThreadLocal value in synchronized block to avoid any timing issues
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907375 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 03:42:08 +00:00
Matthew Jason Benson
1f35e7c99b
[LANG-586] Clear ThreadLocal for HashCodeBuilder as well
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907373 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 03:14:09 +00:00
Matthew Jason Benson
2fb9e71da6
promote uniformity between branches by using registry accessor
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907126 13f79535-47bb-0310-9956-ffa450edef68
2010-02-05 23:11:43 +00:00
Matthew Jason Benson
8f675dd3cb
[LANG-587] avoid NPE in ClassUtils.toClass(Object[])
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907102 13f79535-47bb-0310-9956-ffa450edef68
2010-02-05 21:31:38 +00:00
Matthew Jason Benson
5d5a31a827
clean up toClass(Object[]) test
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907099 13f79535-47bb-0310-9956-ffa450edef68
2010-02-05 21:22:29 +00:00
Matthew Jason Benson
0d828cd075
unused imports + uh, why would you synchronize access to a ThreadLocal? :P
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@906682 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 22:10:24 +00:00
Matthew Jason Benson
a2bb711aee
[LANG-586] part 2: refactor ToStringStyle and ToStringBuilderTest to verify that we are unsetting the registry when no longer needed
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@906676 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 21:57:58 +00:00
Matthew Jason Benson
5c3ec55e15
[LANG-586] clear ThreadLocal recursion registry (compatibly with existing tests, first pass)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@906673 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 21:46:22 +00:00
Niall Pemberton
c98d0840bc
LANG-454 implement Iterable<Character> and some javadoc changes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@906028 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 12:22:27 +00:00
Sebastian Bazley
63ad5b063e
LANG-585. Don't suggest catching Throwable, catch Exception instead.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@906015 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 11:40:06 +00:00
Henri Yandell
6b4cb16608
Adding nullToEmpty methods to ArrayUtils per LANG-534 and Levon Karayan's patch.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905925 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 07:53:47 +00:00
Henri Yandell
6c53b134b6
Fixing LANG-585. Don't catch Throwable, catch Exception instead.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905922 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 07:38:17 +00:00
Henri Yandell
23f5080950
Adding Vincent Ricard's patch to CharRange.java providing an iterator that lets you walk the chars in the range. LANG-454
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905919 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 07:31:10 +00:00
Henri Yandell
643302af8c
Applying Chandrashekar M's patch to LANG-583, adding isNotEmpty(array) methods to ArrayUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905917 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 07:20:40 +00:00
Niall Pemberton
23f3b90843
Reorganize site to standard m2 layout (now there is no longer an m1 build)
...
- move/rename xdocs directory to site/xdoc
- remove xdocs/images and xdocs/style directories
- move xdocs/changes.xml to site/changes/changes.xml
- correct changes.xml location in pom.xml
- remove xdocs directory from assembly/src.xml
- remove redundant conf directory
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905854 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 00:55:08 +00:00
Matthew Jason Benson
9dbe765600
generics
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905803 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 21:23:25 +00:00
Matthew Jason Benson
b92a2b5b0c
remove pre Java 5 workaround
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905786 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 20:39:36 +00:00
Matthew Jason Benson
240b7a92f6
default autoboxing for Class[] depending on RT Java version + more tests
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905766 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 20:07:27 +00:00
Sebastian Bazley
485dd97b18
Correct comment and test name: LANG-520 => LANG-530
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905726 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 17:42:15 +00:00
Matthew Jason Benson
b9a702bb49
default autoboxing depending on RT Java version
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905690 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 16:22:46 +00:00
Niall Pemberton
6a613ffa16
Remove my author tags
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905268 13f79535-47bb-0310-9956-ffa450edef68
2010-02-01 12:01:04 +00:00
Niall Pemberton
381cb097a8
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@905267 13f79535-47bb-0310-9956-ffa450edef68
2010-02-01 12:00:11 +00:00
Henri Yandell
1c5b51d6a6
Removed comment on being able to add cause methods. This was removed from the API as noted in LANG-584
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@904562 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 17:12:02 +00:00
Oliver Heger
8ea4582e2c
Fixed a test case that does not work on non-English locales.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@903421 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 21:19:07 +00:00
Sebastian Bazley
f624a86dd1
Explicit boxing
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902960 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:47:41 +00:00
Sebastian Bazley
a28d94ea5d
Explicit boxing
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902958 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:44:41 +00:00
Sebastian Bazley
c92f2bcf4c
Simplify code (eliminate conditional check) and avoid NPE warning
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902955 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:40:38 +00:00
Sebastian Bazley
a6c13a17c0
Javadoc correction
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902948 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:32:33 +00:00
Sebastian Bazley
d0b2568ee1
Fix raw types
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902944 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 19:32:08 +00:00
Niall Pemberton
99d54a9167
Checkstyle
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902054 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 10:57:25 +00:00
Niall Pemberton
e5618bc494
Javadoc updates only
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902053 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 10:52:07 +00:00
Niall Pemberton
91e2b603a6
Javadoc correction: truncation -> abbreviation
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@901817 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 18:27:09 +00:00
Niall Pemberton
9143987fa0
LANG-405 rename method from truncateMiddle() to abbreviateMiddle()
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@901815 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 18:22:15 +00:00
Niall Pemberton
d918999ddd
Replace tab characters with spaces
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@901804 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 17:59:51 +00:00
Henri Yandell
4240de53b3
Applying Srihari Reddy's patch from LANG-405, based on Dave Meikle's original patch. This adds a truncateMiddle method to StringUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@901595 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 08:38:12 +00:00
Henri Yandell
6913747d7d
Modifying toString method to cache in a thread-safe way per LANG-481
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@900015 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 19:50:33 +00:00
Sebastian Bazley
01067903aa
LANG-571 ArrayUtils.add(T[] array[, offset], T element) can create unexpected ClassCastException
...
Remove tests for generation of Object arrays when both objects are null
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899940 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 13:05:07 +00:00
Sebastian Bazley
13bdd203ce
Unused imports
...
Suppress deprecation warnings for tests of deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899938 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 13:00:07 +00:00
Sebastian Bazley
78792f3873
Unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899936 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 12:59:21 +00:00
Sebastian Bazley
b777356fa3
LANG-564 Improve StrLookup API documentation
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899933 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 12:53:54 +00:00
Sebastian Bazley
54c0f6ba9e
LANG-571 ArrayUtils.add(T[] array[, offset], T element) can create unexpected ClassCastException
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899929 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 12:39:20 +00:00
Henri Yandell
a5dc7f1e68
Adding hashCode caching in line with LANG-481
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899897 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 08:04:40 +00:00
Henri Yandell
8860c37b9d
Adding String lazy caching
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899895 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 07:58:11 +00:00
Henri Yandell
5be7671ea1
Adding javadoc note on immutable
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899893 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 07:48:16 +00:00
Sebastian Bazley
1da401f263
FIx Javadoc error
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899264 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 16:08:20 +00:00
Sebastian Bazley
ab20f86381
Fix paste typos
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899260 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 16:03:56 +00:00
Sebastian Bazley
b88699d65f
Another case-insensitive test
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899245 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:40:03 +00:00
Sebastian Bazley
491a1d6e88
LANG-581 - Javadoc bug in org.apache.commons.lang.StringUtils.removeEndIgnoreCase()
...
Add some case-insensitive examples
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899242 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:37:42 +00:00
Sebastian Bazley
a7b7e11461
Fix JUnit message to agree with test
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899239 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:31:13 +00:00
Sebastian Bazley
9a5da72bbf
LANG-581 - Javadoc bug in org.apache.commons.lang.StringUtils.removeEndIgnoreCase()
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899231 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 15:12:47 +00:00
Henri Yandell
86e893cc6d
Removing unnecessary <p> and Class variable
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897533 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 20:23:13 +00:00
Henri Yandell
5494a87bbb
Replacing the creation of a List in the core of each Builder class to test contains on the excludeFields with a call to ArrayUtils.contains. Reported by Anthony Whitford in LANG-575
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897421 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 11:44:06 +00:00
Henri Yandell
8d518b7786
Performance improvement per Anthony Whitford in LANG-574. Check for isArray to short-circuit the 9 instanceof checks. Improves both non-arrays and Object[] in tests
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897419 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 11:20:49 +00:00
Henri Yandell
72e4ab4b00
Synchronizing the COMMON Map so that getInstance doesn't miss a put from a subclass in another thread. LANG-494
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897408 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 10:06:42 +00:00
Henri Yandell
2493294550
Removing unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897406 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 10:02:59 +00:00
Henri Yandell
069d15e863
Removing unused WordUtils import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@897404 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 10:02:25 +00:00
Henri Yandell
18b3e505cf
Renaming media for the simple reason that two directories pisses off my tab completion :)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895915 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 06:11:37 +00:00
Oliver Heger
ee00c7a6f7
[LANG-560] Added TimedSemaphore class to concurrent package.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895466 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 19:04:08 +00:00
Paul C. Benedict Jr
76e14e483c
Push down WordUtils to "text" sub-package
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895335 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 07:13:31 +00:00
Paul C. Benedict Jr
08d51233f9
LANG-559: Added validState()
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895334 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 06:39:04 +00:00
Paul C. Benedict Jr
8104e916b4
Move test source into src/test/java
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895324 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 02:14:46 +00:00
Paul C. Benedict Jr
fc5c081e22
Move main source to src/main/java
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895322 13f79535-47bb-0310-9956-ffa450edef68
2010-01-03 02:11:26 +00:00
Henri Yandell
1fe031e6ca
Added deprecation for 4.0 notices. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895132 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 06:13:25 +00:00
Henri Yandell
d7a5c76170
Removed the support for exceptions with a field named 'detail'. It's been there since the beginning, but does not seem like a very important use case. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895131 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 06:07:11 +00:00
Henri Yandell
99b21a45ef
Removed unnecessary private toArray method. It was only invoked from one location. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895130 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 06:02:33 +00:00
Henri Yandell
e539bde396
Removed the ability to modify the static store of cause method names. If that feature is wanted, it's easy for the user to pass in their own list, or use the newly added getDefaultCauseMethodNames and modify that before calling. This removes the need for synchronization code. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895129 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:58:57 +00:00
Henri Yandell
e87ee0a705
Removing now unnecessary static initializer block. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895128 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:47:45 +00:00
Henri Yandell
e6e7f16e57
Removing setCause method. JDK 1.4 provided an initCause method and this method was to support both pre and post JDK 1.4 use cases. I don't see much of a reason to keep supporting Exceptions that have setCause as well as the inherited initCause. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895126 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:44:35 +00:00
Henri Yandell
00a4628d4e
Removing unused NestableRuntimeException legacy class. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895123 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:24:18 +00:00
Henri Yandell
228527bd83
Removing the selfCause tests. This is not a legal state for JDK Throwable cause properties, and I'm going to drop the support for people creating methods named 'setCause'. I can't find a lot of examples of this method naming in search engines. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895122 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 05:15:05 +00:00
Henri Yandell
64f0e8ecb0
Removing SQLException usage per LANG-539. This leads to removing getCauseUsingWellKnownTypes and dropping the optimization step for SQLException and InvocationTargetException; plus a simplification of the code in getCause(String,String[]) for LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895118 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 04:57:10 +00:00
Henri Yandell
ebfb96b0a9
Removing isThrowableNested, isNestedThrowable and getFullStackTrace as they were all types of no-op once you got to JDK 1.4. LANG-491
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895097 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 00:06:06 +00:00
Henri Yandell
1a433d2ec7
Adding parseDateStrictly method per LANG-486
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895055 13f79535-47bb-0310-9956-ffa450edef68
2010-01-01 19:01:18 +00:00
Henri Yandell
edc4514e15
Removing commented out code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893703 13f79535-47bb-0310-9956-ffa450edef68
2009-12-24 07:13:17 +00:00
Joerg Schaible
bcfc180f37
Add ArrayUtils.toArray (LANG-537).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893547 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 15:27:38 +00:00
Henri Yandell
26bc3fe010
isNumber(String) and createNumber(String) both modified to support "2.". LANG-521
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893088 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:52:42 +00:00
Henri Yandell
506bd018b3
Making class final, switching getMin/Max usage to this.min/max usage. LANG-551
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@893083 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:23:27 +00:00
Sebastian Bazley
5739bba3eb
LANG-568 - @SuppressWarnings("unchecked") is used too generally
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892343 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 18:44:24 +00:00
Sebastian Bazley
352a4ef2a3
Propagate original exception (LANG-567); update docs
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892326 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 18:02:11 +00:00
Henri Yandell
e5ccf09656
Switching from getTime() to getTimeInMillis() per Sebb's report that it still fixes LANG-538 and is going to be lighter weight
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892161 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 07:21:10 +00:00
Sebastian Bazley
8fdfbff87c
LANG-568 - @SuppressWarnings("unchecked") is used too generally
...
Partial fix - some warnings remain to be addressed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892136 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:04:11 +00:00
Sebastian Bazley
ed3d84438b
LANG-568 - @SuppressWarnings("unchecked") is used too generally
...
Partial fix - some warnings remain to be addressed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892135 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:03:42 +00:00
Sebastian Bazley
fd7450f301
Check remove on non-Object array.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892132 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 04:59:25 +00:00
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
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
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
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
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
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
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
Sebastian Bazley
38ac11d0b7
Add some basic Comparator tests
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882960 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:30:09 +00:00
Sebastian Bazley
229f41046f
Fix most Eclipse warnings
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882950 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:11:07 +00:00
Sebastian Bazley
55559050cf
Fix generics
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882949 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:07:15 +00:00
Henri Yandell
d45e05d584
Adding a char Range test
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882855 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 08:08:52 +00:00
Henri Yandell
5adce14980
Switched to static builder methods, allowing two of the constructors to restrict T to Comparables, and removed javadoc that discussed subclasses optimising methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882854 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 08:05:55 +00:00
Sebastian Bazley
5839d3e011
Javadoc fixes; add missing @Overrides
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882197 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 16:40:21 +00:00
Sebastian Bazley
c4e87426ff
Unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@882193 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 16:29:01 +00:00
Henri Yandell
fef34b82eb
Implementing Serializable - part of LANG-551
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881689 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 07:11:41 +00:00
Henri Yandell
8550f4da08
Removing ArrayUtils.hashCode per LANG-492; it is now available as java.util.Arrays.hashCode
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881685 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 06:43:23 +00:00
Paul C. Benedict Jr
87c4b35e52
LANG-555: Add IS_OS_WINDOWS_7 constant
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881672 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 05:58:06 +00:00
Paul C. Benedict Jr
0698ab208a
LANG-554: Add 1.7 check
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881671 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 05:52:01 +00:00
Stephen Colebourne
34b9c73a6d
Fix to handle null input array, and remove check for NULL
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881209 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:30:41 +00:00
Stephen Colebourne
ac719ec4ab
Move firstNonNull() to better place in file
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881205 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:19:05 +00:00
Stephen Colebourne
a14051481e
Enhance Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881204 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 09:13:49 +00:00
Henri Yandell
0714795b6f
Removing the EscapeUtils/UnescapeUtils classes, and making StringEscapeUtils the replacement. Writer variants of StringEscapeUtils are dropped - instead you hit those via the translator objects. Some javadoc/testing cleanup needed.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881197 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:45:55 +00:00
Henri Yandell
c090db27a4
Remove SQL from javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@881181 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 07:52:35 +00:00
Henri Yandell
ab1bf739da
Changing the note on high > 0x7f characters being escaped. LANG-516
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836152 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:46:04 +00:00
Henri Yandell
000bac6b94
Changing the standard escapeXml method to not escape high characters. It's easier to add that back on that remove it. LANG-516 and LANG-517
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836151 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:45:27 +00:00
Henri Yandell
9adbbb0bbf
Rolling back r611543 for LANG-393, and removing the special handling of BigDecimal to use compareTo instead of equals because it creates an inequality with HashCodeBuilder [reported in LANG-467 by David Jones]
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@836149 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 10:10:19 +00:00
Matthew Jason Benson
5646355247
[LANG-553] Add TypeUtils
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@835975 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 20:17:47 +00:00