forked from afcastano/AutoValuePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignores android.os.Parcelable and java.util.* from interface method g…
…eneration. afcastano#14
- Loading branch information
Showing
13 changed files
with
146 additions
and
11 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<idea-plugin version="2"> | ||
<id>com.afcastano.intellij.autovalue</id> | ||
<name>AutoValue plugin</name> | ||
<version>1.0.1</version> | ||
<version>1.0.2</version> | ||
<vendor email="[email protected]" url="https://github.com/afcastano/AutoValuePlugin">AutoValue plugin</vendor> | ||
|
||
<description><![CDATA[ | ||
|
Binary file not shown.
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
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,5 @@ | ||
package android.os; | ||
|
||
public interface Parcelable { | ||
int parcelableMethod(); | ||
} |
16 changes: 16 additions & 0 deletions
16
testData/generatebuilder/withinterfaceignoresblacklisted/BasicTestFile.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,16 @@ | ||
import com.google.auto.value.AutoValue; | ||
import test.Interface1; | ||
import android.os.Parcelable; | ||
import java.util.Map; | ||
|
||
@AutoValue | ||
public abstract class BasicTestFile implements Interface1, Parcelable, Map<String, String> { | ||
|
||
<caret> | ||
public abstract String value(); | ||
|
||
public Integer notAbstract() { | ||
return 0; | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
testData/generatebuilder/withinterfaceignoresblacklisted/BasicTestFile_expected.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,30 @@ | ||
import com.google.auto.value.AutoValue; | ||
import test.Interface1; | ||
import android.os.Parcelable; | ||
import java.util.Map; | ||
|
||
@AutoValue | ||
public abstract class BasicTestFile implements Interface1, Parcelable, Map<String, String> { | ||
|
||
|
||
public abstract String value(); | ||
|
||
public Integer notAbstract() { | ||
return 0; | ||
} | ||
|
||
public static Builder builder() { | ||
return new AutoValue_BasicTestFile.Builder(); | ||
} | ||
|
||
@AutoValue.Builder | ||
public abstract static class Builder { | ||
public abstract Builder method1Interface1(int method1Interface1); | ||
|
||
public abstract Builder method2Interface1(int method2Interface1); | ||
|
||
public abstract Builder value(String value); | ||
|
||
public abstract BasicTestFile build(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
testData/generatecreatemethod/withinterfaceignoresblacklisted/BasicTestFile.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,20 @@ | ||
import com.google.auto.value.AutoValue; | ||
import test.Interface1; | ||
import android.os.Parcelable; | ||
import java.util.Map; | ||
|
||
@AutoValue | ||
public abstract class BasicTestFile implements Interface1, Parcelable, Map<String, String> { | ||
|
||
<caret> | ||
public abstract String value(); | ||
|
||
public int method1Interface2() { | ||
return 3; | ||
} | ||
|
||
public Integer notAbstract() { | ||
return 0; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
testData/generatecreatemethod/withinterfaceignoresblacklisted/BasicTestFile_expected.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,24 @@ | ||
import com.google.auto.value.AutoValue; | ||
import test.Interface1; | ||
import android.os.Parcelable; | ||
import java.util.Map; | ||
|
||
@AutoValue | ||
public abstract class BasicTestFile implements Interface1, Parcelable, Map<String, String> { | ||
|
||
|
||
public abstract String value(); | ||
|
||
public int method1Interface2() { | ||
return 3; | ||
} | ||
|
||
public Integer notAbstract() { | ||
return 0; | ||
} | ||
|
||
public static BasicTestFile create(int method1Interface1, int method2Interface1, String value) { | ||
return new AutoValue_BasicTestFile(method1Interface1, method2Interface1, value); | ||
} | ||
|
||
} |
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,5 @@ | ||
package java.util; | ||
|
||
public interface Map<K,V> { | ||
String mapMethod(); | ||
} |