@@ -20,7 +20,6 @@ private DBHelper() {}
2020 * @throws SQLException any database error
2121 */
2222 public static String newSysGuid (Connection conn ) throws SQLException {
23- assert conn != null ;
2423 try (CallableStatement callableStatement = conn .prepareCall ("BEGIN ? := sys_guid(); END;" )) {
2524 callableStatement .registerOutParameter (1 , OracleTypes .RAW );
2625 callableStatement .executeUpdate ();
@@ -38,7 +37,6 @@ public static String newSysGuid(Connection conn) throws SQLException {
3837 */
3938 @ Deprecated
4039 public static String getCurrentSchema (Connection conn ) throws SQLException {
41- assert conn != null ;
4240 try (CallableStatement callableStatement = conn .prepareCall ("BEGIN ? := sys_context('userenv', 'current_schema'); END;" )) {
4341 callableStatement .registerOutParameter (1 , Types .VARCHAR );
4442 callableStatement .executeUpdate ();
@@ -55,7 +53,6 @@ public static String getCurrentSchema(Connection conn) throws SQLException {
5553 */
5654 @ Deprecated
5755 public static Version getDatabaseFrameworkVersion ( Connection conn ) throws SQLException {
58- Objects .requireNonNull (conn );
5956 Version result = new Version ("" );
6057 try (PreparedStatement stmt = conn .prepareStatement ("select ut_runner.version() from dual" ))
6158 {
@@ -84,7 +81,6 @@ public static Version getDatabaseFrameworkVersion( Connection conn ) throws SQLE
8481 */
8582 @ Deprecated
8683 public static String getOracleDatabaseVersion ( Connection conn ) throws SQLException {
87- assert conn != null ;
8884 String result = null ;
8985 try (PreparedStatement stmt = conn .prepareStatement ("select version from product_component_version where product like 'Oracle Database%'" ))
9086 {
@@ -102,7 +98,6 @@ public static String getOracleDatabaseVersion( Connection conn ) throws SQLExcep
10298 * @param conn the connection
10399 */
104100 public static void enableDBMSOutput (Connection conn ) {
105- assert conn != null ;
106101 try (CallableStatement call = conn .prepareCall ("BEGIN dbms_output.enable(NULL); END;" )) {
107102 call .execute ();
108103 } catch (SQLException e ) {
@@ -115,7 +110,6 @@ public static void enableDBMSOutput(Connection conn) {
115110 * @param conn the connection
116111 */
117112 public static void disableDBMSOutput (Connection conn ) {
118- assert conn != null ;
119113 try (CallableStatement call = conn .prepareCall ("BEGIN dbms_output.disable(); END;" )) {
120114 call .execute ();
121115 } catch (SQLException e ) {
0 commit comments