/*
 * Copyright (c) 2017 - present Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

// This example tests the skip_anonymous_class_renamings filter
class DiffExample {
    private int checkAnonymousClasses() {
        SimpleInterfaceExample sie1 = new SimpleInterfaceExample() {
         public String getString() { return "111"; }
         public int aaa() { return this.getString().length(); }
        };
        SimpleInterfaceExample sie2 = new SimpleInterfaceExample() {
            public String getString() { return "111"; }
            public int aaa() { return this.getString().length(); }
        };


        new SimpleInterfaceExample() {
            public String getString() { return null; }
            public int aaa() {
                new SimpleNestedInterface() {
                    public void doSomething() {
                        int a = getString().length();
                    }
                };
                return 1;
            }
        };
        return new SimpleInterfaceExample() {
            public String getString() { return null; }
            public int aaa() { return this.getString().length(); }
        }.aaa();
    }
}
