Change parameter names in some IOException subclasses

XMLWordPrintable

    • b59

        Usually exceptions have constructors with parameter of type String as a "detail massage". Sometimes these parameters are misnamed, e.g.:

            /**
             * Constructs a new {@code ProtocolException} with the
             * specified detail message.
             *
             * @param host the detail message.
             */
            public ProtocolException(String host) {
                super(host);
            }

        It can lead to a confusion. Users can be affected by using autocompletion feature or just by reading constructors' definitions. This inconsistency is visible from the javadoc level as well.

              Assignee:
              Pavel Rappo
              Reporter:
              Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: