Skip to content

Commit

Permalink
Disable javac messages for using raw ResourceType (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys authored Mar 20, 2024
1 parent d48ef48 commit 2e0e114
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public static ExtensionContext getTestContext() {
* Sets the resource types.
* @param types The resource types implementing {@link ResourceType}
*/
@SuppressWarnings("unchecked")
public final void setResourceTypes(ResourceType... types) {
this.resourceTypes = types;
}
Expand Down Expand Up @@ -126,6 +127,7 @@ public List<HasMetadata> readResourcesFromFile(InputStream is) throws IOExceptio
* Pushes a resource item to the stack.
* @param item The resource item to push.
*/
@SuppressWarnings("unchecked")
public final void pushToStack(ResourceItem item) {
synchronized (this) {
STORED_RESOURCES.computeIfAbsent(getTestContext().getDisplayName(), k -> new Stack<>());
Expand Down Expand Up @@ -358,6 +360,7 @@ public void deleteResources() {
* @return {@link ResourceType}
* @param <T> The type of the resource.
*/
@SuppressWarnings("unchecked")
private <T extends HasMetadata> ResourceType<T> findResourceType(T resource) {
// other no conflicting types
for (ResourceType<?> type : resourceTypes) {
Expand Down

0 comments on commit 2e0e114

Please sign in to comment.