[java/cs] fixed parameterized anonymous function declaration