105 throw new RuntimeException("Expected UnknownTypeException not thrown."); |
105 throw new RuntimeException("Expected UnknownTypeException not thrown."); |
106 } catch (UnknownTypeException ute) { |
106 } catch (UnknownTypeException ute) { |
107 ; // Expected |
107 ; // Expected |
108 } |
108 } |
109 |
109 |
110 UnionType unionType = new SimpleTypeVisitor7<UnionType, Void>(){ |
110 UnionType unionType = new SimpleTypeVisitor<UnionType, Void>(){ |
111 @Override |
111 @Override |
112 protected UnionType defaultAction(TypeMirror e, Void p) {return null;} |
112 protected UnionType defaultAction(TypeMirror e, Void p) {return null;} |
113 |
113 |
114 @Override |
114 @Override |
115 public UnionType visitUnion(UnionType t, Void p) {return t;} |
115 public UnionType visitUnion(UnionType t, Void p) {return t;} |