fjtirado commented on code in PR #2191:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/2191#discussion_r1954509723


##########
data-index/data-index-storage/data-index-storage-infinispan/src/main/java/org/kie/kogito/index/infinispan/protostream/ProcessDefinitionMarshaller.java:
##########
@@ -61,7 +62,7 @@ public ProcessDefinition readFrom(ProtoStreamReader reader) 
throws IOException {
         pd.setName(reader.readString(NAME));
         pd.setDescription(reader.readString(DESCRIPTION));
         pd.setAnnotations(reader.readCollection(ANNOTATIONS, new HashSet<>(), 
String.class));
-        pd.setMetadata(buildMetadata(reader));
+        pd.setMetadata(Collections.unmodifiableMap(buildMetadata(reader)));

Review Comment:
   This is a compilation trick to reuse the Map<String,String> stored in 
Hibernate as Map<String,Object> as required by the model change



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to