Copilot commented on code in PR #16277:
URL: https://github.com/apache/grails-core/pull/16277#discussion_r3889935827


##########
grails-quartz/src/main/templates/Job.groovy:
##########
@@ -0,0 +1,11 @@
+package ${packageName}
+
+class ${className}Job {
+    static triggers = {
+      simple repeatInterval: 5000l // execute job once in 5 seconds
+    }

Review Comment:
   Use an uppercase `L` for the long literal and align indentation with the 
rest of the template. Lowercase `l` is easy to misread and differs from the 
Quartz docs in this repo (which use `5000L`).



##########
grails-test-examples/neo4j/test-data-service/grails-app/services/example/StudentService.groovy:
##########
@@ -21,6 +21,7 @@ package example
 
 import grails.gorm.services.Service
 import grails.gorm.transactions.Transactional
+import org.springframework.beans.factory.annotation.Autowired

Review Comment:
   Unused import: Autowired is imported but not referenced anywhere in this 
service. Leaving it in can trigger style/analysis failures and makes the 
example harder to follow.



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

Reply via email to