Skip to content

[MSHARED-861] remove unreachable package - #17

Merged
elharo merged 1 commit into
masterfrom
unused
Mar 8, 2020
Merged

elharo merged 1 commit into
masterfrom
unused

Conversation

@elharo

@elharo elharo commented Mar 8, 2020

Copy link
Copy Markdown
Contributor

@michael-o None of the model classes in the reflection package are public. Thus unless someone is doing some really skanky reflection hacks that won't work in java 9+, this is completely unused. My best guess is that someone meant to do something with this, but abandoned it before making it public.

@elharo
elharo requested a review from michael-o March 8, 2020 13:49
@elharo elharo changed the title remove unreachable packge remove unreachable package Mar 8, 2020
@michael-o

Copy link
Copy Markdown
Member

This requires a JIRA issue first.

@michael-o

Copy link
Copy Markdown
Member

Did you actually try the tests on Java 11+? Did they fail?

@elharo elharo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The existing tests would not fail on Java 11+. However since these classes are non-public the only way to use them would be to use reflection to cast away the access control, or to add classes directly to these packages. Neither is likely, and both should fail in Java 11.

@elharo elharo changed the title remove unreachable package [MSHARED-861] remove unreachable package Mar 8, 2020

@elharo elharo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@elharo
elharo merged commit a950ff4 into master Mar 8, 2020
@elharo
elharo deleted the unused branch March 8, 2020 17:51
@jira-importer

Copy link
Copy Markdown

Resolve #275

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.

3 participants