Skip to content

cleanup ClassFileImporterAnnotationsTest and minor other locations - #1717

Open
StefanGraeber wants to merge 3 commits into
mainfrom
feature/1382_preparations
Open

StefanGraeber wants to merge 3 commits into
mainfrom
feature/1382_preparations

Conversation

@StefanGraeber

Copy link
Copy Markdown
Contributor

This a small preparation change for #1382
ClassFileImporterAnnotationsTest will be extended with many more new test cases for TYPE_USE annotations.
To prepare these new tests, the test class is migrated to junit5, grouped into Nested test suites and the annotation assertions are extended with a new overload for simpler usage.

In addition to that, the productive JavaTypeCreationProcess gets some minor changes to method signatures to get rid of uncheck warnings (and their supressions)

…stead of Collection<Annotation>

Signed-off-by: Stefan Gräber <stefan.graeber@tngtech.com>
…sWarnings("unchecked")

Signed-off-by: Stefan Gräber <stefan.graeber@tngtech.com>
…or cleanup

Signed-off-by: Stefan Gräber <stefan.graeber@tngtech.com>

@hankem hankem left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

If you wanted to isolate the removal of unused annotations in ClassFileImporterAnnotationsTest in a separate commit, you could reference 5c710de, which accidentally didn't move, but duplicate them.


.hasNoExplicitlyDeclaredProperty("defaultValue1")
.hasStringProperty("defaultValue1", "defaultValue1");
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you wanted, you could still remove the two blank lines until the @Nested class' closing }.

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.

2 participants