aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java')
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java
new file mode 100644
index 000000000..a5d350e13
--- /dev/null
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/defaultcomeslast/InputDefaultComesLastDefaultMethodsInInterface.java
@@ -0,0 +1,16 @@
+package com.puppycrawl.tools.checkstyle.checks.coding.defaultcomeslast;
+
+public interface InputDefaultComesLastDefaultMethodsInInterface {
+
+ String toJson(Object one, Object two, Object three);
+
+ String toJson(String document);
+
+ default String toJson(Object one) {
+ return toJson(one, one, one);
+ }
+
+ default String toJson(Object one, Object two) {
+ return toJson(one, one, two);
+ }
+ }