From 885fca8fe939dcebe8fc097e1f718397d1d2b85e Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Thu, 20 Aug 2015 18:17:15 +0200 Subject: [PATCH] Remove call to printStackTrace() in test code. #1555 Fixes `ThrowablePrintStackTrace` inspection violations in test code. Description: >Reports any calls to Throwable.printStackTrace() without arguments. Such statements are often used for temporary debugging, and should probably be either removed from production code, or replaced with a more robust logging facility. --- .../checkstyle/checks/imports/CustomImportOrderCheckTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheckTest.java index e0d8daf1a..b624b3b61 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheckTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/imports/CustomImportOrderCheckTest.java @@ -345,7 +345,6 @@ public class CustomImportOrderCheckTest extends BaseCheckTestSupport { actual = method.invoke(t, (DetailAST) null); } catch (Exception e) { - e.printStackTrace(); actual = null; }