tkobayas commented on code in PR #7216:
URL: https://github.com/apache/incubator-kie/pull/7216#discussion_r4374640671


##########
drools-base/src/main/java/org/drools/base/rule/TypeDeclaration.java:
##########
@@ -594,9 +598,22 @@ private static void configurePropertyReactivity( 
TypeDeclaration type, Annotated
     }
 
     private static void configurePropertyChangeSupport( TypeDeclaration type, 
Annotated annotated ) {
-        // only ever switch it on: a DRL declaration may already have made the 
type dynamic
         if ( annotated.hasAnnotation( PropertyChangeSupport.class ) ) {
             type.setDynamic( true );
         }
     }
+
+    private static void configureTimestampAttribute( TypeDeclaration type, 
Annotated annotated ) {
+        Timestamp timestamp = annotated.getTypedAnnotation(Timestamp.class);
+        if (timestamp != null) {
+            type.setTimestampAttribute( timestamp.value() );
+        }
+    }
+
+    private static void configureDurationAttribute( TypeDeclaration type, 
Annotated annotated ) {
+        Duration duration = annotated.getTypedAnnotation(Duration.class);
+        if (duration != null) {
+            type.setDurationAttribute( duration.value() );
+        }
+    }

Review Comment:
   fixed



-- 
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