CloneSet278


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11427
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/test/java/org/columba/core/context/ContextTest.java
21344
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/test/java/org/columba/core/context/ContextTest.java
Next
Last
Clone Instance
1
Line Count
14
Source Line
27
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/test/java/org/columba/core/context/ContextTest.java

ContextFactory factory = new ContextFactory();
// top-level structure
IStructureType type = factory.createStructure("userlist", "ns");
type.setCardinality(MULTIPLICITY.ONE_TO_ONE);
// mandatory String-based attribute
IAttributeType attr = type.addAttribute("name", "ns");
// optional String-based attribute
IAttributeType attr2 = type.addAttribute("description", "ns");
IAttributeType result1 = type.getAttribute("name", "ns");
assertEquals(attr, result1);


First
Previous
Clone Instance
2
Line Count
13
Source Line
44
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/test/java/org/columba/core/context/ContextTest.java

ContextFactory factory = new ContextFactory();
// top-level structure
IStructureType type = factory.createStructure("userlist", "ns");
type.setCardinality(MULTIPLICITY.ONE_TO_ONE);
// mandatory String-based attribute
IAttributeType attr = type.addAttribute("name", "ns");
// optional String-based attribute
IAttributeType attr2 = type.addAttribute("description", "ns");
IAttributeType result1 = type.getAttribute("name", "ns");
assertEquals(attr, result1);


Clone AbstractionParameter Count: 0Parameter Bindings

ContextFactory factory = new ContextFactory();
// top-level structure
IStructureType type = factory.createStructure("userlist", "ns");
type.setCardinality(MULTIPLICITY.ONE_TO_ONE);
// mandatory String-based attribute
IAttributeType attr = type.addAttribute("name", "ns");
// optional String-based attribute
IAttributeType attr2 = type.addAttribute("description", "ns");
IAttributeType result1 = type.getAttribute("name", "ns");
assertEquals(attr, result1);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None