Giter VIP home page Giter VIP logo

jdeodorant's Introduction

JDeodorant

JDeodorant is an Eclipse plug-in that detects design problems in Java software, known as code smells, and recommends appropriate refactorings to resolve them.

For the moment, the tool supports five code smells, namely Feature Envy, Type/State Checking, Long Method, God Class and Duplicated Code.

  • Feature Envy problems can be resolved by appropriate Move Method refactorings.
  • Type Checking problems can be resolved by appropriate Replace Conditional with Polymorphism refactorings.
  • State Checking problems can be resolved by appropriate Replace Type code with State/Strategy refactorings.
  • Long Method problems can be resolved by appropriate Extract Method refactorings.
  • God Class problems can be resolved by appropriate Extract Class refactorings.
  • Duplicated Code problems can be resolved by appropriate Extract Clone refactorings.

JDeodorant is the outcome of research conducted in the Software Refactoring Lab at the Department of Computer Science and Software Engineering, Concordia University, Canada and the Software Engineering Group at the Department of Applied Informatics, University of Macedonia, Thessaloniki, Greece.

Installation & Configuration

Please follow the steps described in this guide.

JDeodorant can be easily installed in your Eclipse IDE using the Eclipse Marketplace Client.

To enable the analysis of large Java projects, edit the eclipse.ini file inside the Eclipse installation folder and increase the value for the Xmx option (maximum size of the memory allocation pool).

-vmargs
-Xms128m
-Xmx4096m
-XX:PermSize=128m

Tutorials

Duplicated Code
Code Smell Visualization
God Class

Research

If you are interested to learn how exactly JDeodorant works, please have a look at the following papers:

Duplicated Code
  • Nikolaos Tsantalis, Davood Mazinanian, and Shahriar Rostami, "Clone Refactoring with Lambda Expressions," 39th International Conference on Software Engineering (ICSE'2017), Buenos Aires, Argentina, May 20-28, 2017.
  • Nikolaos Tsantalis, Davood Mazinanian, and Giri Panamoottil Krishnan, "Assessing the Refactorability of Software Clones," IEEE Transactions on Software Engineering, vol. 41, no. 11, pp. 1055-1090, November 2015.
  • Giri Panamoottil Krishnan, and Nikolaos Tsantalis, "Unification and Refactoring of Clones," pp. 104-113, IEEE Conference on Software Maintenance, Reengineering and Reverse Engineering (CSMR-WCRE'2014), 2014 Software Evolution Week, Antwerp, Belgium, February 3-7, 2014.
  • Giri Panamoottil Krishnan, and Nikolaos Tsantalis, "Refactoring Clones: An Optimization Problem," pp. 360-363, 29th IEEE International Conference on Software Maintenance (ICSM'2013), ERA Track, Eindhoven, The Netherlands, September 22-28, 2013.
  • Davood Mazinanian, Nikolaos Tsantalis, Raphael Stein, and Zackary Valenta, "JDeodorant: Clone Refactoring," 38th International Conference on Software Engineering (ICSE'2016), Formal Tool Demonstration Session, Austin, Texas, USA, May 14-22, 2016.
  • Nikolaos Tsantalis, "JDeodorant: Clone Refactoring Support beyond IDEs," IEEE Software Blog, October 16, 2016.
Long Method
God Class
Type/State Checking
Feature Envy

If you are using JDeodorant in your research, please cite at least one of the aforementioned papers.

jdeodorant's People

Contributors

andyqiao1985 avatar dmazinanian avatar fokaefs avatar giripk2002 avatar kdextras avatar onewhl avatar raphistein avatar teohaik avatar tsantalis avatar zackaryvalenta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.