diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-23 11:42:42 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-23 11:42:42 +0200 |
commit | 9f509a9600f0dafb62d8c9787d94a910762de385 (patch) | |
tree | 22d192a99f05a1489a3c470f8c2c927079d679a1 | |
parent | 8a8788fb4e8eb083935fdca81884f21fb443d6a4 (diff) | |
download | sonarqube-9f509a9600f0dafb62d8c9787d94a910762de385.tar.gz sonarqube-9f509a9600f0dafb62d8c9787d94a910762de385.zip |
Fix some quality flaws
-rw-r--r-- | sonar-channel/src/main/java/org/sonar/channel/ChannelDispatcher.java | 4 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/KeyValue.java | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sonar-channel/src/main/java/org/sonar/channel/ChannelDispatcher.java b/sonar-channel/src/main/java/org/sonar/channel/ChannelDispatcher.java index 57378283de3..f338eadf61f 100644 --- a/sonar-channel/src/main/java/org/sonar/channel/ChannelDispatcher.java +++ b/sonar-channel/src/main/java/org/sonar/channel/ChannelDispatcher.java @@ -133,8 +133,8 @@ public class ChannelDispatcher<O> extends Channel<O> { return this; } - public <OUTPUT> ChannelDispatcher<OUTPUT> build() { - return new ChannelDispatcher<OUTPUT>(this); + public <O> ChannelDispatcher<O> build() { + return new ChannelDispatcher<O>(this); } } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/KeyValue.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/KeyValue.java index 64f8242a723..6f4c4727ae9 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/KeyValue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/KeyValue.java @@ -24,15 +24,15 @@ package org.sonar.api.utils; * * @since 1.10 */ -public class KeyValue<KEY, VALUE> { +public class KeyValue<K, V> { - private KEY key; - private VALUE value; + private K key; + private V value; /** * Creates a key / value object */ - public KeyValue(KEY key, VALUE value) { + public KeyValue(K key, V value) { super(); this.key = key; this.value = value; @@ -41,7 +41,7 @@ public class KeyValue<KEY, VALUE> { /** * @return the key of the couple */ - public KEY getKey() { + public K getKey() { return key; } @@ -50,7 +50,7 @@ public class KeyValue<KEY, VALUE> { * * @param key the key */ - public void setKey(KEY key) { + public void setKey(K key) { this.key = key; } @@ -58,14 +58,14 @@ public class KeyValue<KEY, VALUE> { * * @return the value of the couple */ - public VALUE getValue() { + public V getValue() { return value; } /** * Sets the value of the couple */ - public void setValue(VALUE value) { + public void setValue(V value) { this.value = value; } |