File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/util/ApplicationFiles.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/util/ApplicationFiles.java | |||
Method name: File getExecutionLogFile()
|
Method name: File getJDBCDebugLogFile()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | final String dirPath = _userSettingsDir + File.separator + "logs";↵ | 1 | final String dirPath = _userSettingsDir + File.separator + "logs";↵ | |
2 | final String logBaseName = "squirrel-sql.log";↵ | 2 | final String logBaseName = "jdbcdebug.log";↵ | |
3 | if (needExecutionLogCleanup) {↵ | 3 | if (needDebugLogCleanup) {↵ | |
4 | // first time through this method in program, so go cleanup↵ | 4 | // first time through this method in program, so go cleanup↵ | |
5 | // old log files↵ | 5 | // old log files↵ | |
6 | deleteOldFiles(dirPath, logBaseName);↵ | 6 | deleteOldFiles(dirPath, logBaseName);↵ | |
7 | needExecutionLogCleanup = false;↵ | 7 | needDebugLogCleanup = false;↵ | |
8 | }↵ | 8 | }↵ | |
9 | return new File(dirPath + File.separator + logBaseName); | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final String dirPath = _userSettingsDir + File.separator + "logs"; | 1 | final String dirPath = _userSettingsDir + File.separator + "logs"; | |||||||||||
2 | final String logBaseName = "squirrel-sql.log"; |
| 2 | final String logBaseName = "jdbcdebug.log"; | ||||||||||
3 | if (needExecutionLogCleanup) |
| 3 | if (needDebugLogCleanup) | ||||||||||
4 | deleteOldFiles(dirPath, logBaseName); | 4 | deleteOldFiles(dirPath, logBaseName); | |||||||||||
5 | needExecutionLogCleanup = false; |
| 5 | needDebugLogCleanup = false; | ||||||||||
6 | return new File(dirPath + File.separator + logBaseName); | 6 | return new File(dirPath + File.separator + logBaseName); |
Row | Violation |
---|