Fix typos
This commit is contained in:
committed by
Stephane Nicoll
parent
cc169c5009
commit
baca62a6c0
@@ -40,9 +40,9 @@ class LocalDebugPortAvailableCondition extends SpringBootCondition {
|
||||
port = RemoteDevToolsProperties.Debug.DEFAULT_LOCAL_PORT;
|
||||
}
|
||||
if (isPortAvailable(port)) {
|
||||
return ConditionOutcome.match("Local debug port availble");
|
||||
return ConditionOutcome.match("Local debug port available");
|
||||
}
|
||||
return ConditionOutcome.noMatch("Local debug port unavailble");
|
||||
return ConditionOutcome.noMatch("Local debug port unavailable");
|
||||
}
|
||||
|
||||
private boolean isPortAvailable(int port) {
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.lang.annotation.Target;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
||||
/**
|
||||
* Restart {@code @Scope} Annotation used to indicate that a bean shoul remain beteen
|
||||
* Restart {@code @Scope} Annotation used to indicate that a bean should remain between
|
||||
* restarts.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
|
||||
@@ -545,7 +545,7 @@ public class Restarter {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link ThreadFactory} that creates a leak safe thead.
|
||||
* {@link ThreadFactory} that creates a leak safe thread.
|
||||
*/
|
||||
private class LeakSafeThreadFactory implements ThreadFactory {
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public class LocalDebugPortAvailableConditionTests {
|
||||
public void portAvailable() throws Exception {
|
||||
ConditionOutcome outcome = getOutcome();
|
||||
assertThat(outcome.isMatch(), equalTo(true));
|
||||
assertThat(outcome.getMessage(), equalTo("Local debug port availble"));
|
||||
assertThat(outcome.getMessage(), equalTo("Local debug port available"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -57,7 +57,7 @@ public class LocalDebugPortAvailableConditionTests {
|
||||
ConditionOutcome outcome = getOutcome();
|
||||
serverSocket.close();
|
||||
assertThat(outcome.isMatch(), equalTo(false));
|
||||
assertThat(outcome.getMessage(), equalTo("Local debug port unavailble"));
|
||||
assertThat(outcome.getMessage(), equalTo("Local debug port unavailable"));
|
||||
}
|
||||
|
||||
private ConditionOutcome getOutcome() {
|
||||
|
||||
Reference in New Issue
Block a user