Skip to content

Commit

Permalink
GH-9818: Fix typos in JavaDocs of JDBC components
Browse files Browse the repository at this point in the history
Fixes: #9818
Issue link: #9818

**Auto-cherry-pick to `6.4.x` & `6.3.x`**
  • Loading branch information
artembilan committed Feb 11, 2025
1 parent 8d506d5 commit 370f308
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2024 the original author or authors.
* Copyright 2016-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 @@ -306,6 +306,19 @@ public String getRenewQuery() {
return this.renewQuery;
}

/**
* The flag to perform a database check query on start or not.
* @param checkDatabaseOnStart false to not perform the database check.
* @since 6.2
*/
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
"and required table is not going be checked.");
}
}

@Override
public void afterPropertiesSet() {
this.deleteQuery = String.format(this.deleteQuery, this.prefix);
Expand Down Expand Up @@ -348,19 +361,6 @@ public void afterSingletonsInstantiated() {
this.readCommittedTransactionTemplate = new TransactionTemplate(this.transactionManager, transactionDefinition);
}

/**
* The flag to perform a database check query on start or not.
* @param checkDatabaseOnStart false to not perform the database check.
* @since 6.2
*/
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
"and required table is not going be checked.");
}
}

@Override
public boolean isAutoStartup() {
return this.checkDatabaseOnStart;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2024 the original author or authors.
* Copyright 2017-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 @@ -193,7 +193,7 @@ public void afterPropertiesSet() {
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
LOGGER.info("The 'JdbcMetadataStore' won't be started automatically " +
"and required table is not going be checked.");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public void afterPropertiesSet() {
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
LOGGER.info("The 'DefaultLockRepository' won't be started automatically " +
LOGGER.info("The 'JdbcChannelMessageStore' won't be started automatically " +
"and required table is not going be checked.");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public void addAllowedPatterns(String... patterns) {
public void setCheckDatabaseOnStart(boolean checkDatabaseOnStart) {
this.checkDatabaseOnStart = checkDatabaseOnStart;
if (!checkDatabaseOnStart) {
logger.info("The 'DefaultLockRepository' won't be started automatically " +
logger.info("The 'JdbcMessageStore' won't be started automatically " +
"and required table is not going be checked.");
}
}
Expand Down

0 comments on commit 370f308

Please sign in to comment.