Merge pull request #43934 from quaff
* pr/43934: Polish 'Use isXxx() instead of getXxx() for boolean properties' Use isXxx() instead of getXxx() for boolean properties Closes gh-43934
This commit is contained in:
@@ -151,7 +151,7 @@ public class RabbitConnectionFactoryBeanConfigurer {
|
||||
}
|
||||
map.from(ssl::isValidateServerCertificate)
|
||||
.to((validate) -> factory.setSkipServerCertificateValidation(!validate));
|
||||
map.from(ssl::getVerifyHostname).to(factory::setEnableHostnameVerification);
|
||||
map.from(ssl::isVerifyHostname).to(factory::setEnableHostnameVerification);
|
||||
}
|
||||
map.from(this.rabbitProperties::getConnectionTimeout)
|
||||
.whenNonNull()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
@@ -575,7 +575,7 @@ public class RabbitProperties {
|
||||
this.validateServerCertificate = validateServerCertificate;
|
||||
}
|
||||
|
||||
public boolean getVerifyHostname() {
|
||||
public boolean isVerifyHostname() {
|
||||
return this.verifyHostname;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public class H2ConsoleProperties {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public boolean getEnabled() {
|
||||
public boolean isEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
@@ -34,7 +34,7 @@ public class HateoasProperties {
|
||||
*/
|
||||
private boolean useHalAsDefaultJsonMediaType = true;
|
||||
|
||||
public boolean getUseHalAsDefaultJsonMediaType() {
|
||||
public boolean isUseHalAsDefaultJsonMediaType() {
|
||||
return this.useHalAsDefaultJsonMediaType;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
@@ -53,7 +53,7 @@ public class JmxProperties {
|
||||
*/
|
||||
private RegistrationPolicy registrationPolicy = RegistrationPolicy.FAIL_ON_EXISTING;
|
||||
|
||||
public boolean getEnabled() {
|
||||
public boolean isEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2025 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.
|
||||
@@ -86,7 +86,7 @@ public class MultipartProperties {
|
||||
*/
|
||||
private boolean strictServletCompliance = false;
|
||||
|
||||
public boolean getEnabled() {
|
||||
public boolean isEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user