Follow

```java.net.URL``` is not a POJO recording a URL as a structured string, it does some "intelligent" things. I should habe never used it as a hash table key.

```$ jshell```
```| Welcome to JShell -- Version 17.0.3.1```
```| For an introduction type: /help intro```
``` ```
```jshell> var u1 = new URL("fr.wikipedia.org/wiki/Sp%C3%A9")```
```u1 ==> fr.wikipedia.org/wiki/Sp%C3%A9
``` ```
```jshell> var u2 = new URL("en.wikipedia.org/wiki/Sp%C3%A9")```
```u2 ==> en.wikipedia.org/wiki/Sp%C3%A9
``` ```
```jshell> u1.equals(u2)```
```$3 ==> true```

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.