Skip to content

Commit e9ebec2

Browse files
authored
Factory method for LinkedHashMap and LinkedHashSet is always there for SequencedSet and SequencedMap (#3990)
1 parent aff971d commit e9ebec2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

processor/src/main/java/org/mapstruct/ap/internal/model/common/TypeFactory.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,11 @@ public TypeFactory(ElementUtils elementUtils, TypeUtils typeUtils, FormattingMes
152152
);
153153
implementationTypes.put(
154154
JavaCollectionConstants.SEQUENCED_SET_FQN,
155-
sourceVersionAtLeast19 ?
156-
withFactoryMethod( getType( LinkedHashSet.class ), LINKED_HASH_SET_FACTORY_METHOD_NAME ) :
157-
withLoadFactorAdjustment( getType( LinkedHashSet.class ) )
155+
withFactoryMethod( getType( LinkedHashSet.class ), LINKED_HASH_SET_FACTORY_METHOD_NAME )
158156
);
159157
implementationTypes.put(
160158
JavaCollectionConstants.SEQUENCED_MAP_FQN,
161-
sourceVersionAtLeast19 ?
162-
withFactoryMethod( getType( LinkedHashMap.class ), LINKED_HASH_MAP_FACTORY_METHOD_NAME ) :
163-
withLoadFactorAdjustment( getType( LinkedHashMap.class ) )
159+
withFactoryMethod( getType( LinkedHashMap.class ), LINKED_HASH_MAP_FACTORY_METHOD_NAME )
164160
);
165161

166162
this.loggingVerbose = loggingVerbose;

0 commit comments

Comments
 (0)