use of com.yahoo.vespa.hosted.controller.application.Change in project vespa by vespa-engine.
the class ApplicationSerializer method changeFromSlime.
private Change changeFromSlime(Inspector object) {
if (!object.valid())
return Change.empty();
Inspector versionFieldValue = object.field(versionField);
Change change = Change.empty();
if (versionFieldValue.valid())
change = Change.of(Version.fromString(versionFieldValue.asString()));
if (object.field(applicationBuildNumberField).valid())
change = change.with(applicationVersionFromSlime(object));
if (// A deploy object with no fields -> unknown application change
!change.isPresent())
change = Change.empty();
return change;
}
Aggregations