Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. @XmlRootElement(name = "relation")
  2. public class Relation {
  3.  
  4. private String type, with;
  5.  
  6. // Keep track of which relation should be marked with dashed lines:
  7. public static String[] dashed = new String[]{"realization", "dependency", "implementation"};
  8.  
  9. // Hashmap with the different kinds of symbols:
  10.  
  11. public static final Map<String, Relation> SYMBOLS;
  12. static {
  13. Map<String, RelationSymbol> out = new HashMap<>();
  14. out.put("inheritance",new FullArrow());
  15. SYMBOLS = Collections.unmodifiableMap(out);
  16. }
  17.  
  18. // Get the error:
  19. Error:(33, 46) java: incompatible types: inference variable V has incompatible bounds
  20. equality constraints: UML.Diagrams.Relation
  21. lower bounds: UML.RelationDrawings.RelationSymbol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement