public class ReturnOfInnerClass {

  public Object one() {
    <warning descr="Return of instance of anonymous class">return</warning> new Object() {};
  }

  public Object two() {
    class A {}
    <warning descr="Return of instance of local class 'A'">return</warning> new A();
  }

  class B {}
  public Object three() {
    <warning descr = "Return of instance of non-static inner class 'B'" > return</warning > new B();
  }

  private Object four() {
    return new B();
  }

  protected Object five() {
    return new B();
  }

  Object six() {
    return new B();
  }
}
@@ -340,11 +340,9 @@
 escr
- = 
+=
 %22Ret
@@ -387,19 +387,17 @@
 ass 'B'%22
- %3E 
+%3E
 return%3C/
@@ -403,17 +403,16 @@
 /warning
- 
 %3E new B(

fix test