Polish "Polish empty string checks"

See gh-23550
This commit is contained in:
Stephane Nicoll 2020-10-05 10:42:19 +02:00
parent 5cb07e292d
commit 5feaf2bc1a
3 changed files with 3 additions and 3 deletions

View File

@ -290,7 +290,7 @@ public class RabbitProperties {
}
public void setVirtualHost(String virtualHost) {
this.virtualHost = StringUtils.hasLength(virtualHost) ? virtualHost : "/";
this.virtualHost = StringUtils.hasText(virtualHost) ? virtualHost : "/";
}
public AddressShuffleMode getAddressShuffleMode() {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.