to string
This commit is contained in:
@@ -23,7 +23,6 @@ import org.springframework.binding.convert.ConversionService;
|
||||
import org.springframework.binding.expression.EvaluationException;
|
||||
import org.springframework.binding.expression.Expression;
|
||||
import org.springframework.binding.mapping.Mapping;
|
||||
import org.springframework.core.style.ToStringCreator;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@@ -190,6 +189,6 @@ public class DefaultMapping implements Mapping {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringCreator(this).append(sourceExpression + " -> " + targetExpression).toString();
|
||||
return sourceExpression + " -> " + targetExpression;
|
||||
}
|
||||
}
|
||||
@@ -83,7 +83,7 @@ public class DefaultMappingResults implements MappingResults {
|
||||
return Collections.unmodifiableList(results);
|
||||
}
|
||||
|
||||
protected String toStringCreator() {
|
||||
public String toString() {
|
||||
String sourceString = ClassUtils.getShortName(source.getClass()) + "@"
|
||||
+ ObjectUtils.getIdentityHexString(source);
|
||||
String targetString = ClassUtils.getShortName(target.getClass()) + "@"
|
||||
|
||||
@@ -36,7 +36,7 @@ public class RequiredError extends Result {
|
||||
return "required";
|
||||
}
|
||||
|
||||
protected String toStringCreator() {
|
||||
public String toString() {
|
||||
return new ToStringCreator(this).append("originalValue", originalValue).toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public class SourceAccessError extends Result {
|
||||
}
|
||||
}
|
||||
|
||||
protected String toStringCreator() {
|
||||
public String toString() {
|
||||
return new ToStringCreator(this).append("error", error).toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Success extends Result {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected String toStringCreator() {
|
||||
public String toString() {
|
||||
return new ToStringCreator(this).append("mappedValue", mappedValue).append("originalValue", originalValue)
|
||||
.toString();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class TargetAccessError extends Result {
|
||||
}
|
||||
}
|
||||
|
||||
protected String toStringCreator() {
|
||||
public String toString() {
|
||||
return new ToStringCreator(this).append("error", error).toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public class TypeConversionError extends Result {
|
||||
return targetType;
|
||||
}
|
||||
|
||||
protected String toStringCreator() {
|
||||
public String toString() {
|
||||
return new ToStringCreator(this).append("originalValue", originalValue).append("targetType", targetType)
|
||||
.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user