From 2621d2e1dc9cf346affe8cfcec66417b57085504 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 1 Mar 2014 06:44:23 -0500 Subject: [PATCH] checkstyle corrections and Javadoc update Former-commit-id: 2bec74eecf56f5a758234edbbaccc146da32c835 --- .../org/owasp/dependencycheck/utils/Pair.java | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Pair.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Pair.java index eee908a09..6b13d8700 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Pair.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/utils/Pair.java @@ -20,9 +20,12 @@ package org.owasp.dependencycheck.utils; /** * A generic pair of elements. * + * @param the type for the left element in the pair + * @param the type for the right element in the pair + * * @author Jeremy Long */ -public class Pair { +public class Pair { /** * Constructs a new empty pair. @@ -36,52 +39,52 @@ public class Pair { * @param left the value for the left pair * @param right the value for the right pair */ - public Pair(K left, V right) { + public Pair(L left, R right) { this.left = left; this.right = right; } /** * The left element of the pair. */ - private K left = null; + private L left = null; /** - * Get the value of left + * Get the value of left. * * @return the value of left */ - public K getLeft() { + public L getLeft() { return left; } /** - * Set the value of left + * Set the value of left. * * @param left new value of left */ - public void setLeft(K left) { + public void setLeft(L left) { this.left = left; } /** * The right element of the pair. */ - private V right = null; + private R right = null; /** - * Get the value of right + * Get the value of right. * * @return the value of right */ - public V getRight() { + public R getRight() { return right; } /** - * Set the value of right + * Set the value of right. * * @param right new value of right */ - public void setRight(V right) { + public void setRight(R right) { this.right = right; }