File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
spring-core/src/main/java/org/springframework/core/convert/support Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2020 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.
@@ -503,7 +503,7 @@ private static class Converters {
503
503
private final Set <GenericConverter > globalConverters = new LinkedHashSet <GenericConverter >();
504
504
505
505
private final Map <ConvertiblePair , ConvertersForPair > converters =
506
- new LinkedHashMap <ConvertiblePair , ConvertersForPair >(36 );
506
+ new LinkedHashMap <ConvertiblePair , ConvertersForPair >(256 );
507
507
508
508
public void add (GenericConverter converter ) {
509
509
Set <ConvertiblePair > convertibleTypes = converter .getConvertibleTypes ();
@@ -514,8 +514,7 @@ public void add(GenericConverter converter) {
514
514
}
515
515
else {
516
516
for (ConvertiblePair convertiblePair : convertibleTypes ) {
517
- ConvertersForPair convertersForPair = getMatchableConverters (convertiblePair );
518
- convertersForPair .add (converter );
517
+ getMatchableConverters (convertiblePair ).add (converter );
519
518
}
520
519
}
521
520
}
You can’t perform that action at this time.
0 commit comments