File path: /ArgoUML-0.34-src/argouml-sql/src/org/argouml/language/sql/ForeignKeyDefinition.java | File path: /ArgoUML-0.34-src/argouml-sql/src/org/argouml/language/sql/ForeignKeyDefinition.java | |||
Method name: List
|
Method name: List
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | /** | 1 | /** | |
2 | * @return A List of all column names. | 2 | * @return A List with all referenced column definitions. | |
3 | */ | 3 | */ | |
4 | public List<String> getColumnNames() { | 4 | public List<String> getReferencesColumnNames() { | |
5 | List<String> columnNames = new ArrayList<String>(); | 5 | List<String> referencesColumnNames = new ArrayList<String>(); | |
6 | for (Iterator<ColumnDefinition> it = columns.iterator(); it.hasNext();) { | 6 | for (ColumnDefinition cd : referencesColumns) { | |
7 | ColumnDefinition cd = it.next(); | 7 | referencesColumnNames.add(cd.getName()); | |
8 | columnNames.add(cd.getName()); | 8 | } | |
9 | } | 9 | return referencesColumnNames; | |
10 | return columnNames; | 10 | } | |
11 | } | |||
See real code fragment | See real code fragment |
Number of mapped statements | 3 |
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) | 0.0 |
Similarity Score | 0.800 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | for (Iterator<ColumnDefinition> it = columns.iterator(); it.hasNext(); ) |
| 2 | for (ColumnDefinition cd : referencesColumns) | ||||||||||
3 | ColumnDefinition cd = it.next(); | | ||||||||||||
4 | columnNames.add(cd.getName()); |
| 3 | referencesColumnNames.add(cd.getName()); |
Row | Violation |
---|