-
Notifications
You must be signed in to change notification settings - Fork 13
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
crossoverのバグを修正 #793
crossoverのバグを修正 #793
Conversation
…strategiess work fine
public boolean equals(final Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
final Base base = (Base) o; | ||
return Objects.equals(getTargetLocation(), base.getTargetLocation()) && | ||
Objects.equals(getOperation(), base.getOperation()); | ||
} |
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.
In this Pull Request, this code fragment in In this Pull Request, above code fragment is added to below clone set,
kGenProg/src/main/java/jp/kusumotolab/kgenprog/project/build/JavaBinaryObject.java
Lines 160 to 169 in 5dea556
public boolean equals(final Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
final JavaBinaryObject that = (JavaBinaryObject) o; | |
return getKey().equals(that.getKey()); | |
} |
public boolean equals(final Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
final Variable variable = (Variable) o; | |
return isFinal == variable.isFinal && name.equals(variable.name) && fqn.equals(variable.fqn); | |
} |
kGenProg/src/main/java/jp/kusumotolab/kgenprog/project/build/JavaSourceObject.java
Lines 87 to 96 in 5dea556
public boolean equals(final Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
final JavaSourceObject that = (JavaSourceObject) o; | |
return getKey().equals(that.getKey()); | |
} |
Why don't you merge it?
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.
数点コメントさせていただきました.
修正よろしくお願いします.
src/main/java/jp/kusumotolab/kgenprog/ga/crossover/CrossoverAdaptor.java
Outdated
Show resolved
Hide resolved
src/main/java/jp/kusumotolab/kgenprog/ga/crossover/CrossoverAdaptor.java
Outdated
Show resolved
Hide resolved
src/main/java/jp/kusumotolab/kgenprog/project/jdt/JDTASTLocation.java
Outdated
Show resolved
Hide resolved
src/test/java/jp/kusumotolab/kgenprog/ga/crossover/CascadeCrossoverTest.java
Outdated
Show resolved
Hide resolved
src/test/java/jp/kusumotolab/kgenprog/ga/crossover/CascadeCrossoverTest.java
Outdated
Show resolved
Hide resolved
src/test/java/jp/kusumotolab/kgenprog/ga/crossover/CascadeCrossoverTest.java
Outdated
Show resolved
Hide resolved
src/test/java/jp/kusumotolab/kgenprog/ga/crossover/CascadeCrossoverTest.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #793 +/- ##
=========================================
Coverage 78.98% 78.99%
- Complexity 926 939 +13
=========================================
Files 149 151 +2
Lines 3640 3684 +44
Branches 265 271 +6
=========================================
+ Hits 2875 2910 +35
- Misses 664 667 +3
- Partials 101 107 +6
Continue to review full report at Codecov.
|
丁寧にthx |
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.
修正ありがとうございます.
他には問題ないように思うのでマージします.
お疲れ様でした.
resolve #790 #755
やったこと
細かい修正