fjtirado commented on code in PR #3764:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3764#discussion_r1829810674
##########
api/kogito-events-core/src/main/java/org/kie/kogito/event/process/MultipleProcessInstanceDataEvent.java:
##########
@@ -35,8 +35,16 @@ public MultipleProcessInstanceDataEvent(URI source,
Collection<ProcessInstanceDa
}
public boolean isCompressed() {
- Object extension =
getExtension(MultipleProcessInstanceDataEvent.COMPRESS_DATA);
- return extension instanceof Boolean ? ((Boolean)
extension).booleanValue() : false;
+ return
isCompressed(getExtension(MultipleProcessInstanceDataEvent.COMPRESS_DATA));
+ }
+
+ public static boolean isCompressed(Object extension) {
+ if (extension instanceof Boolean) {
+ return ((Boolean) extension).booleanValue();
Review Comment:
Calling booleanValue(), implicit casting is avoided.
--
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]