Skip to content

Implementation of JMove algorithm #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Implementation of JMove algorithm #49

wants to merge 14 commits into from

Conversation

emironovich
Copy link

JMove algorithm suggests Move Method refactoring using static dependencies established by methods.

Thiss an implementation of this algorithm and dependencies sets. The ability of making suggested refactorings is not checked wich may be an issue.

@emironovich emironovich requested a review from jzuken May 15, 2018 10:18
|| isSetter(curMethod)) //todo: check if we need this check here and not in other place
continue;
double curSimilarity = calculateSimilarity(curMethod, curClass, nameToDependencies);
Map<ClassEntity, Double> potentialClasses = new HashMap<>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no need to store all potential target classes, you can simply introduce counter variable and use single potential class entity

}

private boolean fromUtilOrLang (String fullName) {
if(fullName.startsWith("java.lang.") || fullName.startsWith("java.util."))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return fullName.startsWith("java.lang.") || fullName.startsWith("java.util.")

@ujohnny
Copy link
Collaborator

ujohnny commented May 21, 2018

When specifying remote branch for push you should not put remote name there.

  • [new branch] origin/JMove -> origin/origin/JMove

@ujohnny
Copy link
Collaborator

ujohnny commented May 21, 2018

INFO [org.ml_methods_group.algorithm.Algorithm.execute] - JMove started
INFO [org.ml_methods_group.algorithm.JMove.calculateRefactorings] - Starting calculating refactorings
INFO [org.ml_methods_group.algorithm.JMove.calculateRefactorings] - Found 1767 methods and 86 classes
ERROR [org.ml_methods_group.algorithm.Algorithm.execute] - JMove finished with error: java.lang.NullPointerException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants