1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -57,10 +57,10 @@ public TypeMismatchException(PropertyChangeEvent propertyChangeEvent, Class<?> r
57
57
*/
58
58
public TypeMismatchException (PropertyChangeEvent propertyChangeEvent , Class <?> requiredType , Throwable cause ) {
59
59
super (propertyChangeEvent ,
60
- "Failed to convert property value of type ' " +
61
- ClassUtils .getDescriptiveType (propertyChangeEvent .getNewValue ()) + "' " +
60
+ "Failed to convert property value of type [ " +
61
+ ClassUtils .getDescriptiveType (propertyChangeEvent .getNewValue ()) + "] " +
62
62
(requiredType != null ?
63
- " to required type ' " + ClassUtils .getQualifiedName (requiredType ) + "' " : "" ) +
63
+ " to required type [ " + ClassUtils .getQualifiedName (requiredType ) + "] " : "" ) +
64
64
(propertyChangeEvent .getPropertyName () != null ?
65
65
" for property '" + propertyChangeEvent .getPropertyName () + "'" : "" ),
66
66
cause );
@@ -84,16 +84,16 @@ public TypeMismatchException(Object value, Class<?> requiredType) {
84
84
* @param cause the root cause (may be {@code null})
85
85
*/
86
86
public TypeMismatchException (Object value , Class <?> requiredType , Throwable cause ) {
87
- super ("Failed to convert value of type ' " + ClassUtils .getDescriptiveType (value ) + "' " +
88
- (requiredType != null ? " to required type ' " + ClassUtils .getQualifiedName (requiredType ) + "' " : "" ),
87
+ super ("Failed to convert value of type [ " + ClassUtils .getDescriptiveType (value ) + "] " +
88
+ (requiredType != null ? " to required type [ " + ClassUtils .getQualifiedName (requiredType ) + "] " : "" ),
89
89
cause );
90
90
this .value = value ;
91
91
this .requiredType = requiredType ;
92
92
}
93
93
94
94
95
95
/**
96
- * Return the offending value (may be {@code null})
96
+ * Return the offending value (may be {@code null}).
97
97
*/
98
98
@ Override
99
99
public Object getValue () {
0 commit comments