Skip to content

Commit

Permalink
objectionary#3160 shortened the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed May 14, 2024
1 parent 058015a commit 380976e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions eo-runtime/src/test/java/org/eolang/DataizedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
}
}
);
Expand Down

0 comments on commit 380976e

Please sign in to comment.