From 445e5ed88cb895083aa0535330de8c1db09219fa Mon Sep 17 00:00:00 2001 From: Chase Coalwell Date: Mon, 18 May 2020 10:47:41 -0700 Subject: [PATCH] Fix putProperty doc example (#438) --- .../software/amazon/smithy/model/loader/ModelAssembler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java b/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java index d9e913a7546..ca1192ae191 100644 --- a/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java +++ b/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java @@ -432,7 +432,7 @@ private ModelAssembler addDiscoveredModels(List urls) { * *
{@code
      * ModelAssembler assembler = Model.assembler();
-     * assembler.putLoaderVisitorSetting(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true);
+     * assembler.putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true);
      * }
* * @param setting Name of the property to put.