Skip to content

Commit

Permalink
Polishing (aligned with 5.2.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Dec 2, 2020
1 parent 07455c8 commit d5a80d2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -503,7 +503,7 @@ private static class Converters {
private final Set<GenericConverter> globalConverters = new LinkedHashSet<GenericConverter>();

private final Map<ConvertiblePair, ConvertersForPair> converters =
new LinkedHashMap<ConvertiblePair, ConvertersForPair>(36);
new LinkedHashMap<ConvertiblePair, ConvertersForPair>(256);

public void add(GenericConverter converter) {
Set<ConvertiblePair> convertibleTypes = converter.getConvertibleTypes();
Expand All @@ -514,8 +514,7 @@ public void add(GenericConverter converter) {
}
else {
for (ConvertiblePair convertiblePair : convertibleTypes) {
ConvertersForPair convertersForPair = getMatchableConverters(convertiblePair);
convertersForPair.add(converter);
getMatchableConverters(convertiblePair).add(converter);
}
}
}
Expand Down

0 comments on commit d5a80d2

Please sign in to comment.