apache / struts-examples
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system43% (6,584 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
ftl55% (2,030 lines)
java54% (1,619 lines)
xml48% (1,577 lines)
jsp50% (1,131 lines)
css20% (133 lines)
html3% (78 lines)
js5% (16 lines)
Duplication per Component (primary)
themes-override58% (2,224 lines)
exception-handling89% (226 lines)
exclude-parameters83% (224 lines)
preparable-interface85% (224 lines)
debugging-struts87% (223 lines)
control-tags84% (218 lines)
portlet18% (215 lines)
themes81% (194 lines)
form-xml-validation71% (189 lines)
spring-struts88% (188 lines)
bean-validation81% (182 lines)
form-validation95% (166 lines)
form-tags77% (161 lines)
message-resource75% (144 lines)
tiles44% (127 lines)
mailreader25% (112 lines)
interceptors86% (107 lines)
unit-testing91% (106 lines)
crud20% (102 lines)
form-processing49% (95 lines)
rest-angular9% (82 lines)
blank46% (82 lines)
coding-actions80% (76 lines)
http-session65% (73 lines)
annotations49% (68 lines)
using-tags80% (67 lines)
validation-messages60% (62 lines)
helloworld52% (56 lines)
shiro-basic19% (55 lines)
json47% (51 lines)
wildcard-method-selection21% (44 lines)
message-store51% (41 lines)
type-conversion20% (40 lines)
json-customize72% (39 lines)
wildcard-regex41% (38 lines)
restful2actionmapper49% (36 lines)
file-upload43% (35 lines)
unknown-handler18% (35 lines)
quarkus75% (31 lines)
basic-struts76% (30 lines)
action-chaining40% (25 lines)
dynamic-href32% (23 lines)
jfreechart29% (23 lines)
jasperreports11% (16 lines)
text-provider11% (15 lines)
expression-cache27% (14 lines)
src0% (0 lines)

Duplication Between Components (50+ lines)

G debugging-struts debugging-struts exception-handling exception-handling debugging-struts--exception-handling 434 form-validation form-validation debugging-struts--form-validation 172 message-resource message-resource debugging-struts--message-resource 156 exception-handling--form-validation 192 exception-handling--message-resource 174 exclude-parameters exclude-parameters preparable-interface preparable-interface exclude-parameters--preparable-interface 430 themes-override themes-override exclude-parameters--themes-override 320 themes themes exclude-parameters--themes 320 spring-struts spring-struts exclude-parameters--spring-struts 324 form-xml-validation form-xml-validation exclude-parameters--form-xml-validation 268 form-tags form-tags exclude-parameters--form-tags 138 preparable-interface--themes-override 316 preparable-interface--themes 316 preparable-interface--spring-struts 320 themes-override--themes 388 spring-struts--themes-override 364 spring-struts--themes 364 control-tags control-tags control-tags--exclude-parameters 318 control-tags--preparable-interface 302 control-tags--themes-override 246 control-tags--themes 246 control-tags--spring-struts 230 control-tags--form-xml-validation 180 control-tags--form-tags 160 bean-validation bean-validation bean-validation--exclude-parameters 264 bean-validation--preparable-interface 280 bean-validation--themes-override 206 bean-validation--themes 206 bean-validation--spring-struts 202 bean-validation--control-tags 298 bean-validation--form-xml-validation 198 bean-validation--form-tags 164 form-validation--message-resource 288 interceptors interceptors form-validation--interceptors 211 unit-testing unit-testing form-validation--unit-testing 211 http-session http-session form-validation--http-session 128 message-resource--unit-testing 183 form-xml-validation--preparable-interface 284 form-xml-validation--themes-override 210 form-xml-validation--themes 210 form-xml-validation--spring-struts 214 form-tags--preparable-interface 154 form-tags--themes-override 166 form-tags--themes 166 form-tags--spring-struts 162 form-tags--form-xml-validation 226 interceptors--message-resource 189 interceptors--unit-testing 206 coding-actions coding-actions coding-actions--debugging-struts 142 coding-actions--exception-handling 156

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 5,028 duplicates...
Size#FoldersFilesLinesCode
56 x 2 exclude-parameters/src/m...pache/struts/edit/model
preparable-interface/src...pache/struts/edit/model
12:117 (100%)
12:117 (100%)
view
56 x 2 control-tags/src/main/ja...pache/struts/edit/model
exclude-parameters/src/m...pache/struts/edit/model
12:110 (100%)
12:117 (100%)
view
56 x 2 control-tags/src/main/ja...pache/struts/edit/model
preparable-interface/src...pache/struts/edit/model
12:110 (100%)
12:117 (100%)
view
49 x 2 crud/src/main/webapp/css
shiro-basic/src/main/webapp/css
1:56 (100%)
1:56 (100%)
view
47 x 2 bean-validation/src/main...pache/struts/edit/model
preparable-interface/src...pache/struts/edit/model
38:126 (75%)
22:117 (83%)
view
47 x 2 bean-validation/src/main...pache/struts/edit/model
control-tags/src/main/ja...pache/struts/edit/model
38:126 (75%)
22:110 (83%)
view
47 x 2 bean-validation/src/main...pache/struts/edit/model
exclude-parameters/src/m...pache/struts/edit/model
38:126 (75%)
22:117 (83%)
view
44 x 2 spring-struts/src/main/j...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
11:93 (100%)
11:93 (100%)
view
44 x 2 spring-struts/src/main/j...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
11:93 (100%)
11:93 (100%)
view
44 x 2 themes-override/src/main...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
11:93 (100%)
11:93 (100%)
view
35 x 2 preparable-interface/src...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 bean-validation/src/main...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
40:107 (56%)
22:92 (79%)
view
35 x 2 exclude-parameters/src/m...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 bean-validation/src/main...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
40:107 (56%)
22:92 (79%)
view
35 x 2 preparable-interface/src...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 exclude-parameters/src/m...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 exclude-parameters/src/m...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 control-tags/src/main/ja...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
24:91 (62%)
22:92 (79%)
view
35 x 2 preparable-interface/src...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
26:96 (62%)
22:92 (79%)
view
35 x 2 control-tags/src/main/ja...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
24:91 (62%)
22:92 (79%)
view
35 x 2 bean-validation/src/main...pache/struts/edit/model
themes-override/src/main...pache/struts/edit/model
40:107 (56%)
22:92 (79%)
view
35 x 2 control-tags/src/main/ja...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
24:91 (62%)
22:92 (79%)
view
32 x 2 themes-override/src/main...ache/struts/edit/action
themes/src/main/java/org/apache/struts/edit/action
19:92 (100%)
20:93 (100%)
view
29 x 2 spring-struts/src/main/j...ache/struts/edit/action
themes-override/src/main...ache/struts/edit/action
24:91 (80%)
25:92 (90%)
view
29 x 2 spring-struts/src/main/j...ache/struts/edit/action
themes/src/main/java/org/apache/struts/edit/action
24:91 (80%)
26:93 (90%)
view
28 x 2 form-tags/src/main/java/...pache/struts/edit/model
form-xml-validation/src/...pache/struts/edit/model
18:71 (56%)
21:74 (43%)
view
27 x 2 exclude-parameters/src/m...ache/struts/edit/action
preparable-interface/src...ache/struts/edit/action
1:33 (100%)
1:33 (100%)
view
26 x 2 bean-validation/src/main...che/struts/edit/service
exclude-parameters/src/m...che/struts/edit/service
15:49 (100%)
15:56 (100%)
view
26 x 2 bean-validation/src/main...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
15:49 (100%)
15:56 (100%)
view
26 x 2 control-tags/src/main/ja...che/struts/edit/service
exclude-parameters/src/m...che/struts/edit/service
15:46 (100%)
15:56 (100%)
view
26 x 2 exclude-parameters/src/m...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
15:56 (100%)
15:56 (100%)
view
26 x 2 bean-validation/src/main...che/struts/edit/service
control-tags/src/main/ja...che/struts/edit/service
15:49 (100%)
15:46 (100%)
view
26 x 2 control-tags/src/main/ja...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
15:46 (100%)
15:56 (100%)
view
26 x 2 themes-override/src/main.../WEB-INF/template/xhtml
themes-override/src/main.../WEB-INF/template/xhtml
1:26 (89%)
1:26 (96%)
view
25 x 2 control-tags/src/main/re...ache/struts/edit/action
preparable-interface/src...ache/struts/edit/action
2:32 (96%)
3:33 (92%)
view
25 x 2 control-tags/src/main/re...ache/struts/edit/action
exclude-parameters/src/m...ache/struts/edit/action
2:32 (96%)
3:33 (92%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
message-resource/src/mai...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 message-resource/src/mai...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
interceptors/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 exception-handling/src/m...e/struts/register/model
form-validation/src/main...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 themes-override/src/main...WEB-INF/template/simple
themes-override/src/main...WEB-INF/template/simple
23:46 (26%)
63:86 (26%)
view
24 x 2 interceptors/src/main/ja...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 themes-override/src/main...WEB-INF/template/simple
themes-override/src/main...WEB-INF/template/simple
1:24 (8%)
1:24 (43%)
view
24 x 2 form-validation/src/main...e/struts/register/model
interceptors/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 form-validation/src/main...e/struts/register/model
unit-testing/src/main/ja...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 interceptors/src/main/ja...e/struts/register/model
message-resource/src/mai...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
24 x 2 form-validation/src/main...e/struts/register/model
message-resource/src/mai...e/struts/register/model
9:60 (100%)
9:60 (100%)
view
23 x 2 debugging-struts/src/mai...truts/helloworld/action
form-validation/src/main...truts/helloworld/action
14:71 (100%)
14:74 (100%)
view
23 x 2 exclude-parameters/src/main/webapp
preparable-interface/src/main/webapp
1:26 (100%)
1:26 (100%)
view
Duplicated Units
The list of top 11 duplicated units.
See data for all 11 unit duplicates...
Size#FoldersFilesLinesCode
10 x 4 exclude-parameters/src/m...pache/struts/edit/model
control-tags/src/main/ja...pache/struts/edit/model
preparable-interface/src...pache/struts/edit/model
bean-validation/src/main...pache/struts/edit/model
89:102 
84:95 
89:102 
100:111 
view
10 x 4 exclude-parameters/src/m...che/struts/edit/service
control-tags/src/main/ja...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
bean-validation/src/main...che/struts/edit/service
22:37 
20:31 
22:37 
20:31 
view
9 x 3 interceptors/src/main/ja.../struts/register/action
form-validation/src/main.../struts/register/action
message-resource/src/mai.../struts/register/action
28:50 
27:49 
27:49 
view
9 x 4 exclude-parameters/src/m...che/struts/edit/service
control-tags/src/main/ja...che/struts/edit/service
preparable-interface/src...che/struts/edit/service
bean-validation/src/main...che/struts/edit/service
46:58 
37:47 
46:58 
39:51 
view
8 x 3 themes-override/src/main...pache/struts/edit/model
spring-struts/src/main/j...pache/struts/edit/model
themes/src/main/java/org/apache/struts/edit/model
85:95 
85:95 
85:95 
view
8 x 3 themes-override/src/main...che/struts/edit/service
spring-struts/src/main/j...che/struts/edit/service
themes/src/main/java/org...che/struts/edit/service
19:30 
19:30 
19:30 
view
7 x 5 themes-override/src/main...ache/struts/edit/action
exclude-parameters/src/m...ache/struts/edit/action
spring-struts/src/main/j...ache/struts/edit/action
control-tags/src/main/ja...ache/struts/edit/action
themes/src/main/java/org/apache/struts/edit/action
77:87 
80:90 
76:86 
61:71 
78:88 
view
7 x 3 themes-override/src/main...che/struts/edit/service
spring-struts/src/main/j...che/struts/edit/service
themes/src/main/java/org...che/struts/edit/service
39:49 
39:49 
39:49 
view
7 x 3 form-xml-validation/src/...ache/struts/edit/action
preparable-interface/src...ache/struts/edit/action
bean-validation/src/main...ache/struts/edit/action
57:66 
81:91 
66:75 
view
6 x 6 debugging-struts/src/mai...truts/helloworld/action
form-validation/src/main...truts/helloworld/action
message-resource/src/mai...truts/helloworld/action
coding-actions/src/main/...truts/helloworld/action
exception-handling/src/m...truts/helloworld/action
form-processing/src/main...truts/helloworld/action
52:64 
52:67 
52:67 
48:60 
52:67 
52:64 
view
6 x 2 rest-angular/src/main/webapp/js/controllers
rest-angular/src/main/webapp/js/controllers
33:40 
34:41 
view