polishing

This commit is contained in:
Juergen Hoeller
2011-11-28 18:38:26 +00:00
parent 81e9f6cc2c
commit aa7fcb5431
3 changed files with 10 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ import org.springframework.util.ObjectUtils;
/**
* Context about a type to convert from or to.
*
* @author Keith Donald
* @author Andy Clement
* @author Juergen Hoeller
@@ -203,7 +204,7 @@ public class TypeDescriptor {
* @return the type descriptor
*/
public static TypeDescriptor forObject(Object source) {
return source != null ? valueOf(source.getClass()) : null;
return (source != null ? valueOf(source.getClass()) : null);
}
/**
@@ -214,7 +215,7 @@ public class TypeDescriptor {
* @see #getObjectType()
*/
public Class<?> getType() {
return type;
return this.type;
}
/**