Commit 5feaf2bc authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Polish empty string checks"

See gh-23550
parent 5cb07e29
...@@ -290,7 +290,7 @@ public class RabbitProperties { ...@@ -290,7 +290,7 @@ public class RabbitProperties {
} }
public void setVirtualHost(String virtualHost) { public void setVirtualHost(String virtualHost) {
this.virtualHost = StringUtils.hasLength(virtualHost) ? virtualHost : "/"; this.virtualHost = StringUtils.hasText(virtualHost) ? virtualHost : "/";
} }
public AddressShuffleMode getAddressShuffleMode() { public AddressShuffleMode getAddressShuffleMode() {
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment