@@ -20,7 +20,6 @@ private DBHelper() {}
|
20 | 20 | * @throws SQLException any database error
|
21 | 21 | */
|
22 | 22 | public static String newSysGuid(Connection conn) throws SQLException {
|
23 |
| -assert conn != null; |
24 | 23 | try (CallableStatement callableStatement = conn.prepareCall("BEGIN ? := sys_guid(); END;")) {
|
25 | 24 | callableStatement.registerOutParameter(1, OracleTypes.RAW);
|
26 | 25 | callableStatement.executeUpdate();
|
@@ -38,7 +37,6 @@ public static String newSysGuid(Connection conn) throws SQLException {
|
38 | 37 | */
|
39 | 38 | @Deprecated
|
40 | 39 | public static String getCurrentSchema(Connection conn) throws SQLException {
|
41 |
| -assert conn != null; |
42 | 40 | try (CallableStatement callableStatement = conn.prepareCall("BEGIN ? := sys_context('userenv', 'current_schema'); END;")) {
|
43 | 41 | callableStatement.registerOutParameter(1, Types.VARCHAR);
|
44 | 42 | callableStatement.executeUpdate();
|
@@ -55,7 +53,6 @@ public static String getCurrentSchema(Connection conn) throws SQLException {
|
55 | 53 | */
|
56 | 54 | @Deprecated
|
57 | 55 | public static Version getDatabaseFrameworkVersion( Connection conn ) throws SQLException {
|
58 |
| -Objects.requireNonNull(conn); |
59 | 56 | Version result = new Version("");
|
60 | 57 | try (PreparedStatement stmt = conn.prepareStatement("select ut_runner.version() from dual"))
|
61 | 58 | {
|
@@ -84,7 +81,6 @@ public static Version getDatabaseFrameworkVersion( Connection conn ) throws SQLE
|
84 | 81 | */
|
85 | 82 | @Deprecated
|
86 | 83 | public static String getOracleDatabaseVersion( Connection conn ) throws SQLException {
|
87 |
| -assert conn != null; |
88 | 84 | String result = null;
|
89 | 85 | try (PreparedStatement stmt = conn.prepareStatement("select version from product_component_version where product like 'Oracle Database%'"))
|
90 | 86 | {
|
@@ -102,7 +98,6 @@ public static String getOracleDatabaseVersion( Connection conn ) throws SQLExcep
|
102 | 98 | * @param conn the connection
|
103 | 99 | */
|
104 | 100 | public static void enableDBMSOutput(Connection conn) {
|
105 |
| -assert conn != null; |
106 | 101 | try (CallableStatement call = conn.prepareCall("BEGIN dbms_output.enable(NULL); END;")) {
|
107 | 102 | call.execute();
|
108 | 103 | } catch (SQLException e) {
|
@@ -115,7 +110,6 @@ public static void enableDBMSOutput(Connection conn) {
|
115 | 110 | * @param conn the connection
|
116 | 111 | */
|
117 | 112 | public static void disableDBMSOutput(Connection conn) {
|
118 |
| -assert conn != null; |
119 | 113 | try (CallableStatement call = conn.prepareCall("BEGIN dbms_output.disable(); END;")) {
|
120 | 114 | call.execute();
|
121 | 115 | } catch (SQLException e) {
|
|
0 commit comments