From 9f509a9600f0dafb62d8c9787d94a910762de385 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 23 Oct 2012 11:42:42 +0200 Subject: [PATCH] Fix some quality flaws --- .../org/sonar/channel/ChannelDispatcher.java | 4 ++-- .../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 extends Channel { return this; } - public ChannelDispatcher build() { - return new ChannelDispatcher(this); + public ChannelDispatcher build() { + return new ChannelDispatcher(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 { +public class KeyValue { - 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 { /** * @return the key of the couple */ - public KEY getKey() { + public K getKey() { return key; } @@ -50,7 +50,7 @@ public class KeyValue { * * @param key the key */ - public void setKey(KEY key) { + public void setKey(K key) { this.key = key; } @@ -58,14 +58,14 @@ public class KeyValue { * * @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; } -- 2.39.5