File tree Expand file tree Collapse file tree
codegen/codegen-core/src/main/java/software/amazon/smithy/java/codegen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ private JavaCodegenSettings(Builder builder) {
9393 this .defaultProtocol = builder .defaultProtocol ;
9494 this .transportName = builder .transportName ;
9595 this .transportSettings = builder .transportSettings ;
96- this .defaultPlugins = Collections . unmodifiableList (builder .defaultPlugins );
96+ this .defaultPlugins = new ArrayList <> (builder .defaultPlugins );
9797 this .defaultSettings = Collections .unmodifiableList (builder .defaultSettings );
9898 this .relativeDate = builder .relativeDate ;
9999 this .relativeVersion = builder .relativeVersion ;
@@ -166,7 +166,11 @@ public ObjectNode transportSettings() {
166166 }
167167
168168 public List <String > defaultPlugins () {
169- return defaultPlugins ;
169+ return Collections .unmodifiableList (defaultPlugins );
170+ }
171+
172+ public void addDefaultPlugin (String pluginClass ) {
173+ defaultPlugins .add (pluginClass );
170174 }
171175
172176 public List <String > defaultSettings () {
You can’t perform that action at this time.
0 commit comments