/*
 * Copyright (c) 2017-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

// This example tests that anonymous class renaming does not affect the
// computation of the pre-existing warnings
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(); }
        };

        return new SimpleInterfaceExample() {
            public String getString() { return null; }
            public int aaa() { return this.getString().length(); }
        }.aaa();
    }
}
