Skip to content

Use isXxx() instead of getXxx() for boolean property #43934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void configure(RabbitConnectionFactoryBean factory) {
}
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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -575,10 +575,21 @@ public void setValidateServerCertificate(boolean validateServerCertificate) {
this.validateServerCertificate = validateServerCertificate;
}

/**
* Returns verifyHostname.
* @return verifyHostname
* @deprecated since 3.5.0 for removal in 3.7.0 in favor of
* {@link #isVerifyHostname()}
*/
@Deprecated(since = "3.5.0", forRemoval = true)
public boolean getVerifyHostname() {
return this.verifyHostname;
}

public boolean isVerifyHostname() {
return this.verifyHostname;
}

public void setVerifyHostname(boolean verifyHostname) {
this.verifyHostname = verifyHostname;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void setPath(String path) {
this.path = path;
}

public boolean getEnabled() {
public boolean isEnabled() {
return this.enabled;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -34,7 +34,7 @@ public class HateoasProperties {
*/
private boolean useHalAsDefaultJsonMediaType = true;

public boolean getUseHalAsDefaultJsonMediaType() {
public boolean isUseHalAsDefaultJsonMediaType() {
return this.useHalAsDefaultJsonMediaType;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -53,7 +53,7 @@ public class JmxProperties {
*/
private RegistrationPolicy registrationPolicy = RegistrationPolicy.FAIL_ON_EXISTING;

public boolean getEnabled() {
public boolean isEnabled() {
return this.enabled;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -86,7 +86,7 @@ public class MultipartProperties {
*/
private boolean strictServletCompliance = false;

public boolean getEnabled() {
public boolean isEnabled() {
return this.enabled;
}

Expand Down
Loading