diff src/viewer_swing/java/com/glavsoft/viewer/cli/Parser.java @ 52:472a9bcacb21 draft default tip

TightVNC 2.7.1.0
author you@cr.ie.u-ryukyu.ac.jp
date Wed, 07 Aug 2013 19:01:17 +0900
parents 4689cc86d6cb
children
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/cli/Parser.java	Tue Jul 03 13:20:49 2012 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/cli/Parser.java	Wed Aug 07 19:01:17 2013 +0900
@@ -1,4 +1,4 @@
-// Copyright (C) 2010, 2011 GlavSoft LLC.
+// Copyright (C) 2010, 2011, 2012, 2013 GlavSoft LLC.
 // All rights reserved.
 //
 //-------------------------------------------------------------------------
@@ -24,13 +24,13 @@
 
 package com.glavsoft.viewer.cli;
 
+import com.glavsoft.utils.Strings;
+
 import java.util.ArrayList;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 
-import com.glavsoft.utils.Strings;
-
 /**
  * Command line interface parameters parser
  */
@@ -70,7 +70,7 @@
 
 	public boolean isSet(String param) {
 		Option op = options.get(param.toLowerCase());
-		return op != null ? op.isSet : false;
+		return op != null && op.isSet;
 	}
 
 	public boolean isSetPlainOptions() {
@@ -89,7 +89,6 @@
 	 * Command line interface option
 	 */
 	private static class Option {
-		@SuppressWarnings("unused")
 		protected String opName, defaultValue, desc, value;
 		protected boolean isSet = false;
 		public Option(String opName, String defaultValue, String desc) {