Skip to content

Commit

Permalink
Source cleanup
Browse files Browse the repository at this point in the history
Removed unused import and changed method throw signatures where the change was long staged
  • Loading branch information
penSecIT committed Sep 23, 2012
1 parent 0986aec commit ce871de
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/main/java/com/sanityinc/jargs/CmdLineParser.java
Expand Up @@ -40,7 +40,6 @@
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Vector;


/** /**
* Largely GNU-compatible command-line options parser. Has short (-v) and * Largely GNU-compatible command-line options parser. Has short (-v) and
Expand Down Expand Up @@ -507,13 +506,7 @@ public final String[] getRemainingArgs() {
* list of command-line arguments. The default locale is used for * list of command-line arguments. The default locale is used for
* parsing options whose values might be locale-specific. * parsing options whose values might be locale-specific.
*/ */
public final void parse( String[] argv ) public final void parse( String[] argv ) throws OptionException {
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.

parse(argv, Locale.getDefault()); parse(argv, Locale.getDefault());
} }


Expand All @@ -523,11 +516,7 @@ public final void parse( String[] argv )
* parsing options whose values might be locale-specific. * parsing options whose values might be locale-specific.
*/ */
public final void parse( String[] argv, Locale locale ) public final void parse( String[] argv, Locale locale )
throws IllegalOptionValueException, UnknownOptionException { throws OptionException {

// 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.


ArrayList<Object> otherArgs = new ArrayList<Object>(); ArrayList<Object> otherArgs = new ArrayList<Object>();
int position = 0; int position = 0;
Expand Down

0 comments on commit ce871de

Please sign in to comment.