Skip to content

URL.setProtocol doesn't #1

@hjellinek

Description

@hjellinek

Hi Julius,
urlplus has saved me some work. Thanks for writing it.

I discovered that the setProtocol method doesn't actually change 'this.' I fixed it in my copy:

public URL setProtocol(String protocol) throws IllegalArgumentException {
this.protocol = Protocol.valueOf(protocol.toLowerCase());
return this;
}

and I've added a unit test. I also fixed a couple of JavaDoc errors. Would you like me to send you my changes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions