Skip to content

Deprecate/Remove internal APIs in ScriptUtils implementations #26947

@sbrannen

Description

@sbrannen

Overview

Various utility methods in the ScriptUtils implementations in spring-jdbc and spring-r2dbc are public but should not be since they are effectively internal APIs that no external client should call.

Public due to historical reasons in spring-jdbc

Some of these utility methods are public because of historical reasons -- for example, many of the public methods in ScriptUtils in spring-jdbc are only public because they were once invoked from JdbdTestUtils in spring-test, which is no longer the case.

Public by accident in spring-r2dbc

Some of these utility methods are public by accident -- for example, many of the public methods in ScriptUtils in spring-r2dbc are only public because they were copied from ScriptUtils in spring-jdbc without changing the visibility.

Methods to deprecate

  • splitSqlScript(...)
  • readScript(...)
  • containsSqlScriptDelimiters()

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions