Commit Graph

2698 Commits

Author SHA1 Message Date
James W. Carman 8904051249 Reverting "generification" of toMap() method in ArrayUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983933 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10 11:31:38 +00:00
Sebastian Bazley 197354dafb Comment why OK to suppress the warning
Remove unnecessary cast

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983903 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10 09:43:33 +00:00
Matthew Jason Benson 441671d365 throw IllegalStateException as documented from validState()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983711 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 16:22:55 +00:00
Matthew Jason Benson e51c8d6cfb move/comment SuppressWarnings(unchecked)/refactor surrounding code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983709 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 16:20:54 +00:00
Sebastian Bazley 2f66e0fdf8 Minimise scope of @SuppressWarnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983569 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 10:04:51 +00:00
Sebastian Bazley 2c0e67621a Eliminate unchecked cast
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983568 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 09:57:51 +00:00
Sebastian Bazley 4b4ceaca41 DateUtils.parseDate requires String[]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983515 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 03:20:30 +00:00
Sebastian Bazley 55a3c67672 MethodUtils.invoke[Static]Method require Object[] arrays
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983514 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 03:15:12 +00:00
Sebastian Bazley 62c9043f9c ConstructorUtils.invokeExactConstructor and ConstructorUtils.invokeConstructor require Object[] arrays
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983513 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 03:12:06 +00:00
Sebastian Bazley 0aeeb4b7ac Remove spurious import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983512 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 03:05:13 +00:00
Sebastian Bazley d42c22929d Remove non-array version of test as it does not work.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983511 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 03:03:06 +00:00
Sebastian Bazley f55d14f871 StringUtils.concat requires Object... not String...
Add varargs version

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983510 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 03:00:58 +00:00
James W. Carman c62105153e Adding back in tests for deprecated methods. When the methods are removed, we'll remove the tests. Added in annotation to ignore usage of deprecated methods.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983482 13f79535-47bb-0310-9956-ffa450edef68
2010-08-08 21:07:59 +00:00
James W. Carman a848b0f3fe Some code clean-up. Removing unnecessary boxing, array creation for varargs, etc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983219 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07 12:04:46 +00:00
James W. Carman 71fa772219 Reverting change that removed "superfluous" type argument.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983218 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07 12:02:15 +00:00
James W. Carman 535d85c75b Removing some unnecessary boxing/casting/generics params
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983141 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 22:58:03 +00:00
James W. Carman b4cf0a72d6 Generifying toMap() method (adding in possibility for type inference on return type).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983140 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 22:55:48 +00:00
James W. Carman e7f8d9bbfb Generifying toMap() method (adding in possibility for type inference on return type).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983137 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 22:44:38 +00:00
James W. Carman 823f2603a4 LANG-640: Add normalizeSpace to StringUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@982844 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 01:08:57 +00:00
Henri Yandell 50c1fdecb4 Making it so that NumberUtils.createNumber throws a NumberFormatException instead of a StringIndexOutOfBoundsException when Strings such as 1eE are passed in. Thanks to Ingo Heinrich's report and patch in LANG-638
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@981736 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 04:41:04 +00:00
Henri Yandell bbcba273ad Fixing url to 3.0-beta javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@981384 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 06:56:53 +00:00
Henri Yandell dae053c8c3 Slight text change to download page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@981380 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 06:46:10 +00:00
Henri Yandell 977151904c Slight text change to download page
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@981379 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 06:45:25 +00:00
Henri Yandell 64fe3c71ef Added a 2nd download option. I've had to manually modify the output so it doesn't think the 2.5 version is called lang3
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@981351 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 01:05:06 +00:00
Matthew Jason Benson 678c9e52b7 javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@980926 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 19:05:15 +00:00
Matthew Jason Benson 3244c46fe9 use static method for brevity, avoiding type params
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@980923 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 18:59:09 +00:00
Matthew Jason Benson 3296f58f71 use 1.5 method for determining inner class-ness; null safety is really the only remaining advantage of #isInnerClass. This goes nicely with r919340
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@980562 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 20:22:58 +00:00
Matthew Jason Benson b74e64b211 add methods for inspecting array types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@980557 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 20:21:10 +00:00
Matthew Jason Benson 5bfa8550e8 s/if (foo) { return true; } return false;/return foo;/g
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@980201 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 20:40:16 +00:00
Matthew Jason Benson c6ba216574 missing svn keywords and @version: $ tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@979392 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 18:09:52 +00:00
Henri Yandell c9c9af98d8 tabs to whitespace
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@979179 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 06:43:31 +00:00
Henri Yandell 6db113f1c9 Adding a note for Maven users
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@979178 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 06:40:49 +00:00
Henri Yandell 9504373a5a Back to snapshot post tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@979176 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 06:32:04 +00:00
Henri Yandell 087b4c0083 Upgrading version to 3.0-beta
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@979174 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 06:31:45 +00:00
Henri Yandell 37aafec262 Small text change
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@979170 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 06:28:31 +00:00
Henri Yandell ec65d6c975 Updating release notes by copying from the current contents of the upgradeto3_0.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@978990 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 06:53:41 +00:00
James W. Carman 9a40cd0194 LANG-580: Add Event Support Utilities
Applying documentation patch "commons-lang-event-support-docs.patch" from Michael Wooten.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@978864 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 12:49:38 +00:00
Matthew Jason Benson b1ba66c46e missing svn keywords and @version: $ tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967237 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 20:08:57 +00:00
Matthew Jason Benson 34a5505cf7 unused import
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967229 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:48:29 +00:00
Henri Yandell 415064acb0 Minor tweak, mention 3.0 is Java 5.0
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967218 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:29:37 +00:00
Henri Yandell abaa932db3 Back to snapshot post tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967210 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:10:47 +00:00
Henri Yandell ccc0fc608f Prepare for beta-2
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967208 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:09:04 +00:00
Henri Yandell 5ada92406b Updating the data in the 3.0 changelog. Needs a bit more; i.e. reword/delete JIRA issues that make no sense, remove the WONTFIXes, merge the subtasks, tasks and wishes into enhancement/new feature. Comment on deprecateds going away.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967191 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 18:33:10 +00:00
Henri Yandell b4dbd49f55 Adding a placeholder for the 3.0 changelog
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967182 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 18:02:35 +00:00
Henri Yandell dec41e7510 Upgrading the front page for 3.0 beta. Note that the 3.0 draft changelog needs creating
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@967180 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 17:51:08 +00:00
James W. Carman ef2a37a3ba Adding test cases for null checks.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966821 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 19:40:20 +00:00
James W. Carman 6967edc80c Using CopyOnWriteArrayList for thread safety.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966818 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 19:31:48 +00:00
James W. Carman 973bdd708b Improving javadoc documentation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966812 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 19:18:10 +00:00
James W. Carman 4ef2bc32fc Adding a package.html file.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966809 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 19:11:12 +00:00
James W. Carman c3b4a3d362 Improving error checking logic and adding test cases to verify.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966807 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 19:09:18 +00:00