Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5815

StringBuilder op in CommandContextImpl is created and updated but never used

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 19.0.0.Beta6, 19.0.0.Final
    • None
    • CLI
    • None

    Description

      The StringBuilder op is created and updated, but never used (see below).
      It should be removed, or it should be used if really needed.

      CommandContextImpl.java
      if (parsedCmd.getFormat() == OperationFormat.INSTANCE) {
                      final ModelNode request = this.parsedCmd.toOperationRequest(this);
                      StringBuilder op = new StringBuilder();
                      op.append(prefixFormatter.format(parsedCmd.getAddress()));
                      op.append(line.substring(line.indexOf(':')));
                      return new HandledRequest(request, null);
                  }
      

      Attachments

        Activity

          People

            jdenise@redhat.com Jean Francois Denise
            clara0 Clara Fang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: