Skip to content

Commit 12508c3

Browse files
authored
Merge branch 'master' into dependabot/maven/surefire-plugin.version-3.5.2
2 parents 0479f05 + 4739753 commit 12508c3

File tree

42 files changed

+538
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+538
-127
lines changed

.github/workflows/ci-quarkus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
- name: Set up JDK
1515
uses: actions/setup-java@v4
1616
with:
1717
java-version: 16
1818
distribution: 'zulu'
19-
- uses: actions/[email protected].3
19+
- uses: actions/[email protected].4
2020
with:
2121
path: ~/.m2/repository
2222
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
architecture: [ 'x64' ]
1212
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Setup JDK
1616
uses: actions/setup-java@v4
1717
with:

.github/workflows/reveal-pdf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
name: Generate PDF
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616

1717
- name: Create "/slides" directory
1818
run: mkdir slides && sudo chmod 777 slides

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ Code snippets for articles posted at 4comprehension.com provided "as-is" and org
3333
- [Be Careful with CompletableFuture.applyToEither and Exceptions](https://4comprehension.com/be-careful-with-completablefuture-applytoeither/) [(snippets)](https://github.com/pivovarit/articles/blob/master/java-completable-future-allof/src/main/java/com/pivovarit/allof/CompletableFutures.java)
3434
- [Improving Java's Visibility Modifiers with ArchUnit](https://4comprehension.com/improving-java-visibility-modifiers/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-archunit)
3535
- [How to Stop a Java Thread Without Using Thread.stop()?](https://4comprehension.com/how-to-stop-a-java-thread-without-using-thread-stop/) [(snippets)](https://github.com/pivovarit/articles/tree/master/java-thread-stop)
36+
- [Accidental Time Travel with Wiremock, SimpleDateFormat and Fractional Seconds](https://4comprehension.com/accidental-time-travel-with-wiremock/) [(snippets)]https://github.com/pivovarit/articles/tree/master/java-wiremock-timetravel
3637

3738
## Running
38-
In most cases, I'm using a simple unit-testing infrastructure to squeeze multiple examples in a single file - it's enough to import the module in your IDE and run JUnit tests.
39+
In most cases, I'm using a simple unit-testing infrastructure to squeeze multiple examples into a single file it's enough to import the module in your IDE and run JUnit tests.
3940

4041
However, there might be some exceptions - in such cases, you will find instructions in matching articles

hamming-error-correction/pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<dependency>
1616
<groupId>io.vavr</groupId>
1717
<artifactId>vavr</artifactId>
18-
<version>0.10.6</version>
18+
<version>0.10.7</version>
1919
</dependency>
2020
<dependency>
2121
<groupId>org.jetbrains.kotlin</groupId>
22-
<artifactId>kotlin-stdlib-jdk8</artifactId>
22+
<artifactId>kotlin-stdlib</artifactId>
2323
<version>${kotlin.version}</version>
2424
</dependency>
2525
<dependency>
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>org.assertj</groupId>
3939
<artifactId>assertj-core</artifactId>
40-
<version>3.27.3</version>
40+
<version>3.27.4</version>
4141
<scope>test</scope>
4242
</dependency>
4343

@@ -60,7 +60,7 @@
6060
</dependency>
6161
<dependency>
6262
<groupId>org.jetbrains.kotlin</groupId>
63-
<artifactId>kotlin-stdlib-jdk8</artifactId>
63+
<artifactId>kotlin-stdlib</artifactId>
6464
<version>${kotlin.version}</version>
6565
</dependency>
6666
</dependencies>
@@ -166,7 +166,7 @@
166166
<plugin>
167167
<groupId>org.codehaus.mojo</groupId>
168168
<artifactId>exec-maven-plugin</artifactId>
169-
<version>3.5.0</version>
169+
<version>3.5.1</version>
170170
<executions>
171171
<execution>
172172
<phase>process-sources</phase>
@@ -201,7 +201,7 @@
201201
<plugin>
202202
<groupId>org.codehaus.mojo</groupId>
203203
<artifactId>build-helper-maven-plugin</artifactId>
204-
<version>3.6.0</version>
204+
<version>3.6.1</version>
205205
<executions>
206206
<execution>
207207
<id>add-source</id>
@@ -295,10 +295,10 @@
295295
</build>
296296

297297
<properties>
298-
<kotlin.version>2.0.21</kotlin.version>
299-
<junit.version>5.12.0</junit.version>
298+
<kotlin.version>2.2.0</kotlin.version>
299+
<junit.version>5.13.4</junit.version>
300300
<jmh.version>1.37</jmh.version>
301301
<jmh.generator>default</jmh.generator>
302302
<javac.target>1.8</javac.target>
303303
</properties>
304-
</project>
304+
</project>

hamming-error-correction/src/test/kotlin/com/pivovarit/hamming/domain/HammingPropertyTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class HammingPropertyTest {
2929
}
3030

3131
private fun randomMessage(): BinaryString =
32-
generateSequence { rand.nextInt(1).toString() }
32+
generateSequence { rand.nextInt(2).toString() }
3333
.take(rand.nextInt(1000).inc())
3434
.reduce { acc, s -> acc + s }
3535
.let(::BinaryString)
@@ -38,4 +38,4 @@ class HammingPropertyTest {
3838
private fun EncodedString.withBitFlippedAt(ind: Int): EncodedString = this[ind].toString().toInt()
3939
.let { this.value.replaceRange(ind, ind + 1, ((it + 1) % 2).toString()) }
4040
.let(::EncodedString)
41-
}
41+
}

hamming-error-correction/src/test/kotlin/com/pivovarit/hamming/domain/encode/stateless/HammingEncoderTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.pivovarit.hamming.domain.encode.stateless
33
import com.pivovarit.hamming.domain.BinaryString
44
import com.pivovarit.hamming.domain.EncodedString
55
import com.pivovarit.hamming.domain.encode.HammingEncoder
6-
import org.assertj.core.api.Assertions
76
import org.assertj.core.api.Assertions.*
87
import org.junit.jupiter.api.DisplayName
98
import org.junit.jupiter.api.Test
@@ -46,4 +45,4 @@ abstract class HammingEncoderTestBase(private val sut: HammingEncoder) {
4645
.forEach { assertThat(it).doesNotContain("1") }
4746
}
4847

49-
}
48+
}

hibernate-alternatives/spring-data-jdbc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.4</version>
8+
<version>3.5.4</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.pivovarit</groupId>

hibernate-alternatives/spring-jdbc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.4</version>
8+
<version>3.5.4</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.pivovarit</groupId>

java-11-string-api-updates/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
<dependency>
3636
<groupId>org.junit.jupiter</groupId>
3737
<artifactId>junit-jupiter-engine</artifactId>
38-
<version>5.12.0</version>
38+
<version>5.13.4</version>
3939
<scope>test</scope>
4040
</dependency>
4141
<dependency>
4242
<groupId>org.assertj</groupId>
4343
<artifactId>assertj-core</artifactId>
44-
<version>3.27.3</version>
44+
<version>3.27.4</version>
4545
<scope>test</scope>
4646
</dependency>
4747
</dependencies>

0 commit comments

Comments
 (0)