Commit Graph

3083 Commits

Author SHA1 Message Date
Matthew Jason Benson 1d6ab5b8c0 make abbreviation maps immutable, andand add void:V for the sake of completeness
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1512811 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 18:04:12 +00:00
Matthew Jason Benson 609319df22 [LANG-908] get method override hierarchy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1510301 13f79535-47bb-0310-9956-ffa450edef68
2013-08-04 18:40:48 +00:00
Matthew Jason Benson 019256539d [LANG-906] new type util features
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1510300 13f79535-47bb-0310-9956-ffa450edef68
2013-08-04 18:40:18 +00:00
Matthew Jason Benson eb45c596a8 [LANG-907] retrieve class hierarchy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1510298 13f79535-47bb-0310-9956-ffa450edef68
2013-08-04 18:36:17 +00:00
Benedikt Ritter 3fcbc4a4fa Make test independent from machine locale
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1507797 13f79535-47bb-0310-9956-ffa450edef68
2013-07-28 13:16:36 +00:00
Sebastian Bazley d1a45e9738 LANG-747 NumberUtils does not handle Long Hex numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1507169 13f79535-47bb-0310-9956-ffa450edef68
2013-07-26 01:03:52 +00:00
Brent Worden 396afc3e46 LANG-837 Add ObjectUtils.toIdentityString methods that support StringBuilder, StrBuilder, and Appendable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1500545 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 22:07:46 +00:00
Brent Worden f291dea74f short circuit (un)capitalize if string is already (un)capitalized.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1497829 13f79535-47bb-0310-9956-ffa450edef68
2013-06-28 16:21:09 +00:00
Sebastian Bazley a3242c0171 Add tests for new Javadoc examples
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1493144 13f79535-47bb-0310-9956-ffa450edef68
2013-06-14 16:19:27 +00:00
Sebastian Bazley 0dafe1193c Clarify Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1493118 13f79535-47bb-0310-9956-ffa450edef68
2013-06-14 15:30:09 +00:00
Sebastian Bazley 572087d22b Add more tests showing the behaviour on the index boundary
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1493107 13f79535-47bb-0310-9956-ffa450edef68
2013-06-14 15:09:53 +00:00
Sebastian Bazley cf4979715f Javadoc - more copy-paste errors converting first to last
Add details of invariants

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1493104 13f79535-47bb-0310-9956-ffa450edef68
2013-06-14 15:07:44 +00:00
Sebastian Bazley 43b4c722bc Javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1493082 13f79535-47bb-0310-9956-ffa450edef68
2013-06-14 14:18:31 +00:00
Gary D. Gregory b462572e01 Statements unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1489695 13f79535-47bb-0310-9956-ffa450edef68
2013-06-05 03:40:00 +00:00
Gary D. Gregory 49ae56659d Statements unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1489694 13f79535-47bb-0310-9956-ffa450edef68
2013-06-05 03:39:09 +00:00
Gary D. Gregory d77fe491fd Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1489693 13f79535-47bb-0310-9956-ffa450edef68
2013-06-05 03:37:50 +00:00
Gary D. Gregory c6ad3493e8 Use String#isEmpty() instead of String#length() == 0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1489692 13f79535-47bb-0310-9956-ffa450edef68
2013-06-05 03:35:37 +00:00
Sebastian Bazley ef9623ef8e LANG-896 BooleanUtils.toBoolean(String str) javadoc is not updated
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1488041 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 22:44:47 +00:00
Sebastian Bazley dcde57852a LANG-879 LocaleUtils test fails with new Locale "ja_JP_JP_#u-ca-japanese" of JDK7
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1488038 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 22:12:41 +00:00
Sebastian Bazley 8b494b784d LANG-836 StrSubstitutor does not support StringBuilder or CharSequence
Forgot to correct @since tags

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1487921 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 16:36:11 +00:00
Sebastian Bazley 22c37d5307 LANG-836 StrSubstitutor does not support StringBuilder or CharSequence
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1487918 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 16:34:20 +00:00
Sebastian Bazley 8a1042959d LANG-693 Method createNumber from NumberUtils doesn't work for floating point numbers other than Float
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1484263 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 10:22:13 +00:00
Matthew Jason Benson 64cfee77e3 more assertions trying to flush out bugs I'd already fixed :P
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1483607 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 23:34:36 +00:00
Thomas Neidhart 03b4f61f14 [LANG-887] Use the cache in FastDateParser correctly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1483568 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 21:09:07 +00:00
Benedikt Ritter 8ef33a43ec Use spaces instead of tabs to indent code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479783 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 07:05:20 +00:00
Benedikt Ritter 2154d86415 Comment why a anonymous subclass is used here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479780 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 06:54:35 +00:00
Benedikt Ritter 928ee8fce6 Revert r1479663 because of veto raised on the ML. This test should show that users can provide their own implementations of ExceptionContext.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479777 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 06:50:23 +00:00
Benedikt Ritter e3a09fc8c1 No need to define an anonymous subclass here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479663 13f79535-47bb-0310-9956-ffa450edef68
2013-05-06 18:05:37 +00:00
Benedikt Ritter 442eb55948 Suppress warning, we only assign the variable to make sure the expected exception is thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1479662 13f79535-47bb-0310-9956-ffa450edef68
2013-05-06 18:02:27 +00:00
Sebastian Bazley 1a7e46f430 Rewrite to avoid (im)possible NPE warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1478506 13f79535-47bb-0310-9956-ffa450edef68
2013-05-02 19:53:15 +00:00
Gary D. Gregory d1350bf73f Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1478488 13f79535-47bb-0310-9956-ffa450edef68
2013-05-02 19:05:44 +00:00
Gary D. Gregory 9e529c7c6a Fix some formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1478487 13f79535-47bb-0310-9956-ffa450edef68
2013-05-02 19:04:35 +00:00
Sebastian Bazley 640da9075b Simpler (the prefix is still needed as .<T> cannot start a method call)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1478234 13f79535-47bb-0310-9956-ffa450edef68
2013-05-01 23:43:35 +00:00
Sebastian Bazley 5c2471f896 Eliminate one unchecked warning; localise and document others
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1478232 13f79535-47bb-0310-9956-ffa450edef68
2013-05-01 23:41:44 +00:00
Sebastian Bazley e3982f893f LANG-884 Simplify FastDateFormat; eliminate boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1477507 13f79535-47bb-0310-9956-ffa450edef68
2013-04-30 08:40:58 +00:00
Henri Yandell 0e7401897a Applying Joanne's subsequent patch from LANG-875 making appendIfMissing use the same logic for null as endsWith (by reusing endsWith).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1476070 13f79535-47bb-0310-9956-ffa450edef68
2013-04-26 06:51:07 +00:00
Sebastian Bazley f364bd1f14 Javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1471063 13f79535-47bb-0310-9956-ffa450edef68
2013-04-23 17:31:21 +00:00
Henri Yandell 0cdc976684 Allow LookupTranslator to support CharSequence properly; previously it was working only for CharSequence's that implemented hashCode and equals(Object). LANG-882
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1470822 13f79535-47bb-0310-9956-ffa450edef68
2013-04-23 06:00:41 +00:00
Henri Yandell cd91a4f2cd Adding a javadoc note regarding LANG-882
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1470384 13f79535-47bb-0310-9956-ffa450edef68
2013-04-22 04:18:24 +00:00
Henri Yandell 9d73fe09ce Added more detail to the explanation of the oddly backwards way that difference(String, String) works as noted in LANG-784
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1470262 13f79535-47bb-0310-9956-ffa450edef68
2013-04-21 04:52:28 +00:00
Thomas Neidhart d49d8093e2 [LANG-754] Fix ClassUtils.getShortName to only do a reverse lookup for array types.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1470174 13f79535-47bb-0310-9956-ffa450edef68
2013-04-20 15:18:08 +00:00
Henri Yandell bb95f8a194 Add a CharSetUtils.containsAny(String, String) per LANG-886
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1470130 13f79535-47bb-0310-9956-ffa450edef68
2013-04-20 09:05:43 +00:00
Henri Yandell 90be7a25c6 Documenting the LANG-846 fix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1469221 13f79535-47bb-0310-9956-ffa450edef68
2013-04-18 08:16:55 +00:00
Henri Yandell f9acb40b99 Adding Dmitry Katsubo's patch from LANG-846, providing CharSequenceUtils.regionMatches with a proper green implementation instead of inefficiently converting to Strings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1469220 13f79535-47bb-0310-9956-ffa450edef68
2013-04-18 08:15:47 +00:00
Sebastian Bazley cc7fa1ea05 Avoid compilation warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467431 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 19:18:31 +00:00
Sebastian Bazley 4529094122 Unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467388 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 18:07:17 +00:00
Sebastian Bazley 7e71e1559d Javadoc corrections
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467387 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 18:05:03 +00:00
Sebastian Bazley 692b647b0f Fix Javadoc api URLs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467378 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 17:44:32 +00:00
Henri Yandell e4555ce2b6 Added escape/unescapeJson methods per Maurizio Cucchiara's patch in LANG-797
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467206 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 08:39:02 +00:00
Henri Yandell 1ccb2bfe75 Fixing the @since for LANG-875
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467205 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 08:36:53 +00:00
Henri Yandell 3d6069ac24 Noted LANG-875 in the changes.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467204 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 08:34:34 +00:00
Henri Yandell b7f9beed29 Applying Joanne Polsky's patch adding appendIfMissing/prependIfMissing methods to StringUtils [LANG-875]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1467202 13f79535-47bb-0310-9956-ffa450edef68
2013-04-12 08:27:22 +00:00
Sebastian Bazley a0f577f6aa Add tests to try and break createNumber exponent handling
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461698 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 16:29:56 +00:00
Sebastian Bazley d80be57d6e Document why double exponent (e and E) seems to work even though the index will be wrong
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461697 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 16:29:25 +00:00
Sebastian Bazley a1d5af1297 Factor out number failure tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461685 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 16:09:55 +00:00
Sebastian Bazley 0b58bbef33 Show input as well as output for failures
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461682 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 16:06:05 +00:00
Sebastian Bazley f1d2999aa2 Fix test failure comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461679 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 16:00:38 +00:00
Sebastian Bazley acec03e45a No need to check for Java 1.3+ any more
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461673 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 15:56:49 +00:00
Sebastian Bazley b3db6ed9ef LANG-881 NumberUtils.createNumber() Javadoc says it does not work for octal numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461671 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 15:52:25 +00:00
Sebastian Bazley 5df8f55e4f LANG-881 Enhance test so it also checks the exact values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461654 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 15:32:24 +00:00
Gary D. Gregory ad43a49dab Statements unnecessarily nested within else clauses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1461559 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 13:04:25 +00:00
Henri Yandell 48d5e443c8 Updating changes file for two recent commits
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1459654 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 07:39:03 +00:00
Henri Yandell fbf996cb7e Fixing urls to point to new oracle pages and not old, sometimes broken, sun urls
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1459653 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 07:37:03 +00:00
Henri Yandell 3b69ed8d34 Fixing link from javadoc to point to new oracle site
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1459652 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 07:28:34 +00:00
Henri Yandell 733739cfc1 Adding CR and LF to StringUtils. LANG-870
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1459651 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 07:25:50 +00:00
Gary D. Gregory 7e03508fa6 [LANG-873] Add FieldUtils getAllFields() to return all the fields defined in the given class and super classes. Alternate impl that splits into two APIs, one with an array result, the other with a List.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1456305 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 01:35:37 +00:00
Gary D. Gregory b4ba50f6c8 [LANG-873] Add FieldUtils getAllFields() to return all the fields defined in the given class and super classes. Alternate impl that splits into two APIs, one with an array result, the other with a List.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1456304 13f79535-47bb-0310-9956-ffa450edef68
2013-03-14 01:35:23 +00:00
Gary D. Gregory 8d33312704 [LANG-873] Add FieldUtils getAllFields() to return all the fields defined in the given class and super classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1456010 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 15:55:41 +00:00
Benedikt Ritter 7a3255738a trivial: remove unnecessary <p> tags in one line JavaDoc comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1455920 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 12:55:40 +00:00
Benedikt Ritter 415ce96a40 trivial: remove trailing white spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1455915 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 12:50:23 +00:00
Gary D. Gregory f33fba71c5 Remove useless parentheses (PMD).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1455893 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 11:41:02 +00:00
Gary D. Gregory fca46212ac Fix PMD: Avoid modifiers which are implied by the context.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1455892 13f79535-47bb-0310-9956-ffa450edef68
2013-03-13 11:35:00 +00:00
Gary D. Gregory 035e5c7115 [LANG-873] Add FieldUtils getDeclaredFields() to return all the fields defined in the given class and super classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1455751 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 23:23:04 +00:00
Olivier Lamy d7ac6963d6 add missing license header
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1451550 13f79535-47bb-0310-9956-ffa450edef68
2013-03-01 10:06:13 +00:00
Olivier Lamy 52c2bdc026 fix link
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1451438 13f79535-47bb-0310-9956-ffa450edef68
2013-02-28 23:39:58 +00:00
Olivier Lamy 39528d55ee restore download cgi
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1450355 13f79535-47bb-0310-9956-ffa450edef68
2013-02-26 18:50:19 +00:00
Thomas Neidhart ecd4dc9ca0 Fix typo.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1448370 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 19:54:19 +00:00
Thomas Neidhart 8bfee9ba52 Add generic type parameter javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1448293 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 16:57:52 +00:00
Thomas Neidhart 9e4c7ad562 Remove wrong param tags, complete javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1448290 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 16:51:35 +00:00
Thomas Neidhart 295ab041dc Add missing param tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1448288 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 16:49:31 +00:00
Thomas Neidhart e7788c0231 Add missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1448287 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 16:47:42 +00:00
Thomas Neidhart 99ff604efa Add missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1448286 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 16:47:18 +00:00
Gary D. Gregory 909630731f JUnit 3 -> 4: replace import of junit.framework.Assert with org.junit.Assert.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1437526 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 16:05:20 +00:00
Gary D. Gregory 9b2d0335e6 Fix Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1437065 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 17:29:33 +00:00
Gary D. Gregory 5292526e47 Add final modifier to local variables.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1436770 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 07:09:45 +00:00
Gary D. Gregory 5bd622dab0 Add final modifier to method parameters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1436768 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 07:07:42 +00:00
Gary D. Gregory adfcc014bd Add final modifier to private fields.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1436767 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 07:05:41 +00:00
Gary D. Gregory 4d46f014fb [LANG-865] LocaleUtils.toLocale does not parse strings starting with an underscore.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1428174 13f79535-47bb-0310-9956-ffa450edef68
2013-01-03 06:19:52 +00:00
Olivier Lamy bc255ccf5c fix links with new tree for javadocs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1422900 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 12:29:12 +00:00
Sebastian Bazley b1304061e9 Missing interface @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1417452 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 14:45:42 +00:00
Sebastian Bazley 78ef8313bd Imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1417451 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 14:45:09 +00:00
Gary D. Gregory 8b89b0ea93 <action issue="LANG-835" type="add">StrBuilder should support StringBuilder as an input parameter</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1413671 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 15:04:00 +00:00
Gary D. Gregory 0c9622b749 <action issue="LANG-858" type="fix">StringEscapeUtils.escapeJava() and escapeEcmaScript() do not output the escaped surrogate pairs that are Java parsable</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1413114 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 01:56:20 +00:00
Gary D. Gregory e5a1ea6a76 [LANG-858] StringEscapeUtils.escapeJava() does not output the escaped surrogate pairs that is Java parsable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1412408 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 02:21:55 +00:00
Gary D. Gregory ed8a178479 Remove extra whitespace.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1412407 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 02:17:32 +00:00
Gary D. Gregory 0ea20fa351 Add testEscapeXmlAllCharacters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1412256 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 19:51:28 +00:00
Gary D. Gregory 52bcd9b8e8 [LANG-857] StringIndexOutOfBoundsException in CharSequenceTranslator.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1411850 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 20:45:50 +00:00
Sebastian Bazley f5a83bb90c LANG-856 Code refactoring in NumberUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408713 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 13:21:37 +00:00
Sebastian Bazley d844d1eb5e LANG-854 NumberUtils#createNumber - does not allow for hex numbers to be larger than Long
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408537 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 01:39:40 +00:00
Sebastian Bazley c1f9320476 LANG-855 NumberUtils#createBigInteger does not allow for hex and octal numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408524 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 00:59:22 +00:00
Sebastian Bazley d2bea5ffd3 Add tests to show magnitude boundary between Float, Double and BigDecimal
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408359 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 17:13:37 +00:00
Sebastian Bazley cbb9aed860 Wrong order of testing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408324 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 15:31:45 +00:00
Gary D. Gregory 8df49927b1 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408273 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 13:04:33 +00:00
Sebastian Bazley 350cf8c2da LANG-822: NumberUtils#createNumber - bad behaviour for leading "--"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407973 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 13:16:22 +00:00
Sebastian Bazley a7b467a74c Document return value with null input
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407967 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 13:00:08 +00:00
Gary D. Gregory e4939f079a [LANG-853] StringUtils join APIs for primitives.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407899 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 23:30:43 +00:00
Gary D. Gregory c3ba1f83b9 Remove whitespace.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407878 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 20:36:56 +00:00
Chas Honton 343886c1c4 LANG-582 - minutes missing from test format
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407715 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 01:58:07 +00:00
Matthew Jason Benson 8a946932c8 explain whitespace pattern
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407537 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:50:39 +00:00
Matthew Jason Benson fa4ed70023 restrict whitespace pattern to ignore 'blocks' of whitespace consisting of only a single space
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407536 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:45:37 +00:00
Matthew Jason Benson 1ea6e4471c StrBuilder implements Builder; provide toStringBuilder as toStringBuffer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407534 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:42:18 +00:00
Matthew Jason Benson fd5af17932 support varargs in StrBuilder.appendAll(); also convert iterable form of method to use enhanced for loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407525 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:26:44 +00:00
Gary D. Gregory 16774d1c0d [LANG-701] StringUtils join with var args. Add and use SPACE string constant for " ".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407148 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 16:08:23 +00:00
Gary D. Gregory f416eb209c Rename private WHITESPACE_BLOCK to WHITESPACE_PATTERN.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407141 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 15:54:25 +00:00
Gary D. Gregory 8fc7c1fe06 Refactor some duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1406122 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 13:12:12 +00:00
Gary D. Gregory 4cdb63d6c0 [LANG-849] FastDateFormat and FastDatePrinter generates Date objects wastefully.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1406027 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 01:59:50 +00:00
Gary D. Gregory 310edf6439 [LANG-849] FastDateFormat generates Date objects wastefully.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1406026 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 01:58:29 +00:00
Gary D. Gregory 641aa249c3 [LANG-845] Spelling fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1401523 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 00:50:52 +00:00
Gary D. Gregory f7a8fa91ea [LANG-841] Add StringUtils API to call String.replaceAll in DOTALL a.k.a. single-line mode.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396375 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 22:07:08 +00:00
Thomas Neidhart 22d050b781 [LANG-844] Fix javadoc of StringUtils.center methods, thanks to John Lindwall.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396313 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 20:58:50 +00:00
Sebastian Bazley 307c280caf Fail if BitSet not faster overall
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396215 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 19:28:59 +00:00
Sebastian Bazley 8bbf8a9e2f LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Eliminate conversion of BitSet to int[]

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396075 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 15:37:05 +00:00
Sebastian Bazley 49685a4156 Add test for FreeBSD
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395965 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 11:02:02 +00:00
Sebastian Bazley f381f00df8 Show what we could not test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395961 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:52:27 +00:00
Sebastian Bazley 43a2736e22 LANG-839 Add tests to compare extractIndices+removeAll with direct use of BitSet in new version of removeAll
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395943 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:28:08 +00:00
Sebastian Bazley 17910d3cc7 LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Replace HashSet with BitSet (less memory; faster)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395837 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 01:26:13 +00:00
Sebastian Bazley ec242df460 LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Add benchmark test to show whether Bitset is faster

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395834 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 01:15:20 +00:00
Sebastian Bazley 73a89b07dc Check empty arrrays handled OK
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1394318 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 22:55:43 +00:00
Joerg Schaible ff5b829efd Use term "binary" instead of "boolArray" in Conversion. Improve Javadoc of class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393800 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:30:51 +00:00
Joerg Schaible 016c0e5858 Improve and fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393797 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:21:09 +00:00
Joerg Schaible 0b748abd18 Use better method names. Document possible ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393792 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:05:11 +00:00
Joerg Schaible ca9cbf976e Code clean-up for CheckStyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393626 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 17:17:40 +00:00
Joerg Schaible 28476afb7d LANG-778: Add to Conversion from byte[] to UUID and UUID to byte[]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393614 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 17:00:08 +00:00
Joerg Schaible 46448a690c Simplify expressions again.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393539 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 15:26:13 +00:00
Joerg Schaible bb7462c8b5 Document exceptions. Use IllegalArgumentException instead of assert. Throw IllegalArgumentException for empty arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393425 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 11:25:51 +00:00
Joerg Schaible 216411597d Use lowercase presentation for hex values as it is done in the JDK.
Use JDK functionality where available.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393073 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 18:12:53 +00:00
Sebastian Bazley f01111b634 Add some code comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391783 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 11:28:57 +00:00
Sebastian Bazley 86226bb499 There are only two distinct boolean values
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391701 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 23:59:55 +00:00
Sebastian Bazley 2be663db75 LANG-838 ArrayUtils removeElements methods clone temporary index arrays unnecessarily
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391695 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 23:30:31 +00:00
Joerg Schaible 6545db8bb7 Revert 1391258 by veto of Sebb.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391571 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 17:40:16 +00:00
Joerg Schaible 413a98eb21 Use conversion tables for boolean arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391258 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:53:46 +00:00
Joerg Schaible 560bde10c7 "import java.lang.*" is always implicit.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391246 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:35:09 +00:00
Sebastian Bazley 91b9a3de99 Document sync. strategy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391242 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:30:08 +00:00
Joerg Schaible 38fea7d456 Avoid unnecessary conversions.
Use StringBuilder instead of StringBuffer.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391237 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 22:10:55 +00:00
Joerg Schaible 3de2a0c914 Implement test TODO.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391233 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 21:52:05 +00:00
Joerg Schaible 342a9184a9 JUnit 3 --> JUnit 4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391222 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 21:08:54 +00:00
Sebastian Bazley c62d888e94 Use JUnit4 methods where possible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391216 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 21:00:02 +00:00
Sebastian Bazley 0ee336a58f Convert to JUNit4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391199 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 20:24:35 +00:00
Sebastian Bazley 82f04621a4 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391195 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 20:10:33 +00:00
Sebastian Bazley 2abc129650 Convert Strategy to abstract class; simplifies the subclasses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391187 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 19:41:33 +00:00