From 7958d0e6877f38fb9239345fd3433701f22da55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Fri, 4 Jul 2025 10:14:40 +0200 Subject: [PATCH] Remove debug logging --- .../analyzer/NoSuchMethodFailureAnalyzerTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java index 692883ca663..290216113ec 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java @@ -77,7 +77,6 @@ class NoSuchMethodFailureAnalyzerTests { void whenAMethodOnAClassIsMissingThenNoSuchMethodErrorIsAnalyzed() { Throwable failure = createFailureForMissingMethod(); assertThat(failure).isNotNull(); - failure.printStackTrace(); FailureAnalysis analysis = new NoSuchMethodFailureAnalyzer().analyze(failure); assertThat(analysis).isNotNull(); assertThat(analysis.getDescription()) @@ -107,9 +106,8 @@ class NoSuchMethodFailureAnalyzerTests { private Throwable createFailureForMissingMethod() { try { - System.out.println(MimeType.class.getProtectionDomain().getCodeSource().getLocation()); MimeType mimeType = new MimeType("application", "json"); - System.out.println(mimeType.isMoreSpecific(null)); + mimeType.isMoreSpecific(null); return null; } catch (Throwable ex) {