phrocker commented on a change in pull request #635: WIP: MINIFICPP-819 - OPC 
Unified Architecture Support
URL: https://github.com/apache/nifi-minifi-cpp/pull/635#discussion_r318577373
 
 

 ##########
 File path: libminifi/include/core/Property.h
 ##########
 @@ -174,6 +174,11 @@ class Property {
   void addAllowedValue(const PropertyValue &value) {
     allowed_values_.push_back(value);
   }
+
+  void clearAllowedValues() {
 
 Review comment:
   Allowed values were add only by the interface ( though we did nothing to 
control that internally ). This creates semantics that keep properties as 
defined elements. While I can see the value in "clearing them" this 
fundamentally changes the protective nature of properties. 
   
   Could we reach a middle ground by using the builder and allowing the builder 
to clear its properties and assigning a new property to what is created? 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to