From 91e71a59be119c92aa286726b42ae7db03021c4d Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Thu, 25 Jan 2024 14:31:33 +0100 Subject: [PATCH] fixed some warnings --- src/org/rascalmpl/interpreter/DefaultTestResultListener.java | 3 --- src/org/rascalmpl/library/vis/Charts.rsc | 4 ++-- src/org/rascalmpl/repl/BaseREPL.java | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/org/rascalmpl/interpreter/DefaultTestResultListener.java b/src/org/rascalmpl/interpreter/DefaultTestResultListener.java index 8cc036b3dd1..fab6d6bed70 100644 --- a/src/org/rascalmpl/interpreter/DefaultTestResultListener.java +++ b/src/org/rascalmpl/interpreter/DefaultTestResultListener.java @@ -13,14 +13,11 @@ *******************************************************************************/ package org.rascalmpl.interpreter; -import java.io.IOException; import java.io.PrintWriter; -import org.rascalmpl.exceptions.Throw; import org.rascalmpl.repl.ReplTextWriter; import io.usethesource.vallang.ISourceLocation; -import io.usethesource.vallang.io.StandardTextWriter; public class DefaultTestResultListener implements ITestResultListener{ private PrintWriter err; diff --git a/src/org/rascalmpl/library/vis/Charts.rsc b/src/org/rascalmpl/library/vis/Charts.rsc index 13cdc9b385b..6d6944aa922 100644 --- a/src/org/rascalmpl/library/vis/Charts.rsc +++ b/src/org/rascalmpl/library/vis/Charts.rsc @@ -91,8 +91,8 @@ Content bubbleChart(list[str] labels, lrel[num x,num y, num r] values ..., str t = content(title, chartServer(chartData(labels, values), \type=scatter(), title=title, colorMode=colorMode, legend=true)); Content bubbleChart(rel[num x,num y, num r] v, str title="Scatterplot", ChartAutoColorMode colorMode=\data()) - = content(title, chartServer(chartData(title, v), \type=scatter(), title=title, colorMode=colorMode), legend=false); - + = content(title, chartServer(chartData(title, v), \type=scatter(), title=title, colorMode=colorMode, legend=false)); + Content bubbleChart(list[str] labels, rel[num x,num y, num r] values ..., str title="Scatterplots", ChartAutoColorMode colorMode=\data()) = content(title, chartServer(chartData(labels, values), \type=scatter(), title=title, colorMode=colorMode, legend=true)); diff --git a/src/org/rascalmpl/repl/BaseREPL.java b/src/org/rascalmpl/repl/BaseREPL.java index ecf328d37dd..0f9e66f64d6 100755 --- a/src/org/rascalmpl/repl/BaseREPL.java +++ b/src/org/rascalmpl/repl/BaseREPL.java @@ -19,7 +19,6 @@ import java.util.concurrent.ConcurrentLinkedQueue; import org.fusesource.jansi.Ansi; -import org.fusesource.jansi.Ansi.Color; import org.rascalmpl.ideservices.IDEServices; import org.rascalmpl.library.util.PathConfig;