> This PR proposes to implement `hashCode()` and `equals()` methods for 
> implementations of `PathElement`.
> 
> In doing so, the previous `PathElementImpl` was removed and replaced in favor 
> of distinct `record` implementations, each reflecting its own path element 
> selection type. This also allowed the `PathKind` to be removed as this piece 
> of information is now carried in the sealed type hierarchy. 
> 
> It is worth noting, the implementations resides in the `jdk.internal` package 
> and consequently, they are not exposed to clients. So, we could use pattern 
> matching (for example) internally but not in client code.

Per Minborg has updated the pull request incrementally with one additional 
commit since the last revision:

  Make all PathElements records

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/17651/files
  - new: https://git.openjdk.org/jdk/pull/17651/files/af7fa99d..5685e31a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17651&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17651&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/17651.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17651/head:pull/17651

PR: https://git.openjdk.org/jdk/pull/17651

Reply via email to