Skip to content

HDDS-16056. non-varargs call of varargs method with inexact argument type - #10914

Open
adoroszlai wants to merge 1 commit into
apache:masterfrom
adoroszlai:HDDS-16056
Open

HDDS-16056. non-varargs call of varargs method with inexact argument type#10914
adoroszlai wants to merge 1 commit into
apache:masterfrom
adoroszlai:HDDS-16056

Conversation

@adoroszlai

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fix warnings about non-varargs call of varargs method with inexact argument type for last parameter.

Example:

[WARNING] hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/upgrade/TestHDDSLayoutVersionManager.java:[52,32] non-varargs call of varargs method with inexact argument type for last parameter;
  cast to java.lang.Object for a varargs call
  cast to java.lang.Object[] for a non-varargs call and to suppress this warning

https://issues.apache.org/jira/browse/HDDS-16056

How was this patch tested?

Build, grep log for the warning.

Compare list of Annotations in CI summary.

Before:
https://github.com/apache/ozone/actions/runs/30622461584

After:
https://github.com/adoroszlai/ozone/actions/runs/30630408587

@adoroszlai adoroszlai self-assigned this Jul 31, 2026
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.

1 participant