Skip to content

Commit

Permalink
eclipse-ditto#760 use CreateThing for copy policy from constant
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schneider <johannes.schneider@bosch.io>
  • Loading branch information
jokraehe committed Aug 25, 2020
1 parent e9b8ca3 commit 5f175df
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -41,7 +41,6 @@
import org.eclipse.ditto.services.models.connectivity.ExternalMessage;
import org.eclipse.ditto.signals.base.Signal;
import org.eclipse.ditto.signals.commands.things.modify.CreateThing;
import org.eclipse.ditto.signals.commands.things.modify.ModifyThing;

/**
* This mapper creates a {@link org.eclipse.ditto.signals.commands.things.modify.CreateThing} command from
Expand Down Expand Up @@ -157,7 +156,7 @@ private static JsonObject createInlinePolicyJson(final JsonObject thingJson) {

@Nullable
private static String getCopyPolicyFrom(final JsonObject thingJson) {
return thingJson.getValue(ModifyThing.JSON_COPY_POLICY_FROM)
return thingJson.getValue(CreateThing.JSON_COPY_POLICY_FROM)
.orElse(null);
}

Expand Down

0 comments on commit 5f175df

Please sign in to comment.