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

Removing UNKNOWN from OSMType, throw Exception instead! #198

Merged
merged 6 commits into from
Apr 29, 2020

Conversation

rtroilo
Copy link
Member

@rtroilo rtroilo commented Sep 24, 2019

Changes proposed in this pull request:

Type of change

Please delete if not relevant:

  • New feature (non-breaking change which adds functionality)

Description

  • Remove type UNKOWN from OSMType and makes more use of the default case in switch statements instead

Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

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

see inline comments

@tyrasd
Copy link
Member

tyrasd commented Feb 26, 2020

ping?

I agree that this would be a good change for code clarity. For example, it would have allowed to write https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/libs/ohsome-filter/blob/51227047/src/main/java/org/heigit/ohsome/filter/TypeFilter.java#L41-42 in a more simplified way. 😉

But there are still two minor comments that need to be clarified before we can go on with merging this.

@rtroilo
Copy link
Member Author

rtroilo commented Feb 28, 2020

I'm not sure which minor comments you refer, but I think I solved them already

why do you not throw an exception

Now there is an IllegalArgumentException instead of a NullPointerException

And thank you for fixing the Typo ;-)

@tyrasd tyrasd merged commit 8fa6abd into master Apr 29, 2020
@tyrasd tyrasd deleted the remove-unknown-type branch April 29, 2020 16:50
tyrasd added a commit that referenced this pull request May 11, 2020
tyrasd added a commit that referenced this pull request May 11, 2020
@joker234 joker234 restored the remove-unknown-type branch May 11, 2020 14:54
@tyrasd tyrasd deleted the remove-unknown-type branch May 11, 2020 14:55
tyrasd added a commit that referenced this pull request May 14, 2020
joker234 pushed a commit that referenced this pull request Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants