Code polishing after analysis with FindBugs and PMD.

This commit is contained in:
Erwin Vervaet
2007-03-23 19:30:14 +00:00
parent fb958cfcbf
commit 88aa6a4eef
7 changed files with 9 additions and 18 deletions

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.binding.convert;
import java.io.Serializable;
import org.springframework.core.style.ToStringCreator;
import org.springframework.util.Assert;
@@ -29,7 +27,7 @@ import org.springframework.util.Assert;
*
* @author Keith Donald
*/
public class ConversionExecutor implements Serializable {
public class ConversionExecutor {
/**
* The source value type this executor will attempt to convert from.

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.binding.expression;
import java.io.Serializable;
import org.springframework.core.style.ToStringCreator;
/**
@@ -24,7 +22,7 @@ import org.springframework.core.style.ToStringCreator;
*
* @author Keith Donald
*/
public class EvaluationAttempt implements Serializable {
public class EvaluationAttempt {
/**
* The expression that attempted to evaluate.

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.binding.format;
import java.text.Format;
/**
* Source for shared and commonly used <code>Formatters</code>.
* <p>
@@ -24,7 +22,7 @@ import java.text.Format;
* aren't thread safe: so implementations of this service should take care to
* synchronize them as neccessary.
*
* @see Format
* @see java.text.Format
*
* @author Keith Donald
*/

View File

@@ -46,6 +46,8 @@ public class MethodInvocationException extends NestedRuntimeException {
*/
public MethodInvocationException(MethodSignature methodSignature, Object[] arguments, Exception cause) {
super("Unable to invoke method " + methodSignature + " with arguments " + StylerUtils.style(arguments), cause);
this.methodSignature = methodSignature;
this.arguments = arguments;
}
/**

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.binding.method;
import java.io.Serializable;
import org.springframework.core.style.ToStringCreator;
import org.springframework.util.Assert;
@@ -28,7 +26,7 @@ import org.springframework.util.Assert;
*
* @author Keith Donald
*/
public class MethodSignature implements Serializable {
public class MethodSignature {
/**
* The name of the method, e.g "execute".
@@ -88,7 +86,7 @@ public class MethodSignature implements Serializable {
return false;
}
MethodSignature other = (MethodSignature) obj;
return methodName.equals(methodName) && parameters.equals(other.parameters);
return methodName.equals(other.methodName) && parameters.equals(other.parameters);
}
public int hashCode() {

View File

@@ -15,8 +15,6 @@
*/
package org.springframework.binding.method;
import java.io.Serializable;
import org.springframework.binding.expression.EvaluationContext;
import org.springframework.binding.expression.Expression;
import org.springframework.core.style.ToStringCreator;
@@ -29,7 +27,7 @@ import org.springframework.util.ObjectUtils;
*
* @author Keith Donald
*/
public class Parameter implements Serializable {
public class Parameter {
/**
* The class of the parameter, e.g "springbank.AccountNumber".

View File

@@ -15,7 +15,6 @@
*/
package org.springframework.binding.method;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
@@ -26,7 +25,7 @@ import java.util.List;
*
* @author Keith
*/
public class Parameters implements Serializable {
public class Parameters {
/**
* Canonical instance for an empty parameters list.