Skip to content

Commit f9f73aa

Browse files
izeyemhalbritter
authored andcommitted
Polish
See gh-38508
1 parent f613ab8 commit f9f73aa

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/ConcurrentKafkaListenerContainerFactoryConfigurer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private void configureContainer(ContainerProperties container) {
236236
map.from(properties::getLogContainerConfig).to(container::setLogContainerConfig);
237237
map.from(properties::isMissingTopicsFatal).to(container::setMissingTopicsFatal);
238238
map.from(properties::isImmediateStop).to(container::setStopImmediate);
239-
map.from(properties::getObservationEnabled).to(container::setObservationEnabled);
239+
map.from(properties::isObservationEnabled).to(container::setObservationEnabled);
240240
map.from(this.transactionManager).to(container::setTransactionManager);
241241
map.from(this.rebalanceListener).to(container::setConsumerRebalanceListener);
242242
map.from(this.listenerTaskExecutor).to(container::setListenerTaskExecutor);

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ PropertiesKafkaConnectionDetails kafkaConnectionDetails(KafkaProperties properti
9898
map.from(kafkaProducerListener).to(kafkaTemplate::setProducerListener);
9999
map.from(this.properties.getTemplate().getDefaultTopic()).to(kafkaTemplate::setDefaultTopic);
100100
map.from(this.properties.getTemplate().getTransactionIdPrefix()).to(kafkaTemplate::setTransactionIdPrefix);
101-
map.from(this.properties.getTemplate().getObservationEnabled()).to(kafkaTemplate::setObservationEnabled);
101+
map.from(this.properties.getTemplate().isObservationEnabled()).to(kafkaTemplate::setObservationEnabled);
102102
return kafkaTemplate;
103103
}
104104

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ public void setTransactionIdPrefix(String transactionIdPrefix) {
10051005
this.transactionIdPrefix = transactionIdPrefix;
10061006
}
10071007

1008-
public boolean getObservationEnabled() {
1008+
public boolean isObservationEnabled() {
10091009
return this.observationEnabled;
10101010
}
10111011

@@ -1279,7 +1279,7 @@ public void setChangeConsumerThreadName(Boolean changeConsumerThreadName) {
12791279
this.changeConsumerThreadName = changeConsumerThreadName;
12801280
}
12811281

1282-
public boolean getObservationEnabled() {
1282+
public boolean isObservationEnabled() {
12831283
return this.observationEnabled;
12841284
}
12851285

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-access.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Note that each `configuration` sub namespace provides advanced settings based on
150150
[[howto.data-access.spring-data-repositories]]
151151
=== Use Spring Data Repositories
152152
Spring Data can create implementations of `@Repository` interfaces of various flavors.
153-
Spring Boot handles all of that for you, as long as those `@Repositories` are included in one of the <<using#using.auto-configuration.packages,auto-configuration packages>>, typically the package (or a sub-package) of your main application class that is annotated with `@SpringBootApplication` or `@EnableAutoConfiguration`.
153+
Spring Boot handles all of that for you, as long as those `@Repository` annotations are included in one of the <<using#using.auto-configuration.packages,auto-configuration packages>>, typically the package (or a sub-package) of your main application class that is annotated with `@SpringBootApplication` or `@EnableAutoConfiguration`.
154154

155155
For many applications, all you need is to put the right Spring Data dependencies on your classpath.
156156
There is a `spring-boot-starter-data-jpa` for JPA, `spring-boot-starter-data-mongodb` for Mongodb, and various other starters for supported technologies.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ include::code:MySameSiteConfiguration[]
624624
The character encoding behavior of the embedded servlet container for request and response handling can be configured using the `server.servlet.encoding.*` configuration properties.
625625

626626
When a request's `Accept-Language` header indicates a locale for the request it will be automatically mapped to a charset by the servlet container.
627-
Each containers providers default locale to charset mappings and you should verify that they meet your application's needs.
627+
Each container provides default locale to charset mappings and you should verify that they meet your application's needs.
628628
When they do not, use the configprop:server.servlet.encoding.mapping[] configuration property to customize the mappings, as shown in the following example:
629629

630630
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/NestedJarFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ private class RawZipDataInputStream extends FilterInputStream {
814814

815815
private volatile boolean closed;
816816

817-
protected RawZipDataInputStream(InputStream in) {
817+
RawZipDataInputStream(InputStream in) {
818818
super(in);
819819
}
820820

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/UrlJarFileFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ JarFile createJarFile(URL jarFileUrl, Consumer<JarFile> closeAction) throws IOEx
6060
private Runtime.Version getVersion(URL url) {
6161
// The standard JDK handler uses #runtime to indicate that the runtime version
6262
// should be used. This unfortunately doesn't work for us as
63-
// jdk.internal.loaderURLClassPath only adds the runtime fragment when the URL
63+
// jdk.internal.loader.URLClassPath only adds the runtime fragment when the URL
6464
// is using the internal JDK handler. We need to flip the default to use
6565
// the runtime version. See gh-38050
6666
return "base".equals(url.getRef()) ? JarFile.baseVersion() : JarFile.runtimeVersion();

0 commit comments

Comments
 (0)