Last active
August 29, 2015 14:01
-
-
Save ALRubinger/1787151be3de7287850a 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
Calling: | |
FramedGraph: | |
public <F> F frame(final Vertex vertex, final Class<F> kind) | |
like: | |
final String framedObject = framedGraph.frame(vertex, String.class); | |
...yields: | |
error: incompatible types | |
final TYPE framedObject = framedGraph.frame(vertex, typeToCreate); | |
required: java.lang.String | |
found: Object | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved: had a raw types warning above this line which IntelliJ hides and the JDK compiler doesn't spit out by default. Importing into Eclipse to have a look showed it right away. To enable the warning in IntelliJ: enable "Raw use of pamaterized class" inspection.