Commit Graph

3604 Commits

Author SHA1 Message Date
Sebastian Bazley ae987e1770 LANG-894 some doap files have incorrect download page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1484266 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 10:53:43 +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
Sebastian Bazley ef2c5e441e Fix up URLs so they point to actual sites; this allows relative URLs to work properly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1459912 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 17:49:27 +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