Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamo committed Mar 5, 2016
1 parent 4634462 commit 707eb5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void input(Exercise exercise, char character) {
@Override
public void input(Exercise exercise, char[] characters) {
if (exercise != null) {
Object data = Collections.singletonMap("char", characters);
Object data = Collections.singletonMap("charArray", characters);
String jsonData = new Gson().toJson(data);
LoggableEvent event = new LoggableEvent(exercise, "output_action", jsonData.getBytes(Charset.forName("UTF-8")));
receiver.receiveEvent(event);
Expand All @@ -58,7 +58,7 @@ public void input(Exercise exercise, char[] characters) {
@Override
public void input(Exercise exercise, CharBuffer characters) {
if (exercise != null) {
Object data = Collections.singletonMap("char", characters);
Object data = Collections.singletonMap("charBuf", characters);
String jsonData = new Gson().toJson(data);
LoggableEvent event = new LoggableEvent(exercise, "output_action", jsonData.getBytes(Charset.forName("UTF-8")));
receiver.receiveEvent(event);
Expand Down

0 comments on commit 707eb5c

Please sign in to comment.