You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2014/08/25 17:38:59 UTC
svn commit: r1620354 -
/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformerRegistry.java
Author: britter
Date: Mon Aug 25 15:38:59 2014
New Revision: 1620354
URL: http://svn.apache.org/r1620354
Log:
Remove empty lines
Modified:
commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformerRegistry.java
Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformerRegistry.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformerRegistry.java?rev=1620354&r1=1620353&r2=1620354&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformerRegistry.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformerRegistry.java Mon Aug 25 15:38:59 2014
@@ -87,7 +87,6 @@ public class TransformerRegistry {
@Override
public boolean equals(Object obj) {
-
if (obj == this) {
return true;
}
@@ -126,7 +125,6 @@ public class TransformerRegistry {
* instance of the Transformer implementation
*/
public <S, T> void register(Transformer<S, T> transformer) {
-
if (transformer == null) {
throw new IllegalArgumentException("Transformer is missing");
}
@@ -146,7 +144,6 @@ public class TransformerRegistry {
*/
public void registerAll(
Collection<Transformer<? extends Object, ? extends Object>> transformerList) {
-
if (transformerList == null || transformerList.isEmpty()) {
throw new IllegalArgumentException("Transformer list is missing");
}
@@ -167,7 +164,6 @@ public class TransformerRegistry {
* otherwise
*/
public <S, T> boolean deregister(Transformer<S, T> transformer) {
-
if (transformer == null) {
throw new IllegalArgumentException("Transformer is missing");
}
@@ -188,7 +184,6 @@ public class TransformerRegistry {
* otherwise
*/
public <S, T> boolean deregister(Class<S> sourceType, Class<T> targetType) {
-
return deregister(sourceType, targetType);
}
@@ -203,7 +198,6 @@ public class TransformerRegistry {
* otherwise
*/
private boolean deregister(Type sourceType, Type targetType) {
-
Transformer<?, ?> previousValue = transformers
.remove(new TransformerMapKey(sourceType, targetType));
boolean returnVal = true;
@@ -234,7 +228,6 @@ public class TransformerRegistry {
@SuppressWarnings("unchecked")
public <S, T> Transformer<S, T> lookup(Class<S> sourceType,
Class<T> targetType) {
-
TransformerMapKey key = new TransformerMapKey(sourceType, targetType);
if (transformers.containsKey(key)) {