Skip to content

Commit 2fa8d38

Browse files
committed
Move web-specific FailureAnalyzer to a more focused package
This commit moves PortInUseFailureAnalyzer to o.s.b.web.server as its current location means the whole general failure analyzer package has to know about web servers. Closes gh-45524
1 parent 0aeb263 commit 2fa8d38

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,11 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.diagnostics.analyzer;
17+
package org.springframework.boot.web.server;
1818

1919
import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
2020
import org.springframework.boot.diagnostics.FailureAnalysis;
21-
import org.springframework.boot.web.server.PortInUseException;
2221

2322
/**
2423
* A {@code FailureAnalyzer} that performs analysis of failures caused by a

spring-boot-project/spring-boot/src/main/resources/META-INF/spring.factories

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ org.springframework.boot.diagnostics.analyzer.MutuallyExclusiveConfigurationProp
7878
org.springframework.boot.diagnostics.analyzer.NoSuchMethodFailureAnalyzer,\
7979
org.springframework.boot.diagnostics.analyzer.NoUniqueBeanDefinitionFailureAnalyzer,\
8080
org.springframework.boot.diagnostics.analyzer.PatternParseFailureAnalyzer,\
81-
org.springframework.boot.diagnostics.analyzer.PortInUseFailureAnalyzer,\
8281
org.springframework.boot.diagnostics.analyzer.UnboundConfigurationPropertyFailureAnalyzer,\
8382
org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer,\
8483
org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer,\
8584
org.springframework.boot.web.context.MissingWebServerFactoryBeanFailureAnalyzer,\
86-
org.springframework.boot.web.embedded.tomcat.ConnectorStartFailureAnalyzer
85+
org.springframework.boot.web.embedded.tomcat.ConnectorStartFailureAnalyzer,\
86+
org.springframework.boot.web.server.PortInUseFailureAnalyzer
8787

8888
# Failure Analysis Reporters
8989
org.springframework.boot.diagnostics.FailureAnalysisReporter=\

0 commit comments

Comments
 (0)