Skip to content

Commit

Permalink
:logging Fixing bug with empty string in FieldTrimmer
Browse files Browse the repository at this point in the history
  • Loading branch information
iakunin committed Mar 11, 2024
1 parent e88cc15 commit 0394122
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion etc/bin/gradle_in_docker.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

GRADLE_CACHE_VOLUME_NAME="iakunin-java-libraries-gradle-cache"
GRADLE_DOCKER_IMAGE="gradle:7.6.1-jdk11-alpine"
GRADLE_DOCKER_IMAGE="gradle:7.6.1-jdk17-alpine"

docker run \
--tty \
Expand Down
2 changes: 1 addition & 1 deletion src/logging/logging-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jar.enabled = true

archivesBaseName = "library-logging-common"

project.version = "1.0.1"
project.version = "1.0.2"

apply from: "$rootDir/gradle/publishing.gradle"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public FieldTrimmer(Properties properties) {
}

public String trim(String source) {
final boolean shouldBeTrimmed = source.length() > maxLength;
final boolean shouldBeTrimmed = source != null && source.length() > maxLength;

if (shouldBeTrimmed) {
return source.substring(0, maxLength) + "<TRIMMED>";
Expand Down
2 changes: 1 addition & 1 deletion src/logging/logging-reactive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jar.enabled = true

archivesBaseName = "library-logging-reactive"

project.version = "1.0.1"
project.version = "1.0.2"

apply from: "$rootDir/gradle/publishing.gradle"

Expand Down
2 changes: 1 addition & 1 deletion src/logging/logging-servlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jar.enabled = true

archivesBaseName = "library-logging-servlet"

project.version = "1.0.1"
project.version = "1.0.2"

apply from: "$rootDir/gradle/publishing.gradle"

Expand Down

0 comments on commit 0394122

Please sign in to comment.