I am instantiating an inner class in my constructor but I'm not using it to start threads or as an event listener. For example:
public class Something {
final InnerSomething innerSomething = new InnerSomething();
public Something(Param arg) {
super(arg);
}
private class InnerSomething {...}
...
}
EDIT: I copied & pasted the code from somewhere else and forgot to delete the "abstract" keyword.
EDIT2: "My" definition of "'this' reference escape" is the one found in the book Java Concurrency in Practice.
With the above code, am I allowing the 'this' reference to "escape"?