Skip to content

Commit 79ea2e0

Browse files
committed
Map String key changed to Path
1 parent 35395a6 commit 79ea2e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/utilities/urlcallback/CallbackURLStreamHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
@URLStreamHandlerRegistration(protocol = "callback")
2323
public class CallbackURLStreamHandler extends URLStreamHandler {
2424

25-
private static final Map<String, URLCallback> callbacks = Maps.newHashMap();
25+
private static final Map<Path, URLCallback> callbacks = Maps.newHashMap();
2626

2727
public static void registerCallback(Path path, URLCallback callback) {
2828
if (callback == null) {
29-
callbacks.remove(path.toString());
29+
callbacks.remove(path);
3030
} else {
31-
callbacks.put(path.toString(), callback);
31+
callbacks.put(path, callback);
3232
}
3333
}
3434

0 commit comments

Comments
 (0)