diff --git a/eo-runtime/src/test/java/org/eolang/DataizedTest.java b/eo-runtime/src/test/java/org/eolang/DataizedTest.java index 9af4b77e6e..eb267bda19 100644 --- a/eo-runtime/src/test/java/org/eolang/DataizedTest.java +++ b/eo-runtime/src/test/java/org/eolang/DataizedTest.java @@ -44,8 +44,7 @@ final class DataizedTest { /** * System property for maximum dataization log level. */ - @SuppressWarnings("PMD.LongVariable") - private static final String MAX_DATAIZATION_LOG_PROPERTY = "max.dataization.log"; + private static final String MAX_DATAIZATION = "max.dataization.log"; @Test void logsCorrectly() { @@ -152,21 +151,21 @@ private static class DataizedLoggerThread extends Thread { super( () -> { final String property = System.getProperty( - DataizedTest.MAX_DATAIZATION_LOG_PROPERTY + DataizedTest.MAX_DATAIZATION ); System.getProperties().setProperty( - DataizedTest.MAX_DATAIZATION_LOG_PROPERTY, + DataizedTest.MAX_DATAIZATION, String.valueOf(level) ); final Phi phi = new PhiDec(); new Dataized(phi, logger).take(); if (property != null) { System.getProperties().setProperty( - DataizedTest.MAX_DATAIZATION_LOG_PROPERTY, + DataizedTest.MAX_DATAIZATION, property ); } else { - System.clearProperty(DataizedTest.MAX_DATAIZATION_LOG_PROPERTY); + System.clearProperty(DataizedTest.MAX_DATAIZATION); } } );