Commit Graph

3780 Commits

Author SHA1 Message Date
Benedikt Ritter b9a8d54844 Add missing eclipse IDE config files to .gitignore
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1519293 13f79535-47bb-0310-9956-ffa450edef68
2013-09-01 17:03:54 +00:00
Benedikt Ritter 136c1bc523 LANG-913: Adding .gitignore to commons-lang. Patch provided by Allon Mureinik via github
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1519292 13f79535-47bb-0310-9956-ffa450edef68
2013-09-01 17:01:30 +00:00
Sebastian Bazley 28bee77766 Tabs and trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1518125 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 09:47:52 +00:00
Sebastian Bazley 62f2412f14 LANG-911 UTF8 4byte (un)escapeJava not work correctly
Add test to show that the bug report is incorrect

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1518116 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 09:17:47 +00:00
Sebastian Bazley 9506e04548 Drop my due-to entry.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1513217 13f79535-47bb-0310-9956-ffa450edef68
2013-08-12 18:23:14 +00:00
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 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