diff options
author | Godin <mandrikov@gmail.com> | 2010-10-28 22:07:58 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-10-28 22:07:58 +0000 |
commit | 0c700ae7431a1460d4e615c249299d88ba135768 (patch) | |
tree | af22d34f773f6dbabe27c8779ba5b05cb9d56c14 /sonar-squid | |
parent | 952024c39260ccc98757ee2e1df7c33f2150772f (diff) | |
download | sonarqube-0c700ae7431a1460d4e615c249299d88ba135768.tar.gz sonarqube-0c700ae7431a1460d4e615c249299d88ba135768.zip |
SONAR-1901: Add new rule to report on "Undocumented API"
Diffstat (limited to 'sonar-squid')
-rw-r--r-- | sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java b/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java index c9d1e21dbd9..3a4c53c949d 100644 --- a/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java +++ b/sonar-squid/src/main/java/org/sonar/squid/api/CodeScanner.java @@ -25,15 +25,15 @@ import java.util.List; public abstract class CodeScanner<VISITOR extends CodeVisitor> { - private List<VISITOR> visitors = new ArrayList<VISITOR>(); + private List<CodeVisitor> visitors = new ArrayList<CodeVisitor>(); public abstract Collection<Class<? extends VISITOR>> getVisitorClasses(); - public final void accept(VISITOR visitor) { + public void accept(CodeVisitor visitor) { visitors.add(visitor); } public List<VISITOR> getVisitors() { - return visitors; + return (List<VISITOR>) visitors; } -}
\ No newline at end of file +} |