I am trying to declare an ArrayList
object in an User Defined Java Class object in pentaho kettle. I am trying a simple code inside the User Defined Java Class
:
import java.util.List;
import java.util.ArrayList;
List<String> where = new ArrayList<String>();
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
{
return true;
}
But when I test this class, I get an error:
Line 4, Column 6: Identifier expected
What can be the issue? If I comment out the line List<String> where = new ArrayList<String>();
the code works well.