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

[Improvement] switch statements missing default #4305

Open
justinmclean opened this issue Jul 30, 2024 · 10 comments
Open

[Improvement] switch statements missing default #4305

justinmclean opened this issue Jul 30, 2024 · 10 comments
Assignees
Labels
good first issue Good for newcomers improvement Improvements on everything

Comments

@justinmclean
Copy link
Member

What would you like to be improved?

Switch statements missing default:

  • fillFilesetPOBuilderParentEntityId in FilesetMetaService.java
  • fillSchemaPOBuilderParentEntityId in SchemaMetaService.java
  • fillTablePOBuilderParentEntityId in TableMetaService.java
  • fillTopicPOBuilderParentEntityId in TopicMetaService.java

How should we improve?

add default

@justinmclean justinmclean added good first issue Good for newcomers improvement Improvements on everything labels Jul 30, 2024
@khmgobe
Copy link
Contributor

khmgobe commented Jul 30, 2024

Let me do it!

@justinmclean
Copy link
Member Author

Note that the check topic call does check that the level length is 3

@khmgobe
Copy link
Contributor

khmgobe commented Jul 30, 2024

Note that the check topic call does check that the level length is 3

@justinmclean
What should I assign as the default?

@justinmclean
Copy link
Member Author

I would log an error, it would not be possible for this to currently happen, but it might be possible at some point.

@khmgobe
Copy link
Contributor

khmgobe commented Jul 30, 2024

check topic call

I will add a default statement for the rest except check topic call.

@khmgobe
Copy link
Contributor

khmgobe commented Jul 30, 2024

I would log an error, it would not be possible for this to currently happen, but it might be possible at some point.

ok Thanks!

@justinmclean
Copy link
Member Author

@khmgobe Do you still want to work on this?

@manoharbvk
Copy link

Hi I am new to open source contributions, and since this issue is still open, I added default statements to the necessary places. It would be great if you can have a look at this - #4668
Thanks

@khmgobe
Copy link
Contributor

khmgobe commented Aug 25, 2024

@justinmclean

It's okay for someone else to contribute.

@manoharbvk
Copy link

@justinmclean There are some issues on the Linux system on my side, and this is not running... If anyone else is interested in contributing to this, please let them do so. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers improvement Improvements on everything
Projects
None yet
Development

No branches or pull requests

3 participants