From 2290dc5070b914ce0a5ad293e5e89a9302b25425 Mon Sep 17 00:00:00 2001 From: zeroflag Date: Wed, 30 Jun 2021 13:00:00 +0200 Subject: [PATCH] saving transcript and maximizing its size --- src/main/java/com/vectron/fcl/Fcl.java | 2 +- src/main/java/com/vectron/fcl/exceptions/Aborted.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/vectron/fcl/Fcl.java b/src/main/java/com/vectron/fcl/Fcl.java index 09dbc4e..342c01f 100644 --- a/src/main/java/com/vectron/fcl/Fcl.java +++ b/src/main/java/com/vectron/fcl/Fcl.java @@ -384,7 +384,7 @@ public class Fcl { addPrimitive("abort", () -> { throw new Aborted(stack.pop().asStr().value()); }); addPrimitive("eval", () -> eval(stack.pop().asStr().value())); addPrimitive("words", () -> { - List words = new ArrayList(wordList()); + List words = new ArrayList<>(wordList()); Collections.sort(words); for (String each : words) { transcript.show(each); diff --git a/src/main/java/com/vectron/fcl/exceptions/Aborted.java b/src/main/java/com/vectron/fcl/exceptions/Aborted.java index e0d9be8..29bd21c 100644 --- a/src/main/java/com/vectron/fcl/exceptions/Aborted.java +++ b/src/main/java/com/vectron/fcl/exceptions/Aborted.java @@ -1,7 +1,7 @@ package com.vectron.fcl.exceptions; public class Aborted extends FclException { - public Aborted(String str) { - super(str); + public Aborted(String message) { + super(message); } }