class GoodCodeRed { static class ClassA { } static class Pair { } void max(final M object, Pair attribute, final N cnt) { } void max(final M object, Pair attribute, final N str) { } { max(new ClassA(), new Pair(), 1); } }