Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 0932134

Browse files
committed
Ambiguity
1 parent 31dec99 commit 0932134

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpServerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ public synchronized final HttpContext createTemporaryContext(final HttpHandler h
184184

185185
@Override
186186
public synchronized final HttpContext createTemporaryContext(final String context){
187-
return createContext(context, (exchange) -> removeContext(context));
187+
return createContext(context, (HttpExchange exchange) -> removeContext(context));
188188
}
189189

190190
@Override
191191
public synchronized final HttpContext createTemporaryContext(final String context, final long maxTime){
192-
final HttpContext httpContext = createContext(context, (exchange) -> removeContext(context));
192+
final HttpContext httpContext = createContext(context, (HttpExchange exchange) -> removeContext(context));
193193

194194
new Thread(() -> {
195195
try{
@@ -203,15 +203,15 @@ public synchronized final HttpContext createTemporaryContext(final String contex
203203

204204
@Override
205205
public synchronized final HttpContext createTemporaryContext(final String context, final HttpHandler handler){
206-
return createContext(context, (exchange) -> {
206+
return createContext(context, (HttpExchange exchange) -> {
207207
handler.handle(exchange);
208208
removeContext(context);
209209
});
210210
}
211211

212212
@Override
213213
public synchronized final HttpContext createTemporaryContext(final String context, final HttpHandler handler, final long maxTime){
214-
final HttpContext httpContext = createContext(context, (exchange) -> {
214+
final HttpContext httpContext = createContext(context, (HttpExchange exchange) -> {
215215
handler.handle(exchange);
216216
removeContext(context);
217217
});

0 commit comments

Comments
 (0)