From: Alexis Laferrière Date: Thu, 23 Jul 2015 15:10:42 +0000 (-0400) Subject: contrib/jwrapper: improve `JavaType::==` X-Git-Tag: v0.7.7~8^2~10 X-Git-Url: http://nitlanguage.org contrib/jwrapper: improve `JavaType::==` Signed-off-by: Alexis Laferrière --- diff --git a/contrib/jwrapper/src/model.nit b/contrib/jwrapper/src/model.nit index 86d0176..7c49790 100644 --- a/contrib/jwrapper/src/model.nit +++ b/contrib/jwrapper/src/model.nit @@ -121,9 +121,10 @@ class JavaType end end - # Comparison based on fully qualified named and generic params - # Ignores primitive array so `a.b.c[][] == a.b.c` - redef fun ==(other) do return other isa JavaType and self.full_id == other.full_id + # Comparison based on fully qualified named + redef fun ==(other) do return other isa JavaType and + self.full_id == other.full_id and + self.is_primitive_array == other.is_primitive_array redef fun hash do return self.full_id.hash end