-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
… from MethodEntity and other way around)
…added localVariables set into Dependencies
…ding new statements + a little renaming
|| 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<>(); |
There was a problem hiding this comment.
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.")) |
There was a problem hiding this comment.
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.")
When specifying remote branch for push you should not put remote name there.
|
INFO [org.ml_methods_group.algorithm.Algorithm.execute] - JMove started |
(plus there are a lot of commented lines for debuging)
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.