diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-09-12 16:46:30 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-09-12 16:46:30 +0400 |
commit | e4ecab05229b084ed838e8c9f312ba5737d32ad0 (patch) | |
tree | e303f6e46c4443674e37d2e4ce42153b5c0fe001 /plugins/sonar-cpd-plugin | |
parent | 1b3f6adab1dda10eedd8a001610ba48e3e7e531d (diff) | |
download | sonarqube-e4ecab05229b084ed838e8c9f312ba5737d32ad0.tar.gz sonarqube-e4ecab05229b084ed838e8c9f312ba5737d32ad0.zip |
SONAR-1091 Fix ClassCastException with Oracle
Diffstat (limited to 'plugins/sonar-cpd-plugin')
-rw-r--r-- | plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/DbDuplicationsIndex.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/DbDuplicationsIndex.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/DbDuplicationsIndex.java index 9cff050f2ad..6f11397f0bd 100644 --- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/DbDuplicationsIndex.java +++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/DbDuplicationsIndex.java @@ -101,9 +101,9 @@ public class DbDuplicationsIndex { for (List<Object> dbBlock : blocks) { String hash = (String) dbBlock.get(0); String resourceKey = (String) dbBlock.get(1); - int indexInFile = (Integer) dbBlock.get(2); - int startLine = (Integer) dbBlock.get(3); - int endLine = (Integer) dbBlock.get(4); + int indexInFile = ((Number) dbBlock.get(2)).intValue(); + int startLine = ((Number) dbBlock.get(3)).intValue(); + int endLine = ((Number) dbBlock.get(4)).intValue(); Block block = new Block(resourceKey, new ByteArray(hash), indexInFile, startLine, endLine); |