Skip to content

Commit c609264

Browse files
committed
Polishing
1 parent e64b81e commit c609264

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@
6060
import org.springframework.util.StringUtils;
6161

6262
/**
63-
* <b>This is the central class in the JDBC core package.</b>
64-
* It simplifies the use of JDBC and helps to avoid common errors.
63+
* <b>This is the central delegate in the JDBC core package.</b>
64+
* It can be used directly for many data access purposes, supporting any kind
65+
* of JDBC operation. For a more focused and convenient facade on top of this,
66+
* consider {@link org.springframework.jdbc.core.simple.JdbcClient} as of 6.1.
67+
*
68+
* <p>This class simplifies the use of JDBC and helps to avoid common errors.
6569
* It executes core JDBC workflow, leaving application code to provide SQL
6670
* and extract results. This class executes SQL queries or updates, initiating
6771
* iteration over ResultSets and catching JDBC exceptions and translating

spring-jdbc/src/main/java/org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -186,7 +186,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
186186
// Allow for differentiating between the proxy and the raw Connection.
187187
StringBuilder sb = new StringBuilder("Transaction-aware proxy for target Connection ");
188188
if (this.target != null) {
189-
sb.append('[').append(this.target.toString()).append(']');
189+
sb.append('[').append(this.target).append(']');
190190
}
191191
else {
192192
sb.append(" from DataSource [").append(this.targetDataSource).append(']');

0 commit comments

Comments
 (0)