File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
org.springframework.core/src/main/java/org/springframework/core/convert Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2010 the original author or authors.
2
+ * Copyright 2002-2011 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.
@@ -279,9 +279,6 @@ public Class<?> getElementType() {
279
279
* Return the element type as a type descriptor.
280
280
*/
281
281
public synchronized TypeDescriptor getElementTypeDescriptor () {
282
- if (!isCollection () && !isArray ()) {
283
- throw new IllegalStateException ("Not a collection or array type" );
284
- }
285
282
if (this .elementType == null ) {
286
283
this .elementType = resolveElementTypeDescriptor ();
287
284
}
@@ -309,9 +306,6 @@ public Class<?> getMapKeyType() {
309
306
* Returns map key type as a type descriptor.
310
307
*/
311
308
public synchronized TypeDescriptor getMapKeyTypeDescriptor () {
312
- if (!isMap ()) {
313
- throw new IllegalStateException ("Not a Map type" );
314
- }
315
309
if (this .mapKeyType == null ) {
316
310
this .mapKeyType = resolveMapKeyTypeDescriptor ();
317
311
}
You can’t perform that action at this time.
0 commit comments