[Japi-cvs] SF.net SVN: japi:[1003] libs/argparser/trunk/src/prj/net/sf/japi/io/args/ converter/Con
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2009-02-21 17:41:01
|
Revision: 1003
http://japi.svn.sourceforge.net/japi/?rev=1003&view=rev
Author: christianhujer
Date: 2009-02-21 17:40:47 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
Removed try/catch for EnumConverter.
Modified Paths:
--------------
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-02-21 16:21:18 UTC (rev 1002)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ConverterRegistry.java 2009-02-21 17:40:47 UTC (rev 1003)
@@ -181,11 +181,7 @@
* @return EnumConverter for the target type.
*/
@Nullable public static <T extends Enum> EnumConverter<T> getEnumConverter(@NotNull final Class<T> targetType) {
- try {
- return new EnumConverter<T>(targetType);
- } catch (final Exception ignore) {
- return null;
- }
+ return new EnumConverter<T>(targetType);
}
} // class ConverterRegistry
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|