Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 0 | 1.000 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 135 | E:/TSE/Projects-CloneDR/sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/FirebirdManagerHelper.java |
2 | 11 | 83 | E:/TSE/Projects-CloneDR/sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/SmarttoolsHelper.java |
| |||||
/** * Get the parsed string as int or defaultValue if an exception occured * @param string string to convert * @param defaultValue default value which will be returned on an exception * @return converted string or defaultValue */ public static int convertStringToIntDef(String string, int defaultValue) { try { return Integer.parseInt(string); } catch (NumberFormatException e) { return defaultValue; } } |
| |||||
/** * Get the parsed string as int or defaultValue if an exception occured * * @param string * string to convert * @param defaultValue * default value which will be returned on an exception * @return converted string or defaultValue */ public static int convertStringToIntDef(String string, int defaultValue) { try { return Integer.parseInt(string); } catch (NumberFormatException e) { return defaultValue; } } |
| |||
/** * Get the parsed string as int or defaultValue if an exception occured * @param string string to convert * @param defaultValue default value which will be returned on an exception * @return converted string or defaultValue */ /** * Get the parsed string as int or defaultValue if an exception occured * * @param string * string to convert * @param defaultValue * default value which will be returned on an exception * @return converted string or defaultValue */ public static int convertStringToIntDef(String string, int defaultValue) { try { return Integer.parseInt(string); } catch (NumberFormatException e) { return defaultValue; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |