From 3284fd5c97a08c6e9d8dfff59c2a96ee1a68fe4e Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 14 Apr 2020 20:36:48 +0200 Subject: [PATCH 01/13] Some dirty code --- src/main/Application.java | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/Application.java diff --git a/src/main/Application.java b/src/main/Application.java new file mode 100644 index 0000000..11a1d0d --- /dev/null +++ b/src/main/Application.java @@ -0,0 +1,33 @@ +import java.util.Arrays; + +import org.springframework.boot.CommandLineRunner; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.*; + +@SpringBootApplication +public class Application { + + public static void Main(String[] args) { + SpringApplication.run(Application.class, args); + } + + private void DoNothing(){ + Int J = 100; + } + + @Bean + public CommandLineRunner commandLineRunner(ApplicationContext ctx) { + return args -> { + System.out.println("Let's inspect the beans provided by Spring Boot:"); + + String[] beanNames = ctx.getBeanDefinitionNames(); + Arrays.sort(beanNames); + for (String beanName : beanNames) { + System.out.println(beanName); + } + }; + } + +} \ No newline at end of file From 85cefc5d03e22076a1ff1a37754f8950f54013d0 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 30 May 2020 16:05:29 +0200 Subject: [PATCH 02/13] Update Application.java --- src/main/Application.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/Application.java b/src/main/Application.java index 11a1d0d..3cd5230 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -10,7 +10,7 @@ public class Application { public static void Main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(Application.class, args); } private void DoNothing(){ @@ -30,4 +30,4 @@ public CommandLineRunner commandLineRunner(ApplicationContext ctx) { }; } -} \ No newline at end of file +} From e2364bd9e3a85242dd5c04726699cfecaf62314e Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 30 May 2020 16:22:19 +0200 Subject: [PATCH 03/13] Update Application.java --- src/main/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Application.java b/src/main/Application.java index 3cd5230..ea50eb4 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -20,7 +20,7 @@ private void DoNothing(){ @Bean public CommandLineRunner commandLineRunner(ApplicationContext ctx) { return args -> { - System.out.println("Let's inspect the beans provided by Spring Boot:"); + System.out.println("Let's inspect the beans provided by Spring Boot:"); String[] beanNames = ctx.getBeanDefinitionNames(); Arrays.sort(beanNames); From 30bcacc9848307d7c04be1153177e5c1e281a2d3 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 30 May 2020 16:24:34 +0200 Subject: [PATCH 04/13] Update Application.java --- src/main/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Application.java b/src/main/Application.java index ea50eb4..7dddcf7 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -3,7 +3,7 @@ import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.*; @SpringBootApplication From 9cbe909d106c0da795073956b06eec03aaa0c6e2 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 30 May 2020 16:27:41 +0200 Subject: [PATCH 05/13] Update Application.java --- src/main/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Application.java b/src/main/Application.java index 7dddcf7..7a5a579 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -24,7 +24,7 @@ public CommandLineRunner commandLineRunner(ApplicationContext ctx) { String[] beanNames = ctx.getBeanDefinitionNames(); Arrays.sort(beanNames); - for (String beanName : beanNames) { + for (String beanName : beanNames) { System.out.println(beanName); } }; From 9eb323c4c5c68c79ce8ea60cbd39e20de97d522a Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 30 May 2020 16:29:23 +0200 Subject: [PATCH 06/13] Update Application.java --- src/main/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Application.java b/src/main/Application.java index 7a5a579..96ba814 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -23,7 +23,7 @@ public CommandLineRunner commandLineRunner(ApplicationContext ctx) { System.out.println("Let's inspect the beans provided by Spring Boot:"); String[] beanNames = ctx.getBeanDefinitionNames(); - Arrays.sort(beanNames); + Arrays.sort(beanNames); for (String beanName : beanNames) { System.out.println(beanName); } From 5e13d00e448dd650649b0bc8532d2c27378fc70d Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 30 Jun 2020 21:44:46 +0200 Subject: [PATCH 07/13] github action updated --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 96c954b..86e4e5e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,4 +11,5 @@ jobs: uses: nikitasavinov/checkstyle-action@master with: repo-token: ${{ secrets.GITHUB_TOKEN }} - reporter: 'github-pr-check' \ No newline at end of file + reporter: 'github-pr-check' + fail-on-error: true \ No newline at end of file From 842b2698c9d283a3fab60818be4288015d51a24e Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 30 Jun 2020 21:48:18 +0200 Subject: [PATCH 08/13] Typo fix --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cbe7666..3f3c840 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,4 +13,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: 'github-pr-check' tool_name: 'testtool' - fail-on-error: true + fail_on_error: true From 83e0faa740c6254719d6c910d5569e735e1fc46d Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 30 Jun 2020 21:52:42 +0200 Subject: [PATCH 09/13] Added error level --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f3c840..2c86250 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,3 +14,4 @@ jobs: reporter: 'github-pr-check' tool_name: 'testtool' fail_on_error: true + level: 'error' From 4cc1da6a0c928acfc4eabaaa252d989809652435 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sun, 14 Feb 2021 15:07:53 +0100 Subject: [PATCH 10/13] Update main.yml --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c86250..a82bf49 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,5 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: 'github-pr-check' - tool_name: 'testtool' fail_on_error: true level: 'error' From c0c2254ca0eefc1543ea65e17a60ed9bcbeb319c Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 5 Mar 2022 20:04:56 +0100 Subject: [PATCH 11/13] Update src/main/Application.java --- src/main/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Application.java b/src/main/Application.java index 96ba814..06d32b5 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -2,7 +2,7 @@ import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.*; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.*; From 37654c60489bef253c49425bdbe19fc49e207fb0 Mon Sep 17 00:00:00 2001 From: Nikita Date: Wed, 13 Apr 2022 21:25:21 +0200 Subject: [PATCH 12/13] Update src/main/Application.java --- src/main/Application.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/Application.java b/src/main/Application.java index 06d32b5..ed147eb 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -30,4 +30,5 @@ public CommandLineRunner commandLineRunner(ApplicationContext ctx) { }; } + } From b29d0acc65fbe71402bf9a3bd370bebb8267ad97 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sun, 29 Jan 2023 13:32:54 +0100 Subject: [PATCH 13/13] Update Application.java --- src/main/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Application.java b/src/main/Application.java index ed147eb..10c2199 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -14,7 +14,7 @@ public static void Main(String[] args) { } private void DoNothing(){ - Int J = 100; + Int J = 100; } @Bean