We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca13e7b commit ab14af1Copy full SHA for ab14af1
1 file changed
config-object-store/src/main/java/org/hypertrace/config/objectstore/IdentifiedObjectStoreWithFilter.java
@@ -77,6 +77,14 @@ private Optional<ContextualConfigObject<T>> filterObject(
77
78
private ContextualConfigObject<T> updateConfigData(
79
ContextualConfigObject<T> configObject, T updatedData) {
80
- return ((ContextualConfigObjectImpl) configObject).toBuilder().data(updatedData).build();
+ return new ContextualConfigObjectImpl<>(
81
+ configObject.getContext(),
82
+ updatedData,
83
+ configObject.getCreationTimestamp(),
84
+ configObject.getCreatedByEmail(),
85
+ configObject.getLastUserUpdateTimestamp(),
86
+ configObject.getLastUserUpdateEmail(),
87
+ configObject.getLastUpdatedTimestamp(),
88
+ configObject.getLastUpdateEmail());
89
}
90
0 commit comments