Issue
The warning is
Type safety: The expression of type List needs unchecked conversion to conform to Collection<? extends String>
Do I need a type cast somewhere?
public class ETLStepType {
public static final ArrayList<String> ETLStepTypes = (
new ArrayList<String> ((Arrays.asList(new String[] {"constant",
"append",
"insertupdate",
"tableinput",
"filterrows",
"dblookup",
"selectvalues"}))));
}
Solution
in Intellij Idea getting "Redundant array creation for calling varargs method" warning, which fixed by removing 'new String []{ and }' so try
new ArrayList<String>(Arrays.asList("constant",
"append",
"insertupdate",
"tableinput",
"filterrows",
"dblookup",
"selectvalues"))
to fix the issue
Answered By - greencrest
Answer Checked By - Marie Seifert (JavaFixing Admin)