Skip to content

Commit 2e9d6a1

Browse files
committed
Polishing
1 parent 7e5efdd commit 2e9d6a1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericTableMetaDataProvider.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -258,6 +258,7 @@ public String schemaNameToUse(@Nullable String schemaName) {
258258
return identifierNameToUse(schemaName);
259259
}
260260

261+
@Nullable
261262
private String identifierNameToUse(@Nullable String identifierName) {
262263
if (identifierName == null) {
263264
return null;
@@ -326,8 +327,8 @@ private void locateTableAndProcessMetaData(DatabaseMetaData databaseMetaData,
326327
tables = databaseMetaData.getTables(
327328
catalogNameToUse(catalogName), schemaNameToUse(schemaName), tableNameToUse(tableName), null);
328329
while (tables != null && tables.next()) {
329-
TableMetaData tmd = new TableMetaData(tables.getString("TABLE_CAT"), tables.getString("TABLE_SCHEM"),
330-
tables.getString("TABLE_NAME"));
330+
TableMetaData tmd = new TableMetaData(tables.getString("TABLE_CAT"),
331+
tables.getString("TABLE_SCHEM"), tables.getString("TABLE_NAME"));
331332
if (tmd.schemaName() == null) {
332333
tableMeta.put(this.userName != null ? this.userName.toUpperCase() : "", tmd);
333334
}

Diff for: spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataContext.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,15 @@ public boolean isGeneratedKeysColumnNameArraySupported() {
425425
return obtainMetaDataProvider().isGeneratedKeysColumnNameArraySupported();
426426
}
427427

428+
428429
private static final class QuoteHandler {
429430

430431
@Nullable
431432
private final String identifierQuoteString;
432433

433434
private final boolean quoting;
434435

435-
private QuoteHandler(@Nullable String identifierQuoteString) {
436+
public QuoteHandler(@Nullable String identifierQuoteString) {
436437
this.identifierQuoteString = identifierQuoteString;
437438
this.quoting = StringUtils.hasText(identifierQuoteString);
438439
}

0 commit comments

Comments
 (0)