SampleProjects/reference-test-java-gradle/src/main/java/org/jetbrains/research/ictl/fileimportance/test/AnonymousCalc.java
<reponame>JetBrains-Research/file-importancepackage org.jetbrains.research.ictl.fileimportance.test;

public class AnonymousCalc {
    private ICalculator calculator;

    public AnonymousCalc() {
        calculator = new ICalculator() {
            @Override
            public int add(int a, int b) {
                return a + b;
            }
        };
    }

    public int add(int a, int b){
        return calculator.add(a, b);
    }
}
