summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-channel/src/main/java/org/sonar/channel/ChannelDispatcher.java4
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/KeyValue.java16
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;
}