|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2012 the original author or authors. |
| 2 | + * Copyright 2002-2013 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.
|
@@ -61,7 +61,7 @@ public TypedStringValue(String value) {
|
61 | 61 | * @param value the String value
|
62 | 62 | * @param targetType the type to convert to
|
63 | 63 | */
|
64 |
| - public TypedStringValue(String value, Class targetType) { |
| 64 | + public TypedStringValue(String value, Class<?> targetType) { |
65 | 65 | setValue(value);
|
66 | 66 | setTargetType(targetType);
|
67 | 67 | }
|
@@ -101,15 +101,15 @@ public String getValue() {
|
101 | 101 | * for example in BeanFactoryPostProcessors.
|
102 | 102 | * @see PropertyPlaceholderConfigurer
|
103 | 103 | */
|
104 |
| - public void setTargetType(Class targetType) { |
| 104 | + public void setTargetType(Class<?> targetType) { |
105 | 105 | Assert.notNull(targetType, "'targetType' must not be null");
|
106 | 106 | this.targetType = targetType;
|
107 | 107 | }
|
108 | 108 |
|
109 | 109 | /**
|
110 | 110 | * Return the type to convert to.
|
111 | 111 | */
|
112 |
| - public Class getTargetType() { |
| 112 | + public Class<?> getTargetType() { |
113 | 113 | Object targetTypeValue = this.targetType;
|
114 | 114 | if (!(targetTypeValue instanceof Class)) {
|
115 | 115 | throw new IllegalStateException("Typed String value does not carry a resolved target type");
|
@@ -153,11 +153,11 @@ public boolean hasTargetType() {
|
153 | 153 | * @return the resolved type to convert to
|
154 | 154 | * @throws ClassNotFoundException if the type cannot be resolved
|
155 | 155 | */
|
156 |
| - public Class resolveTargetType(ClassLoader classLoader) throws ClassNotFoundException { |
| 156 | + public Class<?> resolveTargetType(ClassLoader classLoader) throws ClassNotFoundException { |
157 | 157 | if (this.targetType == null) {
|
158 | 158 | return null;
|
159 | 159 | }
|
160 |
| - Class resolvedClass = ClassUtils.forName(getTargetTypeName(), classLoader); |
| 160 | + Class<?> resolvedClass = ClassUtils.forName(getTargetTypeName(), classLoader); |
161 | 161 | this.targetType = resolvedClass;
|
162 | 162 | return resolvedClass;
|
163 | 163 | }
|
|
0 commit comments