Upcoming SlideShare
Loading in …5
×

# Example of-method-with-cyclomatic-complexity-17

1,935 views

Published on

Example of Java method with cyclomatic complexity 17

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
Your message goes here
• Be the first to comment

• Be the first to like this

No Downloads
Views
Total views
1,935
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Example of-method-with-cyclomatic-complexity-17

1. 1. ; *+5 5 ,
2. 2. #-#
3. 3. #-2
4. 4. * #*
5. 5. ) \$( #*
6. 6. ,
7. 7. 2\$ #*
8. 8. .
9. 9. \$02
10. 10. \$0+
11. 11. .
12. 12. \$#*
13. 13. .
14. 14. \$#-
15. 15. 1 \$5
16. 16. ::
17. 17. I: 64
18. 18. H 7
19. 19. 8\$-# % \$--
20. 20. ) \$0 \$--
21. 21. ,
22. 22. (+ \$--
23. 23. = /
24. 24. / #* \$--
25. 25. =
26. 26. 78 , +5+# \$--
27. 27. .
28. 28. \$+
29. 29. .
30. 30. \$*
31. 31. (0
32. 32. ) \$ (0
33. 33. ,
34. 34. 2- (0
35. 35. ; *+5 5 1
36. 36. F
37. 37. (
38. 38. )
39. 39. !
40. 40. 2! 2!
41. 41. B 37 2 B M 2= ! 7 ? 2 F # ? F ? ! F ( FA2 0, ) % FA2 2 @ % ! . 7F 0! 7 ! .- / 7 ! / 7 2 / # ( ) B 37 2 \$B M 2= ! 7% 7 / 7 2 F / 7 G.6!\$% ! F / 7 G.6!\$% # 2 F G \$! % # ! F G \$! % # / % \$% ## 0! / \$% # #( #) ? \$ #
42. 42. ! C . 7F \$% % / % \$% % # 3
43. 43. \$ 2 F 22=\$7 G.6!\$%5 7 C.6!\$%%% (2 F HI\$7 G.6!\$%57 F-\$%57 F- \$%%
44. 44. ) !!6 \$2 F % \$ ! F 22=\$7 G.6!\$%57 C.6!\$%%% ! F HI\$7 G.6!\$%57 F-\$%57 F- \$%% ( !!6 \$! F % ( ( (# 3
45. 45. ( / 0, F \$7 G.6!\$%57 C.6!\$%% (( \$ / ; :\$% 88% () ? . / \$? % \$ % ( . HI\$7 G.6!\$%57 F-\$%57 F- \$%% ( !!6 \$.% ( ) ) ) 3
46. 46. )# \$ / ; :\$% 88% ) FA2 / \$FA2 % \$% )( \$ A7\$%//% )) / F \$7 G.6!\$%57 C.6!\$%% ) ) \$ / ; :\$% 88% ) ? . / \$? % \$ % . HI\$7 G.6!\$%57 F-\$%57 F- \$%% !!6 \$.% # ( ! . 7F / ) * ? 8 ! % \$+
47. 47. % C . 7F 3!\$% # ! . 7F ( )
48. 48. % C . 7F \$% C . 7F \$% ! . 7F
49. 49. ! F \$? .%
50. 50. # F / 2 F 2 F / . (2 F HI\$7 G.6!\$%57 F-\$%57 F- \$%% ) 2 / *
51. 51. ++
52. 52. ! F \$% 2 F / 7 G.6!\$% # ! .- / 2 / ( ) *
53. 53. +\$ ! ? +8
54. 54. ? F \$% 2 F # (
55. 55. )
56. 56. ! C F \$? .% ! F / . ! / *
57. 57. ! C F \$% ( ! F / 7 G.6!\$% ) ! .- / ! / # *
58. 58. ! ? ##
59. 59. ? C F \$% # ! F #( #) # * \$ #
60. 60. % @ \$%
61. 61. # * % ? (
62. 62. FA2 E, \$% ) 0, , 1
63. 63. F 777 FBFD/,LOO -9 (
64. 64. ! ! .B3M!\$2
65. 65. 5 7 % ( : / 7 Q- \$%8 (# D :: / D \$:% ( :- / 0 \$:: \$%% (( C . 7F \$% () ( .
66. 66. ( \$! .-//% (2 F HI\$7 G.6!\$%57 F-\$%57 F- \$%% )! F HI\$7 G.6!\$%57 F-\$%57 F- \$%% ) ! .-\$2 F HH\$%52 F II\$%5! F HH\$%5! F II\$%% ) )# ) .
67. 67. )
68. 68. =
69. 69. )( \$ / ;! . 7F :\$% 88% )) ? . / \$? %! . 7F \$% ) \$. \$% O \$7 2%% ) 0@2 \$. HH\$%5. II\$%5(
70. 70. :-5(
71. 71. :-% ) ! . \$. G \$%5. HH\$%8(5. II\$%8(5% 0 / # /0 2 \$. \$%% \$-
72. 72. % ( ! . \$5. HH\$%5. II\$%5% ) .
73. 73. \$ //% \$ / ; :\$% 88% # FA2 . / \$FA2 % \$% \$. A7\$%//% ( \$ / ;. :\$%1 88%
74. 74. ) ? . / \$? %. \$ % ? . / \$? %. \$ 8 % . HI\$7 G.6!\$%57 F-\$%57 F- \$%% . HI\$7 G.6!\$%57 F-\$%57 F- \$%% ! .-\$. HH\$%5. II\$%5. HH\$%5. II\$%% # ( ) , 1
75. 75. F 8\$
76. 76. ! ! .B3M\$2
77. 77. 5 7 % \$55% 0, ! .A2 \$5 57 G.6!\$%57 F-\$%57 F- \$%57 Q- \$%% # \$0! :\$%9/% E!\$% ! .A2 \$5 57 G.6!\$%57 F-\$%57 F- \$%5% ( ) \$ //% \$ / ; :\$% 88% FA2 . / \$FA2 % \$% . ! .A2 \$5 57 G.6!\$%57 F-\$%57 F- \$%57 Q- \$%% # \$2 % 2 F ! .F \$57 G.6!\$%57 F- \$%57 F-\$%57 Q- \$%% ( ) \$! %! F ! .F \$57 G.6!\$%57 F- \$%57 F-\$%57 Q- \$%% \$2 LL ! % ! .-\$2 F HH\$%52 F II\$%5! F HH\$%5! F II\$%%
78. 78. # A ? ()
79. 79. ! !!E, \$? .% 0, !!6 \$.% # A #
80. 80. ! !!@ \$FA2 %## !!6 \$ %# #(#) A ? 0,
81. 81. #
82. 82. ! !!,F@ \$? .5 C5 % # FA2 \$ / ; :\$% 88% / \$FA2 % \$% \$ C\$%// C%# 6 \$.5% / ( )
83. 83. . (+(
84. 84. ! E, A\$FA2 . %( 0, / . (# ((( 1 ()(
85. 85. C 2\$? .%( \$2 F O \$7 G.6!\$%%% ( 1 ) ) 2 F C 2\$.%) )# ))(
86. 86. 7 2 \$%)) 2 ) ))
87. 87. 7 ! \$% !
88. 88. #
89. 89. ! @ \$FA2 .% ( 6 \$.% )
90. 90. ! @ \$ % \$ / ; :\$% 88% FA2 / \$FA2 % \$% \$ G \$%//% 6 \$%# / ( )
91. 91. C2 \$% !2 / F / F - \$% F / F -\$%# / 2 F - \$% / 2 F -\$%() \$ N F LL F//% !2 / B EF EF\$% \$ N F LL NF% !2 / B EF EF\$(% \$ F// LL NF% !2 / B EF EF\$% \$ ; F LL NF% !2 / B EF EF\$ #(%# \$ ; F LL F//% !2 / B EF EF\$ %# \$ ; F LL ;F% !2 / B EF EF\$(%# \$ F// LL ;F% !2 / B EF EF\$ %## \$ N F LL ;F% !2 / B EF EF\$# (%##( !2 / ! !K@ ! \$!2 %#) !2 # ## / 9 +#
92. 92. M \$%# # # 7 / # F / F - \$%# ( F / F -\$%# ) C / ! F - \$%# C / ! F -\$%# # # .M ) PP
93. 93. .%%
94. 94. ) % ()
95. 95. ()\$9\$
96. 96. # \$ CN F LL B EF 7\$B EF 7\$C5F%%;B EF EF\$(%% 7 / B EF EF\$% # \$ CN F LL CNF% 7 / B EF EF\$(% ## .%% ) PP
97. 97. .M
98. 98. ) % ()
99. 99. ()\$;9\$ # \$B EF 7\$B EF 7\$ C5 F%%;B EF EF\$(% LL CNF%7 / B EF EF\$% #( \$ C; F LL CNF% 7 / B EF EF\$ #(% #) .A ) PP
100. 100. )%%
101. 101. . % ()
102. 102. ()\$-89\$ # \$ C; F LLB EF 7\$B EF 7\$C5F%%;B EF EF\$(% % 7 / B EF EF\$ % # \$ C; F LL C;F% 7 / B EF EF\$(% # )%% . PP
103. 103. .A
104. 104. ) % ()
105. 105. ()\$459\$ ## \$B EF 7\$B EF 7\$ C5 F%%;B EF EF\$(% LL C;F%7 / B EF EF\$ % ## \$ CN F LL C;F% 7 / B EF EF\$# (% ## ### ## 7 / ! !K@ ! \$7 % ##( 7 ##) ## ## ## #
106. 106. ! !!G.E!\$ 0! C% # ? ! / ? \$2 F 5 % # 0 0 C / 0\$0! C% ## 0! \$0 C5! % # #( #)
107. 107. ! ! E!\$0 0! C5? % # 0! \$0! C5% # # #(
108. 108. ! ! E!\$ 0! C% #( 0 0 C / 0\$0! C% #( 0! \$0 C% #(# \$0!% #( #(( #()
109. 109. ! ! E!\$% #(
110. 110. \$Q ) QDDD QFFFFF\$ #( 0! 2 \$% #(
111. 111. #) #) #) #)# . . ) #)(
112. 112. FA2 E!\$% #)) % / % \$% #) / 0! \$%
113. 113. #) \$ B6 \$%%#) !!6 \$\$? % 6 \$%%# ## FA2 FE! / FA2 \$ 5 %# # FE!# # (# )##