src/share/jaxws_classes/com/sun/xml/internal/bind/v2/model/nav/ParameterizedTypeImpl.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
57 TypeVariable/*<?>*/[] formals = rawType.getTypeParameters(); 57 TypeVariable/*<?>*/[] formals = rawType.getTypeParameters();
58 // check correct arity of actual type args 58 // check correct arity of actual type args
59 if (formals.length != actualTypeArguments.length) { 59 if (formals.length != actualTypeArguments.length) {
60 throw new MalformedParameterizedTypeException(); 60 throw new MalformedParameterizedTypeException();
61 } 61 }
62 /*
62 for (int i = 0; i < actualTypeArguments.length; i++) { 63 for (int i = 0; i < actualTypeArguments.length; i++) {
63 // check actuals against formals' bounds 64 // check actuals against formals' bounds
64 } 65 }
65 66 */
66 } 67 }
67 68
68 public Type[] getActualTypeArguments() { 69 public Type[] getActualTypeArguments() {
69 return actualTypeArguments.clone(); 70 return actualTypeArguments.clone();
70 } 71 }
94 return true; 95 return true;
95 96
96 Type thatOwner = that.getOwnerType(); 97 Type thatOwner = that.getOwnerType();
97 Type thatRawType = that.getRawType(); 98 Type thatRawType = that.getRawType();
98 99
100 /*
99 if (false) { // Debugging 101 if (false) { // Debugging
100 boolean ownerEquality = (ownerType == null ? 102 boolean ownerEquality = (ownerType == null ?
101 thatOwner == null : 103 thatOwner == null :
102 ownerType.equals(thatOwner)); 104 ownerType.equals(thatOwner));
103 boolean rawEquality = (rawType == null ? 105 boolean rawEquality = (rawType == null ?
112 114
113 System.out.printf("\towner %s\traw %s\ttypeArg %s%n", 115 System.out.printf("\towner %s\traw %s\ttypeArg %s%n",
114 ownerEquality, rawEquality, typeArgEquality); 116 ownerEquality, rawEquality, typeArgEquality);
115 return ownerEquality && rawEquality && typeArgEquality; 117 return ownerEquality && rawEquality && typeArgEquality;
116 } 118 }
119 */
117 120
118 121
119 return 122 return
120 (ownerType == null ? 123 (ownerType == null ?
121 thatOwner == null : 124 thatOwner == null :

mercurial