Skip to content

Commit 2212b45

Browse files
MichalFoksaspencergibb
authored andcommitted
Assert message corrected. (spring-cloud#335)
"the object argument `must be` null" should be "the object argument `must not be` null"
1 parent d2c5b48 commit 2212b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-kubernetes-discovery/src/main/java/org/springframework/cloud/kubernetes/discovery/KubernetesDiscoveryClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public String description() {
9999
@Override
100100
public List<ServiceInstance> getInstances(String serviceId) {
101101
Assert.notNull(serviceId,
102-
"[Assertion failed] - the object argument must be null");
102+
"[Assertion failed] - the object argument must not be null");
103103

104104
Endpoints endpoints = this.client.endpoints().withName(serviceId).get();
105105
List<EndpointSubset> subsets = getSubsetsFromEndpoints(endpoints);

0 commit comments

Comments
 (0)