From eff7eea9d134031753d1bf11a85cc346ee3d9322 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Wed, 16 Jun 2021 14:56:54 -0400 Subject: [PATCH] Organized Imports in RestUtil.java --- src/io/jrest/RestUtil.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/io/jrest/RestUtil.java b/src/io/jrest/RestUtil.java index 97d2655..70fb85d 100644 --- a/src/io/jrest/RestUtil.java +++ b/src/io/jrest/RestUtil.java @@ -6,7 +6,6 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.net.HttpCookie; @@ -58,9 +57,7 @@ public class RestUtil { canUseGson = true; } catch (Exception e) { - System.err.println("Could not locate Gson dependency, will not serialize Java classes. Using Nashorn engine as fallback Map/List serializer."); - - e.printStackTrace(); + System.err.println("Could not locate Gson dependency, will not serialize Java classes to DTO/POJO. Using Nashorn engine as fallback Map/List serializer."); ScriptEngineManager sem = new ScriptEngineManager(); engine = sem.getEngineByName("javascript"); }