gnodet-bot commented on code in PR #31286:
URL: https://github.com/apache/camel/pull/31286#discussion_r4772774836


##########
core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java:
##########
@@ -150,6 +150,10 @@ public abstract class BaseMainSupport extends BaseService {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(BaseMainSupport.class);
 
+    // the options that must be known before the CamelContext is built (see 
loadEarlyProperties)
+    private static final String EARLY_OPTIONS
+            = "camel.main.virtualThreadsEnabled and 
camel.main.typeConverterStatisticsEnabled";

Review Comment:
   ⚠️ **Nit:** The `EARLY_OPTIONS` constant hardcodes the two option names. If 
a third option is added to `loadEarlyProperties` (or a new `configureXxxEarly` 
method), the WARN message will silently become incorrect — no compiler or test 
will catch the drift. Consider extending the comment to reference the methods 
that must stay in sync:
   
   ```suggestion
       // the options that must be known before the CamelContext is built (see 
loadEarlyProperties)
       // keep in sync with configureVirtualThreadsEarly and 
configureTypeConverterStatisticsEarly
       private static final String EARLY_OPTIONS
               = "camel.main.virtualThreadsEnabled and 
camel.main.typeConverterStatisticsEnabled";
   ```



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