You must cast the second argument:
newTransform("foo", (XMLStructure) null)
You are getting the ambiguous warning because null
is a valid argument to both methods. You need to add the (XMLStructure)
cast to tell the compiler the type of the object you are setting to null
..