From ef62a7081c7b10dfee20b640e4e5489593e46778 Mon Sep 17 00:00:00 2001 From: Ishan Goel Date: Thu, 6 Aug 2020 13:13:46 +0400 Subject: [PATCH] Make JavaGood compile-able and improve java_bad_1.java --- .automation/test/java/{java_good_1.java => JavaGood.java} | 4 ---- .automation/test/java/java_bad_1.java | 8 +++----- 2 files changed, 3 insertions(+), 9 deletions(-) rename .automation/test/java/{java_good_1.java => JavaGood.java} (66%) diff --git a/.automation/test/java/java_good_1.java b/.automation/test/java/JavaGood.java similarity index 66% rename from .automation/test/java/java_good_1.java rename to .automation/test/java/JavaGood.java index e2d0d7e3..70f50e7c 100644 --- a/.automation/test/java/java_good_1.java +++ b/.automation/test/java/JavaGood.java @@ -1,7 +1,3 @@ -package com.superlinter.JavaGood; -/* This is a simple Java program. - FileName : "HelloWorld.java" */ - /** * Represents a good Java file. */ diff --git a/.automation/test/java/java_bad_1.java b/.automation/test/java/java_bad_1.java index 6d3c5be1..56d75863 100644 --- a/.automation/test/java/java_bad_1.java +++ b/.automation/test/java/java_bad_1.java @@ -1,11 +1,9 @@ -/* This is a simple Java program. - FileName : "HelloWorld.java". */ -class HelloWorld +class java_bad_1 // first letter of classname is not capitalized { - // Your program begins with a call to main(). - // Prints "Hello, World" to the terminal window. + public static void main(String args[]) { + System.out.println("Hello, World) } }