Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 2 | 0.958 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 45 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java |
2 | 6 | 51 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java |
3 | 8 | 57 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PermissionsTest.java |
| |||||
perms.addConfiguredGrant(perm); perm = new Permissions.Permission(); perm.setActions("read"); perm.setName("java.home"); perm.setClass("java.util.PropertyPermission"); |
| |||||
perms.addConfiguredGrant(perm); perm = new Permissions.Permission(); perm.setActions("read"); perm.setName("file.encoding"); perm.setClass("java.util.PropertyPermission"); |
| |||||
perms.addConfiguredGrant(perm); // Revoke permission to write user.home (granted above via user.*), still able to read though. // and the default granted permission to read os.name. perm = new Permissions.Permission(); perm.setActions("write"); perm.setName("user.home"); perm.setClass("java.util.PropertyPermission"); |
| |||
perms.addConfiguredGrant(perm); // Revoke permission to write user.home (granted above via user.*), still able to read though. // and the default granted permission to read os.name. perm = new Permissions.Permission(); perm.setActions( [[#variable13134be0]]); perm.setName( [[#variable13132260]]); perm.setClass("java.util.PropertyPermission"); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#13134be0]] | "read" |
1 | 2 | [[#13134be0]] | "read" |
1 | 3 | [[#13134be0]] | "write" |
2 | 1 | [[#13132260]] | "java.home" |
2 | 2 | [[#13132260]] | "file.encoding" |
2 | 3 | [[#13132260]] | "user.home" |