Deprecate ReflectionUtils.invokeJdbcMethod (for removal in 5.2)

Issue: SPR-17464
This commit is contained in:
Juergen Hoeller
2018-11-05 12:26:20 +01:00
parent 86846507e2
commit 0a7dcf14f9
2 changed files with 30 additions and 6 deletions

View File

@@ -257,7 +257,9 @@ public abstract class ReflectionUtils {
* @return the invocation result, if any
* @throws SQLException the JDBC API SQLException to rethrow (if any)
* @see #invokeJdbcMethod(java.lang.reflect.Method, Object, Object[])
* @deprecated as of 5.0.11, in favor of custom SQLException handling
*/
@Deprecated
@Nullable
public static Object invokeJdbcMethod(Method method, @Nullable Object target) throws SQLException {
return invokeJdbcMethod(method, target, new Object[0]);
@@ -272,7 +274,9 @@ public abstract class ReflectionUtils {
* @return the invocation result, if any
* @throws SQLException the JDBC API SQLException to rethrow (if any)
* @see #invokeMethod(java.lang.reflect.Method, Object, Object[])
* @deprecated as of 5.0.11, in favor of custom SQLException handling
*/
@Deprecated
@Nullable
public static Object invokeJdbcMethod(Method method, @Nullable Object target, @Nullable Object... args)
throws SQLException {