I started on a new project recently and saw the usage of overriding like below for the first time.
public class SomeClass { public void myMethod() { XS
In this case the XStream class is an anonymous inner class. Then you're overriding the method of your anonymous XStream class.