Skip to content

Fix inherited method being written twice inside generated ViewState when using modifiers#259

Open
bejibx wants to merge 5 commits intoArello-Mobile:developfrom
bejibx:inherited-method-bug
Open

Fix inherited method being written twice inside generated ViewState when using modifiers#259
bejibx wants to merge 5 commits intoArello-Mobile:developfrom
bejibx:inherited-method-bug

Conversation

@bejibx
Copy link
Copy Markdown

@bejibx bejibx commented Jun 26, 2019

Latest version of Moxy (1.5.6) compare interface methods with superclass methods using TypeSpec#equal(Object), which leads to methods not being equal when we rename parameter in overriden method or add modifier to it (final for example). This leads to those methods are generated multiple times inside ViewState which breaks build. I change this logic to compare methods only be name and parameter types sequentially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant