Skip to content
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

Closed
wants to merge 8 commits into from
Closed

Conversation

SoniEx2
Copy link
Contributor

@SoniEx2 SoniEx2 commented Oct 27, 2016

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?)

@codecov-io
Copy link

codecov-io commented Oct 27, 2016

Current coverage is 13.88% (diff: 17.07%)

Merging #229 into master will increase coverage by 0.12%

@@             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   

Powered by Codecov. Last update 70a4f22...4f5cef8

Copy link
Member

@ExE-Boss ExE-Boss left a comment

Choose a reason for hiding this comment

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

Looks good.

@ExE-Boss ExE-Boss mentioned this pull request Dec 17, 2016
10 tasks
Copy link
Contributor

@RX14 RX14 left a 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));
Copy link
Contributor

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.

Copy link
Member

@ExE-Boss ExE-Boss Dec 22, 2016

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);
}

@ExE-Boss ExE-Boss added breaking change This is going to break stuff in progress Pull requests that are not yet ready to be merged and issues that are being worked on. minecraft 1.7 Affects Minecraft 1.7.x wrappers minecraft 1.8 Affects Minecraft 1.8.x wrappers labels Jan 7, 2017
ExE-Boss added a commit to EB-Archive/NOVA-Core that referenced this pull request Jan 7, 2017
@ExE-Boss ExE-Boss removed minecraft 1.7 Affects Minecraft 1.7.x wrappers minecraft 1.8 Affects Minecraft 1.8.x wrappers labels Jan 7, 2017
@ExE-Boss ExE-Boss mentioned this pull request Jan 7, 2017
9 tasks
@ExE-Boss
Copy link
Member

ExE-Boss commented Jan 8, 2017

Due to inactivity of the author, I’m taking over this PR at #238.

@ExE-Boss ExE-Boss closed this Jan 8, 2017
@RX14 RX14 removed the in progress Pull requests that are not yet ready to be merged and issues that are being worked on. label Jan 8, 2017
@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Jan 8, 2017

Can this be re-opened?

@ExE-Boss ExE-Boss reopened this Jan 8, 2017
@RX14 RX14 added the in progress Pull requests that are not yet ready to be merged and issues that are being worked on. label Jan 8, 2017
@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Jan 9, 2017

The game runs, at least. Not sure how to test if it actually works tho.

@RX14 RX14 closed this Feb 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This is going to break stuff in progress Pull requests that are not yet ready to be merged and issues that are being worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Typed identifiers
4 participants