summaryrefslogtreecommitdiffstats
path: root/sql-resource/provider/src/main
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dt5972@att.com>2018-04-17 13:10:15 -0400
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-04-18 02:24:23 -0400
commit64ee66e381069375dc84f49d42114bb0c0c7b877 (patch)
treeb477d6b90d1577cff1deb8241bd8f77b55652edb /sql-resource/provider/src/main
parentcca8e17ff1487366072aac8720058fe1465d0ea3 (diff)
Remove unnecessary cast
Remove case in decryptColumn(), which (a) is no longer necessary and (b) throws a ClassNotFoundException when loaded via Aries Blueprint Change-Id: Ie5e748e0d53875bd9f912572e24763bdeb9cb82f Issue-ID: CCSDK-244 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Diffstat (limited to 'sql-resource/provider/src/main')
-rwxr-xr-xsql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java b/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java
index dc6f7663..1c0a0087 100755
--- a/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java
+++ b/sql-resource/provider/src/main/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResource.java
@@ -441,7 +441,7 @@ public class SqlResource implements SvcLogicResource, SvcLogicJavaPlugin {
return (strValue);
} else {
ResultSet results = null;
- try (Connection conn = ((DBResourceManager) dblibSvc).getConnection();
+ try (Connection conn = dblibSvc.getConnection();
PreparedStatement stmt = conn.prepareStatement("SELECT CAST(AES_DECRYPT(?, ?) AS CHAR(50)) FROM DUAL")) {
stmt.setBytes(1, colValue);