Skip to content

Commit 5da7327

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 478f13d commit 5da7327

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.
@@ -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

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
@@ -428,7 +428,7 @@ public void afterPropertiesSet() {
428428
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
429429
this.checkDatabaseOnStart = checkDatabaseOnStart;
430430
if (!checkDatabaseOnStart) {
431-
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
431+
LOGGER.info("The 'JdbcChannelMessageStore' won't be started automatically " +
432432
"and required table is not going be checked.");
433433
}
434434
}

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
@@ -367,7 +367,7 @@ public void addAllowedPatterns(String... patterns) {
367367
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
368368
this.checkDatabaseOnStart = checkDatabaseOnStart;
369369
if (!checkDatabaseOnStart) {
370-
logger.info("The 'DefaultLockRepository' won't be started automatically " +
370+
logger.info("The 'JdbcMessageStore' won't be started automatically " +
371371
"and required table is not going be checked.");
372372
}
373373
}

0 commit comments

Comments
 (0)