-
Notifications
You must be signed in to change notification settings - Fork 23
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
String -> Identifier. WIP. #229
Conversation
Current coverage is 13.88% (diff: 17.07%)@@ master #229 diff @@
==========================================
Files 387 394 +7
Lines 10839 10993 +154
Methods 0 0
Messages 0 0
Branches 1547 1561 +14
==========================================
+ Hits 1491 1526 +35
- Misses 9271 9383 +112
- Partials 77 84 +7
|
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.
Looks good.
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.
Please fix the TODOs you mentioned, and test.
|
||
@Override | ||
public boolean equals(Object o) { | ||
return this == o || (o != null && getClass() == o.getClass() && id.equals(((AbstractIdentifier) o).id)); |
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.
This boolean expression is quite complex, maybe you could expand the code out to make it more readable.
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.
It could be done like this to make it more readable:
public boolean equals(Object other) {
if (other == this) return true;
if (other == null || getClass() != other.getClass()) return false;
return Objects.equals(id, ((AbstractIdentifier)other).id);
}
Due to inactivity of the author, I’m taking over this PR at #238. |
Can this be re-opened? |
The game runs, at least. Not sure how to test if it actually works tho. |
This closes #227. Depends on #226 (not for any technical reasons tho).
Still a lot of things to work out, see all the TODOs and FIXMEs scattered across the code.Still a few things to work out. (How do I test this in-game?)