Skip to content

Commit

Permalink
Issue highsource#11. Renamed the list hashcode variable to avoid nami…
Browse files Browse the repository at this point in the history
…ng collision.
  • Loading branch information
highsource committed Dec 1, 2014
1 parent 001a248 commit 75200fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ protected void generate(JBlock block, JVar currentHashCode, JType exposedType,
value.invoke("iterator"));

final JVar listHashCode = block.decl(JMod.NONE,
getCodeModel().INT, "listHashCode",
getCodeModel().INT,
value.name() + "ListHashCode",
JExpr.lit(1));

final JBlock elementBlock = block._while(iterator.invoke("hasNext"))
Expand Down

0 comments on commit 75200fa

Please # to comment.