Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4995879

TTY: remove unused private static Connector findConnector() in TTY.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • core-svc
    • b51
    • generic
    • generic

      Name: tb29552 Date: 02/17/2004


      This is a CDE (Code Deletion Engineering) opportunity:

      This method is declared private in TTY.java:

          private static Connector findConnector(String transportName, List
      availableConnectors) {
              Iterator iter = availableConnectors.iterator();
              while (iter.hasNext()) {
                  Connector connector = (Connector)iter.next();
                  if (connector.transport().name().equals(transportName)) {
                      return connector;
                  }
              }

              // not found
              throw new IllegalArgumentException(MessageOutput.format("Invalid
      transport name:",
                                                                      transportName));
          }

      but it is not used anywhere.


      ======================================================================

            jjh James Holmlund (Inactive)
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: