Skip to content

Commit bd2744f

Browse files
artembilanspring-builds
authored andcommitted
GH-9818: Fix typos in JavaDocs of JDBC components
Fixes: #9818 Issue link: #9818 (cherry picked from commit 370f308)
1 parent 26a72e1 commit bd2744f

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/lock/DefaultLockRepository.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2024 the original author or authors.
2+
* Copyright 2016-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -305,6 +305,19 @@ public String getRenewQuery() {
305305
return this.renewQuery;
306306
}
307307

308+
/**
309+
* The flag to perform a database check query on start or not.
310+
* @param checkDatabaseOnStart false to not perform the database check.
311+
* @since 6.2
312+
*/
313+
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
314+
this.checkDatabaseOnStart = checkDatabaseOnStart;
315+
if (!checkDatabaseOnStart) {
316+
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
317+
"and required table is not going be checked.");
318+
}
319+
}
320+
308321
@Override
309322
public void afterPropertiesSet() {
310323
this.deleteQuery = String.format(this.deleteQuery, this.prefix);
@@ -347,19 +360,6 @@ public void afterSingletonsInstantiated() {
347360
this.readCommittedTransactionTemplate = new TransactionTemplate(this.transactionManager, transactionDefinition);
348361
}
349362

350-
/**
351-
* The flag to perform a database check query on start or not.
352-
* @param checkDatabaseOnStart false to not perform the database check.
353-
* @since 6.2
354-
*/
355-
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
356-
this.checkDatabaseOnStart = checkDatabaseOnStart;
357-
if (!checkDatabaseOnStart) {
358-
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
359-
"and required table is not going be checked.");
360-
}
361-
}
362-
363363
@Override
364364
public boolean isAutoStartup() {
365365
return this.checkDatabaseOnStart;

spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/metadata/JdbcMetadataStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 the original author or authors.
2+
* Copyright 2017-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -193,7 +193,7 @@ public void afterPropertiesSet() {
193193
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
194194
this.checkDatabaseOnStart = checkDatabaseOnStart;
195195
if (!checkDatabaseOnStart) {
196-
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
196+
LOGGER.info("The 'JdbcMetadataStore' won't be started automatically " +
197197
"and required table is not going be checked.");
198198
}
199199
}

spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/store/JdbcChannelMessageStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public void afterPropertiesSet() {
431431
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
432432
this.checkDatabaseOnStart = checkDatabaseOnStart;
433433
if (!checkDatabaseOnStart) {
434-
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
434+
LOGGER.info("The 'JdbcChannelMessageStore' won't be started automatically " +
435435
"and required table is not going be checked.");
436436
}
437437
}

spring-integration-jdbc/src/main/java/org/springframework/integration/jdbc/store/JdbcMessageStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public void addAllowedPatterns(String... patterns) {
368368
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
369369
this.checkDatabaseOnStart = checkDatabaseOnStart;
370370
if (!checkDatabaseOnStart) {
371-
logger.info("The 'DefaultLockRepository' won't be started automatically " +
371+
logger.info("The 'JdbcMessageStore' won't be started automatically " +
372372
"and required table is not going be checked.");
373373
}
374374
}

0 commit comments

Comments
 (0)