1 /* 2 DefaultComesLast 3 skipIfLastAndSharedWithCase = (default)false 4 5 6 */ 7 8 package com.puppycrawl.tools.checkstyle.checks.coding.defaultcomeslast; 9 10 public interface InputDefaultComesLastDefaultMethodsInInterface { 11 12 String toJson(Object one, Object two, Object three); 13 14 String toJson(String document); 15 16 default String toJson(Object one) { 17 return toJson(one, one, one); 18 } 19 20 default String toJson(Object one, Object two) { 21 return toJson(one, one, two); 22 } 23 }