From fe6bc1aeae4f8dda4deedfbae929eacaa882742f Mon Sep 17 00:00:00 2001 From: Obiwac Date: Wed, 9 Nov 2022 23:33:42 +0100 Subject: [PATCH] CommonErrors: Extraneous lines --- CommonErrors/task.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/CommonErrors/task.yaml b/CommonErrors/task.yaml index 9b986e9..9030d8c 100644 --- a/CommonErrors/task.yaml +++ b/CommonErrors/task.yaml @@ -226,8 +226,6 @@ problems: text: |- .. code-block:: java - PrintWriter writer = null; - PrintWriter writer = null; try { @@ -247,7 +245,6 @@ problems: PrintWriter writer = null; try (PrintWriter writer = new PrintWriter(new File("hello_world.txt"))) { - writer = new PrintWriter(new File("hello_world.txt")); writer.write("Hello, world!"); } catch (Exception err) { err.printStackTrace();