Skip to content

Commit 707eb5c

Browse files
committed
Cleanup
1 parent 4634462 commit 707eb5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/spyware/eventsources/OutputActionEventSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void input(Exercise exercise, char character) {
4444
@Override
4545
public void input(Exercise exercise, char[] characters) {
4646
if (exercise != null) {
47-
Object data = Collections.singletonMap("char", characters);
47+
Object data = Collections.singletonMap("charArray", characters);
4848
String jsonData = new Gson().toJson(data);
4949
LoggableEvent event = new LoggableEvent(exercise, "output_action", jsonData.getBytes(Charset.forName("UTF-8")));
5050
receiver.receiveEvent(event);
@@ -58,7 +58,7 @@ public void input(Exercise exercise, char[] characters) {
5858
@Override
5959
public void input(Exercise exercise, CharBuffer characters) {
6060
if (exercise != null) {
61-
Object data = Collections.singletonMap("char", characters);
61+
Object data = Collections.singletonMap("charBuf", characters);
6262
String jsonData = new Gson().toJson(data);
6363
LoggableEvent event = new LoggableEvent(exercise, "output_action", jsonData.getBytes(Charset.forName("UTF-8")));
6464
receiver.receiveEvent(event);

0 commit comments

Comments
 (0)