Skip to content

Commit 959a8a5

Browse files
remove unnecessary use of local variables
1 parent fe64c33 commit 959a8a5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sqldev/src/main/java/org/utplsql/sqldev/dal/UtplsqlDao.xtend

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ class UtplsqlDao {
364364
AND generated = 'N'
365365
'''
366366
}
367-
val jdbcTemplate = new JdbcTemplate(new SingleConnectionDataSource(conn, true))
368367
val nodes = jdbcTemplate.query(sql, new BeanPropertyRowMapper<Node>(Node), #[objectType])
369368
return nodes
370369
}
@@ -687,7 +686,6 @@ class UtplsqlDao {
687686
FROM tree
688687
'''
689688
}
690-
val jdbcTemplate = new JdbcTemplate(new SingleConnectionDataSource(conn, true))
691689
val nodes = jdbcTemplate.query(sql, new BeanPropertyRowMapper<Node>(Node))
692690
return nodes
693691
}
@@ -856,7 +854,6 @@ class UtplsqlDao {
856854
AND referenced_owner NOT LIKE 'APEX\_______'
857855
AND referenced_type IN ('PACKAGE', 'TYPE', 'PROCEDURE', 'FUNCTION', 'TRIGGER')
858856
'''
859-
val jdbcTemplate = new JdbcTemplate(new SingleConnectionDataSource(conn, true))
860857
val deps = jdbcTemplate.queryForList(sql, String, #[name])
861858
return deps
862859
}

0 commit comments

Comments
 (0)