Make DeclarationInTextSource implement hashCode/equals 97/88997/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Apr 2020 13:59:55 +0000 (15:59 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 9 Apr 2020 20:12:55 +0000 (20:12 +0000)
commitd484064076e5b9f1719e8e95de5b53b710bfe689
tree106ee804fded4d6b9f5751ee42f20cbe3e7f76aa
parent58153d8d37388de94b843ca935c1f83c5256d24a
Make DeclarationInTextSource implement hashCode/equals

In order to de-duplicate warnings, we will want to use
StatementSourceReference as a Set member, for which we need all
implementations to behave correctly w.r.t comparison.

JIRA: YANGTOOLS-1090
Change-Id: I18971e7681c02f56300a64cb08fda4bf4eef613a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/source/DeclarationInTextSource.java