Created
April 18, 2019 13:57
-
-
Save TaylanUB/07c9bc459ba4237291a12ebd957fc9a4 to your computer and use it in GitHub Desktop.
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
// Test.java: | |
class Test<LineT extends Line> { | |
private LineT line; | |
private void test() { | |
Serial serial = new Serial(); | |
line.serials.add(serial); // warning: unchceked call to add(E) ... | |
} | |
} | |
// Line.java: | |
import java.util.List; | |
class Line<Foobar extends String> { | |
List<Serial> serials; | |
} | |
// Serial.java: | |
class Serial { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment