-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Look for default layout in parents if not specified #119
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
...rocessortest/src/test/resources/GenerateDefaultLayoutMethodNextParentLayout$NoLayout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
package com.airbnb.epoxy; | ||
|
||
import android.support.annotation.LayoutRes; | ||
import java.lang.CharSequence; | ||
import java.lang.Object; | ||
import java.lang.Override; | ||
import java.lang.String; | ||
|
||
/** | ||
* Generated file. Do not modify! */ | ||
public class GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ extends GenerateDefaultLayoutMethodNextParentLayout.NoLayout { | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_() { | ||
super(); | ||
} | ||
|
||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ value(int value) { | ||
this.value = value; | ||
return this; | ||
} | ||
|
||
public int value() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ id(long id) { | ||
super.id(id); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ id(CharSequence key) { | ||
super.id(key); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ id(CharSequence key, long id) { | ||
super.id(key, id); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ layout(@LayoutRes int arg0) { | ||
super.layout(arg0); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ show() { | ||
super.show(); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ show(boolean show) { | ||
super.show(show); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ hide() { | ||
super.hide(); | ||
return this; | ||
} | ||
|
||
@Override | ||
@LayoutRes | ||
protected int getDefaultLayout() { | ||
return 1; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ reset() { | ||
this.value = 0; | ||
super.reset(); | ||
return this; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (o == this) { | ||
return true; | ||
} | ||
if (!(o instanceof GenerateDefaultLayoutMethodNextParentLayout$NoLayout_)) { | ||
return false; | ||
} | ||
if (!super.equals(o)) { | ||
return false; | ||
} | ||
GenerateDefaultLayoutMethodNextParentLayout$NoLayout_ that = (GenerateDefaultLayoutMethodNextParentLayout$NoLayout_) o; | ||
if (value != that.value) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int result = super.hashCode(); | ||
result = 31 * result + value; | ||
return result; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "GenerateDefaultLayoutMethodNextParentLayout$NoLayout_{" + | ||
"value=" + value + | ||
"}" + super.toString(); | ||
} | ||
} |
96 changes: 96 additions & 0 deletions
96
...sortest/src/test/resources/GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
package com.airbnb.epoxy; | ||
|
||
import android.support.annotation.LayoutRes; | ||
import java.lang.CharSequence; | ||
import java.lang.Object; | ||
import java.lang.Override; | ||
import java.lang.String; | ||
|
||
/** | ||
* Generated file. Do not modify! */ | ||
public class GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ extends GenerateDefaultLayoutMethodNextParentLayout.StillNoLayout { | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ id(long id) { | ||
super.id(id); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ id(CharSequence key) { | ||
super.id(key); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ id(CharSequence key, long id) { | ||
super.id(key, id); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ layout(@LayoutRes int arg0) { | ||
super.layout(arg0); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ show() { | ||
super.show(); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ show(boolean show) { | ||
super.show(show); | ||
return this; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ hide() { | ||
super.hide(); | ||
return this; | ||
} | ||
|
||
@Override | ||
@LayoutRes | ||
protected int getDefaultLayout() { | ||
return 1; | ||
} | ||
|
||
@Override | ||
public GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ reset() { | ||
super.reset(); | ||
return this; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (o == this) { | ||
return true; | ||
} | ||
if (!(o instanceof GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_)) { | ||
return false; | ||
} | ||
if (!super.equals(o)) { | ||
return false; | ||
} | ||
GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_ that = (GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_) o; | ||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int result = super.hashCode(); | ||
return result; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "GenerateDefaultLayoutMethodNextParentLayout$StillNoLayout_{" + | ||
"}" + super.toString(); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all these tests!