Skip to content

Commit 370f308

Browse files
committed
GH-9818: Fix typos in JavaDocs of JDBC components
Fixes: #9818 Issue link: #9818 **Auto-cherry-pick to `6.4.x` & `6.3.x`**
1 parent 8d506d5 commit 370f308

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

+14-14
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.
@@ -306,6 +306,19 @@ public String getRenewQuery() {
306306
return this.renewQuery;
307307
}
308308

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

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

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

+2-2
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public void afterPropertiesSet() {
417417
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
418418
this.checkDatabaseOnStart = checkDatabaseOnStart;
419419
if (!checkDatabaseOnStart) {
420-
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
420+
LOGGER.info("The 'JdbcChannelMessageStore' won't be started automatically " +
421421
"and required table is not going be checked.");
422422
}
423423
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public void addAllowedPatterns(String... patterns) {
356356
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
357357
this.checkDatabaseOnStart = checkDatabaseOnStart;
358358
if (!checkDatabaseOnStart) {
359-
logger.info("The 'DefaultLockRepository' won't be started automatically " +
359+
logger.info("The 'JdbcMessageStore' won't be started automatically " +
360360
"and required table is not going be checked.");
361361
}
362362
}

0 commit comments

Comments
 (0)