Skip to content

Commit 3de875d

Browse files
committed
Fix SonarCube finding.
1 parent 537a422 commit 3de875d

File tree

1 file changed

+2
-2
lines changed
  • powertools-logging/powertools-logging-logback/src/test/java/software/amazon/lambda/powertools/logging/internal

1 file changed

+2
-2
lines changed

powertools-logging/powertools-logging-logback/src/test/java/software/amazon/lambda/powertools/logging/internal/LambdaJsonEncoderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ void shouldLogStructuredArgumentsAsNewEntries() {
217217
StructuredArgument argument = StructuredArguments.entry("msg", msg);
218218

219219
// WHEN
220-
LoggingEvent loggingEvent = new LoggingEvent("fqcn", logger, Level.INFO, "A message", null,
220+
LoggingEvent structuredLoggingEvent = new LoggingEvent("fqcn", logger, Level.INFO, "A message", null,
221221
new Object[] { argument });
222-
byte[] encoded = encoder.encode(loggingEvent);
222+
byte[] encoded = encoder.encode(structuredLoggingEvent);
223223
String result = new String(encoded, StandardCharsets.UTF_8);
224224

225225
// THEN (logged as JSON)

0 commit comments

Comments
 (0)