Permalink
Browse files

Source cleanup

Removed unused import and changed method throw signatures where the change was long staged
  • Loading branch information...
1 parent 0986aec commit ce871deb2faa1d3114d05cf71bdec1e0cc08660a @penSecIT penSecIT committed Sep 23, 2012
Showing with 2 additions and 13 deletions.
  1. +2 −13 src/main/java/com/sanityinc/jargs/CmdLineParser.java
@@ -40,7 +40,6 @@
import java.util.List;
import java.util.Locale;
import java.util.Map;
-import java.util.Vector;
/**
* Largely GNU-compatible command-line options parser. Has short (-v) and
@@ -507,13 +506,7 @@ protected String parseValue( String arg, Locale locale ) {
* list of command-line arguments. The default locale is used for
* parsing options whose values might be locale-specific.
*/
- public final void parse( String[] argv )
- throws IllegalOptionValueException, UnknownOptionException {
-
- // It would be best if this method only threw OptionException, but for
- // backwards compatibility with old user code we throw the two
- // exceptions above instead.
-
+ public final void parse( String[] argv ) throws OptionException {
parse(argv, Locale.getDefault());
}
@@ -523,11 +516,7 @@ public final void parse( String[] argv )
* parsing options whose values might be locale-specific.
*/
public final void parse( String[] argv, Locale locale )
- throws IllegalOptionValueException, UnknownOptionException {
-
- // It would be best if this method only threw OptionException, but for
- // backwards compatibility with old user code we throw the two
- // exceptions above instead.
+ throws OptionException {
ArrayList<Object> otherArgs = new ArrayList<Object>();
int position = 0;

0 comments on commit ce871de

Please sign in to comment.