Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#872 alternative/principled way to handle nullable from supertype
- Loading branch information
Showing
5 changed files
with
100 additions
and
5 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
value-fixture/src/org/immutables/fixture/nullable/FromSupertypeNullable.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,26 @@ | ||
package org.immutables.fixture.nullable; | ||
|
||
import javax.annotation.Nullable; | ||
import org.immutables.value.Value.Immutable; | ||
|
||
interface FromSupertypeNullable { | ||
|
||
interface SuperA { | ||
@Nullable | ||
String a(); | ||
} | ||
|
||
interface SuperB { | ||
@Nullable | ||
String b(); | ||
} | ||
|
||
@Immutable | ||
interface Subtype extends SuperA, SuperB { | ||
@Override | ||
String a(); | ||
|
||
@Override | ||
String 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
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