Skip to content

Commit b22ad76

Browse files
committed
Polish
1 parent 8957caf commit b22ad76

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/SimpleStackTracePrinter.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818

1919
import java.io.IOException;
2020

21-
import com.mchange.v1.lang.ClassUtils;
22-
2321
import org.springframework.boot.logging.StackTracePrinter;
22+
import org.springframework.util.ClassUtils;
2423

2524
/**
2625
* Simple {@link StackTracePrinter} used for testing.
@@ -31,7 +30,7 @@ class SimpleStackTracePrinter implements StackTracePrinter {
3130

3231
@Override
3332
public void printStackTrace(Throwable throwable, Appendable out) throws IOException {
34-
out.append("stacktrace:" + ClassUtils.simpleClassName(throwable.getClass()));
33+
out.append("stacktrace:" + ClassUtils.getShortName(throwable.getClass()));
3534
}
3635

3736
}

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/SimpleStackTracePrinter.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818

1919
import java.io.IOException;
2020

21-
import com.mchange.v1.lang.ClassUtils;
22-
2321
import org.springframework.boot.logging.StackTracePrinter;
22+
import org.springframework.util.ClassUtils;
2423

2524
/**
2625
* Simple {@link StackTracePrinter} used for testing.
@@ -31,7 +30,7 @@ class SimpleStackTracePrinter implements StackTracePrinter {
3130

3231
@Override
3332
public void printStackTrace(Throwable throwable, Appendable out) throws IOException {
34-
out.append("stacktrace:" + ClassUtils.simpleClassName(throwable.getClass()));
33+
out.append("stacktrace:" + ClassUtils.getShortName(throwable.getClass()));
3534
}
3635

3736
}

0 commit comments

Comments
 (0)