-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1423 from immutables/impl-1112
Experimental #1112 requiring Enclosing annotation
- Loading branch information
Showing
11 changed files
with
1,099 additions
and
963 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
19 changes: 19 additions & 0 deletions
19
builder/test/org/immutables/builder/fixture/telescopic/StagedFactory.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,19 @@ | ||
package org.immutables.builder.fixture.telescopic; | ||
|
||
import javax.annotation.Nullable; | ||
import org.immutables.builder.Builder; | ||
import org.immutables.value.Value; | ||
|
||
@Value.Enclosing | ||
@Value.Style(stagedBuilder = true) | ||
public class StagedFactory { | ||
@Builder.Factory | ||
public static String superstring(int theory, String reality, @Nullable Void evidence) { | ||
return theory + " != " + reality + ", " + evidence; | ||
} | ||
|
||
@Builder.Factory | ||
public static String hop(@Builder.Parameter String a, int b) { | ||
return a + b; | ||
} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
value-fixture/src/org/immutables/fixture/HasFirstRedactedCompletely.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,11 @@ | ||
package org.immutables.fixture; | ||
|
||
import org.immutables.value.Value; | ||
|
||
@Value.Style(jdkOnly = true) | ||
@Value.Immutable | ||
public interface HasFirstRedactedCompletely { | ||
@Value.Redacted | ||
int a1(); | ||
int a2(); | ||
} |
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
Oops, something went wrong.