Skip to content

Commit 26418e9

Browse files
skel2007frantuma
authored andcommitted
use jdk6 style
1 parent 4dcc2cc commit 26418e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/swagger-core/src/main/java/io/swagger/util/PrimitiveType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,18 +182,18 @@ public ObjectProperty createProperty() {
182182
* Allows to exclude specific classes from KEY_CLASSES mappings to primitive
183183
*
184184
*/
185-
private static Set<String> customExcludedClasses = ConcurrentHashMap.newKeySet();
185+
private static Set<String> customExcludedClasses = Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>());
186186

187187
/**
188188
* Allows to exclude specific classes from EXTERNAL_CLASSES mappings to primitive
189189
*
190190
*/
191-
private static Set<String> customExcludedExternalClasses = ConcurrentHashMap.newKeySet();
191+
private static Set<String> customExcludedExternalClasses = Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>());
192192

193193
/**
194194
* Adds support for custom mapping of classes to primitive types
195195
*/
196-
private static Map<String, PrimitiveType> customClasses = new ConcurrentHashMap<>();
196+
private static Map<String, PrimitiveType> customClasses = new ConcurrentHashMap<String, PrimitiveType>();
197197

198198
/**
199199
* Alternative names for primitive types that have to be supported for

0 commit comments

Comments
 (0)