diff options
author | David Gageot <david@gageot.net> | 2012-07-17 09:37:12 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-17 09:37:12 +0200 |
commit | aa6a664a5c7810bbec9f079f91e3ff16106c76c6 (patch) | |
tree | cf0c86b6b7ba8846b8ff0f9e282c96fdbd7e3b57 | |
parent | c483248114cadab291a4a64aa8e8aaeacdbbe610 (diff) | |
download | sonarqube-aa6a664a5c7810bbec9f079f91e3ff16106c76c6.tar.gz sonarqube-aa6a664a5c7810bbec9f079f91e3ff16106c76c6.zip |
Fix warnings.
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java | 20 |
1 files changed, 10 insertions, 10 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..7ee6a6d69f4 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); + return (T) session.selectOne(statement); } - public Object selectOne(String statement, Object parameter) { + public <T> T selectOne(String statement, Object parameter) { reset(); - return session.selectOne(statement, parameter); + return (T) session.selectOne(statement, parameter); } - public List selectList(String statement) { + public <E> List<E> selectList(String statement) { reset(); return session.selectList(statement); } - public List selectList(String statement, Object parameter) { + public <E> List<E> selectList(String statement, Object parameter) { reset(); return session.selectList(statement, parameter); } - public List selectList(String statement, Object parameter, RowBounds rowBounds) { + public <E> List<E> 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); } |