Returns the raw type of T. Formally speaking, if T is returned by java.lang.reflect.Method#getGenericReturnType, the raw type is what's returned by java.lang.reflect.Method#getReturnType of the same method object. Specifically: If T is a Class
()
| 186 | |
| 187 | |
| 188 | public final Class<? super T> getRawType() { |
| 189 | // For wildcard or type variable, the first bound determines the runtime type. |
| 190 | Class<?> rawType = getRawTypes().iterator().next(); |
| 191 | @SuppressWarnings("unchecked") // raw type is |T| |
| 192 | Class<? super T> result = (Class<? super T>) rawType; |
| 193 | return result; |
| 194 | } |
| 195 | |
| 196 | /** Returns the represented type. */ |
| 197 |
no test coverage detected