From a60fd2e31a617c2edbb28087dee9bfa8d26a01fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:40:57 +0000 Subject: [PATCH 1/3] Bump com.puppycrawl.tools:checkstyle from 10.18.2 to 10.20.0 Bumps [com.puppycrawl.tools:checkstyle](https://github.com/checkstyle/checkstyle) from 10.18.2 to 10.20.0. - [Release notes](https://github.com/checkstyle/checkstyle/releases) - [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-10.18.2...checkstyle-10.20.0) --- updated-dependencies: - dependency-name: com.puppycrawl.tools:checkstyle dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b12b0e44..be7d4e2b 100644 --- a/pom.xml +++ b/pom.xml @@ -92,7 +92,7 @@ 3.26.0 7.7.0 3.6.0 - 10.18.2 + 10.20.0 4.8.6.5 1.13.0 0.8.12 From 1d16eaa305c0fbe79c862248c7ed261abaaf7d6f Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Fri, 1 Nov 2024 16:48:43 +0100 Subject: [PATCH 2/3] Fix whitespace problem. --- doc/Best-Practice.md | 2 +- src/main/java/edu/hm/hafner/util/Ensure.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/Best-Practice.md b/doc/Best-Practice.md index 73f4e037..b6be9ca9 100644 --- a/doc/Best-Practice.md +++ b/doc/Best-Practice.md @@ -210,4 +210,4 @@ public class CorrectObserverImplementation { } ``` D.h. die Callback Methode kann nun als private markiert werden und ist nach außen nicht mehr sichtbar. -Je nach Anwendungsfall kann statt der Methoden-Referenz auch ein Lambda Ausdruck verwendet werden. \ No newline at end of file +Je nach Anwendungsfall kann statt der Methoden-Referenz auch ein Lambda Ausdruck verwendet werden. diff --git a/src/main/java/edu/hm/hafner/util/Ensure.java b/src/main/java/edu/hm/hafner/util/Ensure.java index 0cd34bfe..8e35d47c 100644 --- a/src/main/java/edu/hm/hafner/util/Ensure.java +++ b/src/main/java/edu/hm/hafner/util/Ensure.java @@ -20,6 +20,7 @@ * Note: the static methods provided by this class use a fluent interface, i.e., in order to verify an assertion a * method sequence needs to be called. *

+ * *

* Available checks: *

From e98bca8a79dccf19aff2a183bd0101429257cbdc Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Fri, 1 Nov 2024 17:00:53 +0100 Subject: [PATCH 3/3] Fix whitespace problems in tests. --- src/test/java/edu/hm/hafner/util/ResourceTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/edu/hm/hafner/util/ResourceTest.java b/src/test/java/edu/hm/hafner/util/ResourceTest.java index 0ab3eedb..f690e5de 100644 --- a/src/test/java/edu/hm/hafner/util/ResourceTest.java +++ b/src/test/java/edu/hm/hafner/util/ResourceTest.java @@ -59,7 +59,8 @@ protected Path createTempFile() { * Reads all the bytes from a file. The method ensures that the file is closed when all bytes have been read or an * I/O error, or other runtime exception, is thrown. * - *

Note that this method is intended for simple cases where it is + *

+ * Note that this method is intended for simple cases where it is * convenient to read all bytes into a byte array. It is not intended for reading in large files. *

* @@ -85,7 +86,8 @@ protected byte[] readAllBytes(final String fileName) { * Reads all the bytes from a file. The method ensures that the file is closed when all bytes have been read or an * I/O error, or other runtime exception, is thrown. * - *

Note that this method is intended for simple cases where it is + *

+ * Note that this method is intended for simple cases where it is * convenient to read all bytes into a byte array. It is not intended for reading in large files. *

* @@ -113,6 +115,7 @@ private Path getPath(final String name) throws URISyntaxException { /** * Read all lines from the desired resource as a {@code Stream}, i.e. this method populates lazily as the stream is * consumed. + * *

* Bytes from the resource are decoded into characters using UTF-8 and the same line terminators as specified by * {@link Files#readAllLines(Path, Charset)} are supported. @@ -131,6 +134,7 @@ protected Stream asStream(final String fileName) { /** * Read all lines from the desired resource as a {@code Stream}, i.e. this method populates lazily as the stream is * consumed. + * *

* Bytes from the resource are decoded into characters using the specified charset and the same line terminators as * specified by {@link Files#readAllLines(Path, Charset)} are supported.