Skip to content

Commit ea4cd14

Browse files
authored
Indicate proxy interfaces are Functional Interfaces (#16)
* Update RequestInterceptor.java Add @FunctionalInterface in interceptor definition to give user indication of using lambdas in most IDEs * Update ResponseInterceptor.java Add @FunctionalInterface in interceptor definition to give user indication of using lambdas in most IDEs
1 parent 63bf3ae commit ea4cd14

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/website/magyar/mitm/proxy/RequestInterceptor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*
88
* @author Tamas Kohegyi
99
*/
10+
@FunctionalInterface
1011
public interface RequestInterceptor {
1112
void process(MitmJavaProxyHttpRequest request);
1213
}

src/main/java/website/magyar/mitm/proxy/ResponseInterceptor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*
88
* @author Tamas Kohegyi
99
*/
10+
@FunctionalInterface
1011
public interface ResponseInterceptor {
1112
void process(MitmJavaProxyHttpResponse response);
1213
}

0 commit comments

Comments
 (0)