• DocumentCode
    1787795
  • Title

    Two level dynamic approach for Feature Envy detection

  • Author

    Kumar, Sudhakar ; Chhabra, Jitender Kumar

  • Author_Institution
    Dept. of Comput. Eng., Nat. Inst. of Technol. Kurukshetra, Kurukshetra, India
  • fYear
    2014
  • fDate
    26-28 Sept. 2014
  • Firstpage
    41
  • Lastpage
    46
  • Abstract
    Refactoring leads to more maintainable software. To refactor the code, it must be known which part of code needs to be refactored. For this purpose code smells are used. Detecting code smells in itself is a challenging task. In this paper we propose a technique based on dynamic analysis for the detection of Feature Envy code smell. Feature envy is a method level smell and occurs when a method is more interested in another class than its own class. Previous approaches detects feature envy by analyzing each method in the system, which incurs an overhead as those methods which are closely bounded to their classes are included in the detection mechanism. To tackle this problem, we have devised a two level mechanism. First level filters out the methods which are suspects of being feature envious and second level analyzes those suspects to identify the actual culprits. The proposed technique has been evaluated and compared with existing techniques.
  • Keywords
    software maintenance; system monitoring; code refactoring; detection mechanism; dynamic analysis; feature envy code smell detection; first level filters; maintainable software; two level dynamic approach; Computers; Feature extraction; Instruments; Java; Measurement; Search problems; Software; code smell; dynamic analysis; object-oriented programming; software maintenance;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computer and Communication Technology (ICCCT), 2014 International Conference on
  • Conference_Location
    Allahabad
  • Print_ISBN
    978-1-4799-6757-5
  • Type

    conf

  • DOI
    10.1109/ICCCT.2014.7001467
  • Filename
    7001467