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 11/*
2- * Copyright 2002-2016 the original author or authors.
2+ * Copyright 2002-2020 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -503,7 +503,7 @@ private static class Converters {
503503 private final Set <GenericConverter > globalConverters = new LinkedHashSet <GenericConverter >();
504504
505505 private final Map <ConvertiblePair , ConvertersForPair > converters =
506- new LinkedHashMap <ConvertiblePair , ConvertersForPair >(36 );
506+ new LinkedHashMap <ConvertiblePair , ConvertersForPair >(256 );
507507
508508 public void add (GenericConverter converter ) {
509509 Set <ConvertiblePair > convertibleTypes = converter .getConvertibleTypes ();
@@ -514,8 +514,7 @@ public void add(GenericConverter converter) {
514514 }
515515 else {
516516 for (ConvertiblePair convertiblePair : convertibleTypes ) {
517- ConvertersForPair convertersForPair = getMatchableConverters (convertiblePair );
518- convertersForPair .add (converter );
517+ getMatchableConverters (convertiblePair ).add (converter );
519518 }
520519 }
521520 }
You can’t perform that action at this time.
0 commit comments