diff options
author | David Gageot <david@gageot.net> | 2012-07-16 15:41:56 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-16 15:43:25 +0200 |
commit | a15e8577ff0f4b9e88cdf78e6aaed3ebd6259c50 (patch) | |
tree | 986248cd1b7bc80ecdd3726461528ec55938fea7 /sonar-core | |
parent | 1ae9871a6275f358945da6088084bbd3977de8b6 (diff) | |
download | sonarqube-a15e8577ff0f4b9e88cdf78e6aaed3ebd6259c50.tar.gz sonarqube-a15e8577ff0f4b9e88cdf78e6aaed3ebd6259c50.zip |
Remove warning
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java b/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java index d7f7211feb9..5c53ad77e68 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java @@ -59,42 +59,42 @@ public final class BatchSession implements SqlSession { session.select(statement, handler); } - public Object selectOne(String statement) { + public <T> T selectOne(String statement) { reset(); return session.selectOne(statement); } - public Object selectOne(String statement, Object parameter) { + public <T> T selectOne(String statement, Object parameter) { reset(); return session.selectOne(statement, parameter); } - public List selectList(String statement) { + public <T> List<T> selectList(String statement) { reset(); return session.selectList(statement); } - public List selectList(String statement, Object parameter) { + public <T> List<T> selectList(String statement, Object parameter) { reset(); return session.selectList(statement, parameter); } - public List selectList(String statement, Object parameter, RowBounds rowBounds) { + public <T> List<T> selectList(String statement, Object parameter, RowBounds rowBounds) { reset(); return session.selectList(statement, parameter, rowBounds); } - public Map selectMap(String statement, String mapKey) { + public <K, V> Map<K, V> selectMap(String statement, String mapKey) { reset(); return session.selectMap(statement, mapKey); } - public Map selectMap(String statement, Object parameter, String mapKey) { + public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { reset(); return session.selectMap(statement, parameter, mapKey); } - public Map selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) { + public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) { reset(); return session.selectMap(statement, parameter, mapKey, rowBounds); } |