Skip to content

Commit

Permalink
use a LinkedHashMap for better ordering of members in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Dec 21, 2024
1 parent fa4cd9e commit 414e4ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -172,7 +173,7 @@ public AnnotationMetaEntity(
this.element = element;
this.context = context;
this.managed = managed;
this.members = new HashMap<>();
this.members = new LinkedHashMap<>();
this.quarkusInjection = context.isQuarkusInjection();
this.importContext = parent != null ? parent : new ImportContextImpl( getPackageName( context, element ) );
jakartaDataStaticModel = jakartaDataStaticMetamodel;
Expand Down

0 comments on commit 414e4ee

Please sign in to comment.