}
/**
- * Return whether this choice is default {@link ChoiceOption}
+ * Return whether this choice is default {@link AbstractOption}
*
* @return boolean value if this choice is default
*/
final Object obj
)
{
- if ( !( obj instanceof ChoiceOption ) )
+ if ( !( obj instanceof AbstractOption ) )
{
return false;
}
- final ChoiceOption other = (ChoiceOption) obj;
+ final AbstractOption other = (AbstractOption) obj;
return ObjectUtil.equals( this.name, other.name );
}
try {
props.load(inputStream);
} catch (Exception e) {
- e.printStackTrace();
} finally {
tryClose( inputStream );
}
try {
props.store(outputStream, null);
} catch (Exception e) {
- e.printStackTrace();
return false;
} finally {
tryClose( outputStream );
writer = new BufferedWriter(new FileWriter(fileName));
props.store(writer, null);
} catch (Exception e) {
- e.printStackTrace();
return false;
} finally {
tryClose( writer );
new Object[] { "/aaa/bbb/ccc", "aaa", "/aaa/bbb/ccc/aaa" },
new Object[] { "/aaa/bbb/ccc/", "aaa", "/aaa/bbb/ccc/aaa" },
new Object[] { "/aaa/bbb/ccc/", "/aaa", "/aaa/bbb/ccc/aaa" },
+ new Object[] { "/home/bylee/tizen_sdk/tools/ide", "conf/profiles.xml", "/home/bylee/tizen_sdk/tools/ide/conf/profiles.xml" },
+ new Object[] { "/home/bylee/tizen_sdk/tools/ide/", "conf/profiles.xml", "/home/bylee/tizen_sdk/tools/ide/conf/profiles.xml" },
+ new Object[] { "/home/bylee/tizen_sdk/tools/ide/", "/conf/profiles.xml", "/home/bylee/tizen_sdk/tools/ide/conf/profiles.xml" },
+ new Object[] { "C:\test", "profiles.xml", "C:\test/profiles.xml" }
};
int iTest = 0;