/* * Copyright $year Lukas Krejci * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License */ public final class Added { public interface SuperIface { void superMethod(); } public interface Iface extends SuperIface { void newMethod(); void childMethod(); static void newStaticMethod() { } } public static abstract class Abstract { private void ignored() {} public abstract void newMethod(); } public static class Ordinary extends Abstract { public void newMethod() {} public void ordinaryMethod1() { } public void ordinaryMethod2() { } public void ordinaryMethod3() {} } public void newMethod() {} //check sensitivity to method name length and numbers at the end of the method name //these are the same in both versions. The check is that they should not cause any changes public void getContentOfSection() {} public void getContentOfSectionAB() {} public void getContentOfSection10() {} }