Skip to content

Commit bc78605

Browse files
convert TestRealtimerReporterEventTimedConsumer to Java, removing Xtend
dependencies
1 parent 4cbdbe8 commit bc78605

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* Copyright 2019 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,22 +16,22 @@
1616
package org.utplsql.sqldev.test.dal;
1717

1818
import java.util.HashMap;
19+
1920
import org.utplsql.sqldev.dal.RealtimeReporterEventConsumer;
2021
import org.utplsql.sqldev.model.runner.PostTestEvent;
2122
import org.utplsql.sqldev.model.runner.RealtimeReporterEvent;
2223

23-
@SuppressWarnings("all")
2424
public class TestRealtimerReporterEventTimedConsumer implements RealtimeReporterEventConsumer {
25-
private final HashMap<String, Long> postTestEvents = new HashMap<String, Long>();
26-
27-
public HashMap<String, Long> getPostTestEvents() {
28-
return this.postTestEvents;
29-
}
30-
31-
@Override
32-
public void process(final RealtimeReporterEvent event) {
33-
if ((event instanceof PostTestEvent)) {
34-
this.postTestEvents.put(((PostTestEvent)event).getId(), Long.valueOf(System.currentTimeMillis()));
25+
private final HashMap<String, Long> postTestEvents = new HashMap<>();
26+
27+
public HashMap<String, Long> getPostTestEvents() {
28+
return postTestEvents;
29+
}
30+
31+
@Override
32+
public void process(final RealtimeReporterEvent event) {
33+
if (event instanceof PostTestEvent) {
34+
postTestEvents.put(((PostTestEvent) event).getId(), System.currentTimeMillis());
35+
}
3536
}
36-
}
3737
}

0 commit comments

Comments
 (0)