Nikita Awasthi created NIFI-15665:
-------------------------------------

             Summary: Remove duplicate description call in PROP_BROKER_URI 
(AbstractMQTTProcessor)
                 Key: NIFI-15665
                 URL: https://issues.apache.org/jira/browse/NIFI-15665
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
            Reporter: Nikita Awasthi


The AbstractMQTTProcessor class contains duplicate description() method calls 
for the PROP_BROKER_URI property definition. The first description call is 
redundant since the second call overrides it completely.

Current code:
```java
PROP_BROKER_URI = new PropertyDescriptor.Builder()
    .name("Broker URI")
    .description("The URI to use to connect to the MQTT broker") // <- This 
line is redundant
    .required(true)
    .addValidator(StandardValidators.URI_VALIDATOR)
    .expressionLanguageSupported(ExpressionLanguageScope.ENVIRONMENT)
    .description("The URI to use to connect to the MQTT broker (e.g. 
tcp://localhost:1883). The URI scheme must be defined as tcp for plaintext MQTT 
or ssl for MQTT over SSL/TLS.")
    .build();
```

Expected: Remove the first description() call to improve code clarity and 
ensure developers see the complete description with SSL/TLS information.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to