Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.977 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 392 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java |
2 | 14 | 409 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java |
| ||||
// returns a list of fields with setter entries checked private static IField[] getSetterFields(Object[] result) { Collection list = new ArrayList(0); Object each = null; GetterSetterEntry entry = null; for (int i = 0; i < result.length; i++) { each = result[i]; if ((each instanceof GetterSetterEntry)) { entry = (GetterSetterEntry) each; if ( !entry.fGetterEntry) { list.add(entry.fField); } } } return (IField[]) list.toArray(new IField[list.size()]); } |
| ||||
// returns a list of fields with getter entries checked private static IField[] getGetterFields(Object[] result) { Collection list = new ArrayList(0); Object each = null; GetterSetterEntry entry = null; for (int i = 0; i < result.length; i++) { each = result[i]; if ((each instanceof GetterSetterEntry)) { entry = (GetterSetterEntry) each; if (entry.fGetterEntry) { list.add(entry.fField); } } } return (IField[]) list.toArray(new IField[list.size()]); } |
| |||
// returns a list of fields with setter entries checked // returns a list of fields with getter entries checked private static IField[] [[#variableb945c920]](Object[] result) { Collection list = new ArrayList(0); Object each = null; GetterSetterEntry entry = null; for (int i = 0; i < result.length; i++) { each = result[i]; if ((each instanceof GetterSetterEntry)) { entry = (GetterSetterEntry) each; if ( [[#variableb945c8a0]]) { list.add(entry.fField); } } } return (IField[]) list.toArray(new IField[list.size()]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b945c920]] | getSetterFields |
1 | 2 | [[#b945c920]] | getGetterFields |
2 | 1 | [[#b945c8a0]] | !entry.fGetterEntry |
2 | 2 | [[#b945c8a0]] | entry.fGetterEntry |