davsclaus commented on code in PR #10488:
URL: https://github.com/apache/camel/pull/10488#discussion_r1253065513


##########
components/camel-xslt-saxon/src/main/java/org/apache/camel/component/xslt/saxon/XsltSaxonEndpoint.java:
##########
@@ -209,8 +209,7 @@ protected XsltSaxonBuilder createXsltBuilder() throws 
Exception {
             }
         }
 
-        if (factory instanceof TransformerFactoryImpl) {
-            TransformerFactoryImpl tf = (TransformerFactoryImpl) factory;
+        if (factory instanceof TransformerFactoryImpl tf) {

Review Comment:
   This code style is only java 17 and as such this feature cannot be 
backported to 3.x. 
   
   This PR is not related to this change, so its better to keep code as before, 
as it makes backporting bugs and other PRs easier from v4 to v3



-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to