Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.14 KB | None | 0 0
  1. "C:\Program Files\Java\jdk1.8.0_131\bin\java" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.5\lib\idea_rt.jar=59869:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_131\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\rt.jar;D:\Computer Science Strath\workspace\JavaParser\javaparser\JavaParser\out\production\JavaParser;D:\Computer Science Strath\workspace\JavaParser\javaparser-core-3.6.26.jar" Driver
  2. ****< CODE SMELL ANALYZER >****
  3.  
  4. To analyze the entire test set for any of the following code smells type in its corresponding number:
  5. 1) Long Method
  6. 2) Long Class
  7. 3) Long Parameter List
  8. 4) Switch Statement
  9. 5) Temporary Field
  10. 6) Data Class
  11. 7) Lazy Class
  12. 8) Message Chains
  13. 9) Duplicate Code
  14. 10) Middle Man
  15. --------------------
  16. 11) Show Menu
  17. 12) Exit Application
  18.  
  19. 10
  20.  
  21. Checking class Grid
  22.  
  23. Checking class Grid
  24. Checking for fields of user-defined types...
  25. Checking usage in methods...
  26. 0/0 methods are delegating work to another class
  27.  
  28. Checking class Item
  29.  
  30. Checking class Item
  31. Checking for fields of user-defined types...
  32. Checking usage in methods...
  33. 0/0 methods are delegating work to another class
  34.  
  35. Checking class HuffmanLeaf
  36.  
  37. Checking class HuffmanLeaf
  38. Checking for fields of user-defined types...
  39. Checking usage in methods...
  40. 0/0 methods are delegating work to another class
  41.  
  42. Checking class ValuableStockItem
  43.  
  44. Checking class ValuableStockItem
  45. Checking for fields of user-defined types...
  46. Checking usage in methods...
  47. 0/0 methods are delegating work to another class
  48.  
  49. Checking class Bresenham
  50.  
  51. Checking class Bresenham
  52. Checking for fields of user-defined types...
  53. Checking usage in methods...
  54. 0/0 methods are delegating work to another class
  55.  
  56. Checking class BresenhamPanel
  57. Checking for fields of user-defined types...
  58. Checking usage in methods...
  59. 0/0 methods are delegating work to another class
  60.  
  61. Checking class Manager
  62.  
  63. Checking class Manager
  64. Checking for fields of user-defined types...
  65. Checking usage in methods...
  66. 0/9 methods are delegating work to another class
  67.  
  68. Checking class ManOrBoy
  69.  
  70. Checking class ManOrBoy
  71. Checking for fields of user-defined types...
  72. Checking usage in methods...
  73. 0/0 methods are delegating work to another class
  74.  
  75. Checking class Basket
  76.  
  77. Checking class Basket
  78. Checking for fields of user-defined types...
  79. Checking usage in methods...
  80. 0/0 methods are delegating work to another class
  81.  
  82. Checking class HuffmanCode
  83.  
  84. Checking class HuffmanCode
  85. Checking for fields of user-defined types...
  86. Checking usage in methods...
  87. 0/0 methods are delegating work to another class
  88.  
  89. Checking class NBodySim
  90.  
  91. Checking class NBodySim
  92. Checking for fields of user-defined types...
  93. Checking usage in methods...
  94. 0/0 methods are delegating work to another class
  95.  
  96. Checking class Customer
  97.  
  98. Checking class Customer
  99. Checking for fields of user-defined types...
  100. Checking usage in methods...
  101. Method public String getMobilePhoneNumber() uses a variable of type Phone
  102. 1/1 methods are delegating work to another class
  103. ****************
  104. CODE SMELL FOUND >>> Class Customer is a middle man to class Phone
  105. ****************
  106.  
  107. Checking class Company
  108.  
  109. Checking class Company
  110. Checking for fields of user-defined types...
  111. Checking usage in methods...
  112. 0/0 methods are delegating work to another class
  113.  
  114. Checking class MorpionSolitairePanel
  115.  
  116. Checking class MorpionSolitairePanel
  117. Checking for fields of user-defined types...
  118. Checking usage in methods...
  119. Method public final void start() uses a variable of type Grid
  120. Method public void run() uses a variable of type Grid
  121. Method public void paintComponent(Graphics gg) uses a variable of type Grid
  122. 3/21 methods are delegating work to another class
  123.  
  124. Checking class Chunks
  125.  
  126. Checking class Chunks
  127. Checking for fields of user-defined types...
  128. Checking usage in methods...
  129. 0/0 methods are delegating work to another class
  130.  
  131. Checking class StockItem
  132.  
  133. Checking class StockItem
  134. Checking for fields of user-defined types...
  135. Checking usage in methods...
  136. 0/0 methods are delegating work to another class
  137.  
  138. Checking class Parent
  139.  
  140. Checking class Parent
  141. Checking for fields of user-defined types...
  142. Checking usage in methods...
  143. Method public Intermediate getIntermediate() uses a variable of type Intermediate
  144. 1/1 methods are delegating work to another class
  145. ****************
  146. CODE SMELL FOUND >>> Class Parent is a middle man to class Intermediate
  147. ****************
  148.  
  149. Checking class BarnsleyFernTwo
  150.  
  151. Checking class BarnsleyFernTwo
  152. Checking for fields of user-defined types...
  153. Checking usage in methods...
  154. 0/0 methods are delegating work to another class
  155.  
  156. Checking class HuffmanNode
  157.  
  158. Checking class HuffmanNode
  159. Checking for fields of user-defined types...
  160. Checking usage in methods...
  161. 0/0 methods are delegating work to another class
  162.  
  163. Checking class Client
  164.  
  165. Checking class Client
  166. Checking for fields of user-defined types...
  167. Checking usage in methods...
  168. Method public void something() uses a variable of type Parent
  169. Method public void somethingElse() uses a variable of type Parent
  170. Method public void intermediate() uses a variable of type Parent
  171. 3/3 methods are delegating work to another class
  172. ****************
  173. CODE SMELL FOUND >>> Class Client is a middle man to class Parent
  174. ****************
  175.  
  176. Checking class Luhn
  177.  
  178. Checking class Luhn
  179. Checking for fields of user-defined types...
  180. Checking usage in methods...
  181. 0/0 methods are delegating work to another class
  182.  
  183. Checking class Child
  184.  
  185. Checking class Child
  186. Checking for fields of user-defined types...
  187. Checking usage in methods...
  188. 0/0 methods are delegating work to another class
  189.  
  190. Checking class BarnsleyFern
  191.  
  192. Checking class BarnsleyFern
  193. Checking for fields of user-defined types...
  194. Checking usage in methods...
  195. 0/0 methods are delegating work to another class
  196.  
  197. Checking class AccountDataProvider
  198.  
  199. Checking class AccountDataProvider
  200. Checking for fields of user-defined types...
  201. Checking usage in methods...
  202. Method public Account GetAccount(int id) uses a variable of type Account
  203. 1/1 methods are delegating work to another class
  204. ****************
  205. CODE SMELL FOUND >>> Class AccountDataProvider is a middle man to class Account
  206. ****************
  207.  
  208. Checking class Munchausen
  209.  
  210. Checking class Munchausen
  211. Checking for fields of user-defined types...
  212. Checking usage in methods...
  213. 0/0 methods are delegating work to another class
  214.  
  215. Checking class Test
  216.  
  217. Checking class Test
  218. Checking for fields of user-defined types...
  219. Checking usage in methods...
  220. 0/0 methods are delegating work to another class
  221.  
  222. Checking class Factory
  223.  
  224. Checking class Factory
  225. Checking for fields of user-defined types...
  226. Checking usage in methods...
  227. 0/0 methods are delegating work to another class
  228.  
  229. Checking class SavingsAcc
  230.  
  231. Checking class SavingsAcc
  232. Checking for fields of user-defined types...
  233. Checking usage in methods...
  234. 0/0 methods are delegating work to another class
  235.  
  236. Checking class Chips
  237.  
  238. Checking class Chips
  239. Checking for fields of user-defined types...
  240. Checking usage in methods...
  241. 0/0 methods are delegating work to another class
  242.  
  243. Checking class Intermediate
  244.  
  245. Checking class Intermediate
  246. Checking for fields of user-defined types...
  247. Checking usage in methods...
  248. Method public Child getChild() uses a variable of type Child
  249. 1/2 methods are delegating work to another class
  250.  
  251. Checking class BasicStockItem
  252.  
  253. Checking class BasicStockItem
  254. Checking for fields of user-defined types...
  255. Checking usage in methods...
  256. 0/0 methods are delegating work to another class
  257.  
  258. Checking class HuffmanTree
  259.  
  260. Checking class HuffmanTree
  261. Checking for fields of user-defined types...
  262. Checking usage in methods...
  263. 0/0 methods are delegating work to another class
  264.  
  265. Checking class BoxingTheCompass
  266.  
  267. Checking class BoxingTheCompass
  268. Checking for fields of user-defined types...
  269. Checking usage in methods...
  270. 0/0 methods are delegating work to another class
  271.  
  272. Checking class CipollasAlgorithm
  273.  
  274. Checking class CipollasAlgorithm
  275. Checking for fields of user-defined types...
  276. Checking usage in methods...
  277. 0/0 methods are delegating work to another class
  278.  
  279. Checking class ChqAcc
  280.  
  281. Checking class ChqAcc
  282. Checking for fields of user-defined types...
  283. Checking usage in methods...
  284. 0/0 methods are delegating work to another class
  285.  
  286. Checking class Underling
  287.  
  288. Checking class Underling
  289. Checking for fields of user-defined types...
  290. Checking usage in methods...
  291. Method public void setManager(Manager boss) uses a variable of type Manager
  292. Method public Manager getManager() uses a variable of type Manager
  293. Method public String toString() uses a variable of type Manager
  294. 3/9 methods are delegating work to another class
  295.  
  296. Checking class Account
  297.  
  298. Checking class Account
  299. Checking for fields of user-defined types...
  300. Checking usage in methods...
  301. 0/0 methods are delegating work to another class
  302.  
  303. Checking class Consumer
  304.  
  305. Checking class Consumer
  306. Checking for fields of user-defined types...
  307. Checking usage in methods...
  308. Method public void Get(int id) uses a variable of type AccountManager
  309. 1/1 methods are delegating work to another class
  310. ****************
  311. CODE SMELL FOUND >>> Class Consumer is a middle man to class AccountManager
  312. ****************
  313.  
  314. Checking class AccountManager
  315.  
  316. Checking class AccountManager
  317. Checking for fields of user-defined types...
  318. Checking usage in methods...
  319. Method public Account GetAccount(int id) uses a variable of type AccountDataProvider
  320. 1/1 methods are delegating work to another class
  321. ****************
  322. CODE SMELL FOUND >>> Class AccountManager is a middle man to class AccountDataProvider
  323. ****************
  324.  
  325. Checking class Eertree
  326.  
  327. Checking class Eertree
  328. Checking for fields of user-defined types...
  329. Checking usage in methods...
  330. 0/0 methods are delegating work to another class
  331.  
  332. Checking class Nuts
  333.  
  334. Checking class Nuts
  335. Checking for fields of user-defined types...
  336. Checking usage in methods...
  337. 0/0 methods are delegating work to another class
  338.  
  339. Checking class SeasonalStockItem
  340.  
  341. Checking class SeasonalStockItem
  342. Checking for fields of user-defined types...
  343. Checking usage in methods...
  344. 0/0 methods are delegating work to another class
  345.  
  346. Checking class Account
  347.  
  348. Checking class Account
  349. Checking for fields of user-defined types...
  350. Checking usage in methods...
  351. 0/0 methods are delegating work to another class
  352.  
  353. Checking class FloodFill
  354.  
  355. Checking class FloodFill
  356. Checking for fields of user-defined types...
  357. Checking usage in methods...
  358. 0/0 methods are delegating work to another class
  359.  
  360. Checking class Phone
  361.  
  362. Checking class Phone
  363. Checking for fields of user-defined types...
  364. Checking usage in methods...
  365. 0/0 methods are delegating work to another class
  366.  
  367. Checking class MorpionSolitaire
  368.  
  369. Checking class MorpionSolitaire
  370. Checking for fields of user-defined types...
  371. Checking usage in methods...
  372. 0/3 methods are delegating work to another class
  373.  
  374. Test classes can be found for manual inspection in the resource folder (cut) of the project
  375. Run the application again and try a different code smell!
  376. Exiting analyzer..
  377.  
  378. Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement