@@ -78,7 +78,7 @@ public class ExtendedTypeSystem extends TypeSystem {
7878 };
7979
8080 private static final Predicate <Type > IS_ARRAY_PRED = new Predicate <Type >() {
81- public Boolean value (Type t ) { return t .apply (IS_ARRAY ); }
81+ public boolean contains (Type t ) { return t .apply (IS_ARRAY ); }
8282 };
8383
8484 /**
@@ -233,7 +233,7 @@ public Boolean defaultCase(final Type subT) {
233233 if (subT instanceof BottomType ) { return true ; }
234234 else {
235235 return IterUtil .and (superT .ofTypes (), new Predicate <Type >() {
236- public Boolean value (Type t ) { return isSubtype (subT , t , stack ); }
236+ public boolean contains (Type t ) { return isSubtype (subT , t , stack ); }
237237 });
238238 }
239239 }
@@ -242,7 +242,7 @@ public Boolean defaultCase(final Type subT) {
242242 return subT .apply (new TypeAbstractVisitor <Boolean >() {
243243 @ Override public Boolean defaultCase (Type t ) {
244244 return IterUtil .or (superT .ofTypes (), new Predicate <Type >() {
245- public Boolean value (Type t ) { return isSubtype (subT , t , stack ); }
245+ public boolean contains (Type t ) { return isSubtype (subT , t , stack ); }
246246 });
247247 }
248248 public Boolean forVariableType (VariableType t ) { return defaultCase (subT ) ? true : null ; }
@@ -391,13 +391,13 @@ public Boolean forVariableType(final VariableType subT) {
391391
392392 public Boolean forIntersectionType (IntersectionType subT ) {
393393 return IterUtil .or (subT .ofTypes (), new Predicate <Type >() {
394- public Boolean value (Type t ) { return isSubtype (t , superT , stack ); }
394+ public boolean contains (Type t ) { return isSubtype (t , superT , stack ); }
395395 });
396396 }
397397
398398 public Boolean forUnionType (UnionType subT ) {
399399 return IterUtil .and (subT .ofTypes (), new Predicate <Type >() {
400- public Boolean value (Type t ) { return isSubtype (t , superT , stack ); }
400+ public boolean contains (Type t ) { return isSubtype (t , superT , stack ); }
401401 });
402402 }
403403
@@ -1140,7 +1140,7 @@ private Expression unbox(Expression exp, String methodName) {
11401140 try {
11411141 ObjectMethodInvocation inv = lookupMethod (exp , methodName , EMPTY_TYPE_ITERABLE , EMPTY_EXPRESSION_ITERABLE );
11421142 result .setExpression (inv .object ());
1143- result .setArguments (IterUtil . asList (inv .args ()));
1143+ result .setArguments (CollectUtil . makeList (inv .args ()));
11441144 NodeProperties .setMethod (result , inv .method ());
11451145 NodeProperties .setType (result , capture (inv .returnType ()));
11461146 return result ;
@@ -1186,7 +1186,7 @@ private Expression box(Expression exp, ClassType boxedType) {
11861186 exp .getEndLine (), exp .getEndColumn ());
11871187 try {
11881188 MethodInvocation inv = lookupStaticMethod (boxedType , "valueOf" , EMPTY_TYPE_ITERABLE , arguments );
1189- m .setArguments (IterUtil . asList (inv .args ()));
1189+ m .setArguments (CollectUtil . makeList (inv .args ()));
11901190 NodeProperties .setMethod (m , inv .method ());
11911191 NodeProperties .setType (m , capture (inv .returnType ()));
11921192 return m ;
@@ -1198,7 +1198,7 @@ private Expression box(Expression exp, ClassType boxedType) {
11981198 exp .getBeginColumn (), exp .getEndLine (), exp .getEndColumn ());
11991199 try {
12001200 ConstructorInvocation inv = lookupConstructor (boxedType , EMPTY_TYPE_ITERABLE , arguments );
1201- k .setArguments (IterUtil . asList (inv .args ()));
1201+ k .setArguments (CollectUtil . makeList (inv .args ()));
12021202 NodeProperties .setConstructor (k , inv .constructor ());
12031203 NodeProperties .setType (k , boxedType );
12041204 return k ;
@@ -1579,7 +1579,7 @@ private Expression makeArray(ArrayType arrayType, Iterable<? extends Expression>
15791579 // possible in general, but possible in situations in which this method is called), or
15801580 // is an "empty" type name sufficient?
15811581 NodeProperties .setType (tn , arrayType .ofType ());
1582- ArrayInitializer init = new ArrayInitializer (IterUtil . asList (elements ));
1582+ ArrayInitializer init = new ArrayInitializer (CollectUtil . makeList (elements ));
15831583 NodeProperties .setType (init , arrayType );
15841584 NodeProperties .setErasedType (init , erasedType );
15851585 Expression result = new ArrayAllocation (tn , new ArrayAllocation .TypeDescriptor (new ArrayList <Expression >(0 ),
@@ -1812,7 +1812,7 @@ private Iterable<Type> inferTypeArguments(Iterable<? extends VariableType> tpara
18121812 //debug.logValues("Beginning inferTypeArguments", new String[]{ "tparams", "params", "args" },
18131813 // wrap(tparams), wrap(params), wrap(args));
18141814 RecursionStack3 <Type , Type , InferenceMode > stack = RecursionStack3 .make ();
1815- Set <? extends VariableType > tparamSet = CollectUtil .asSet (tparams );
1815+ Set <? extends VariableType > tparamSet = CollectUtil .makeSet (tparams );
18161816
18171817 ConstraintSet constraintsBuilder = EMPTY_CONSTRAINTS ;
18181818 for (Pair <Type , Type > pair : IterUtil .zip (args , params )) {
@@ -2959,7 +2959,7 @@ class LookupMethod extends TypeAbstractVisitor<Iterable<ObjectMethodInvocation>>
29592959
29602960 public LookupMethod (final boolean includePrivate ) {
29612961 _matchMethod = new Predicate <DJMethod >() {
2962- public Boolean value (DJMethod m ) {
2962+ public boolean contains (DJMethod m ) {
29632963 if (m .declaredName ().equals (name )) {
29642964 return includePrivate || !m .accessibility ().equals (Access .PRIVATE );
29652965 }
@@ -3078,7 +3078,7 @@ class LookupMethod extends TypeAbstractVisitor<Iterable<StaticMethodInvocation>>
30783078
30793079 public LookupMethod (final boolean includePrivate ) {
30803080 _matchMethod = new Predicate <DJMethod >() {
3081- public Boolean value (DJMethod m ) {
3081+ public boolean contains (DJMethod m ) {
30823082 if (m .declaredName ().equals (name )) {
30833083 if (includePrivate ) { return m .isStatic (); }
30843084 else { return m .isStatic () && !m .accessibility ().equals (Access .PRIVATE ); }
@@ -3354,7 +3354,7 @@ public boolean containsClass(Type t, final String name) {
33543354 Lambda <Boolean , Predicate <DJClass >> makePred = new Lambda <Boolean , Predicate <DJClass >>() {
33553355 public Predicate <DJClass > value (final Boolean includePrivate ) {
33563356 return new Predicate <DJClass >() {
3357- public Boolean value (DJClass c ) {
3357+ public boolean contains (DJClass c ) {
33583358 if (c .declaredName ().equals (name )) {
33593359 return includePrivate || !c .accessibility ().equals (Access .PRIVATE );
33603360 }
@@ -3371,7 +3371,7 @@ public boolean containsStaticClass(Type t, final String name) {
33713371 Lambda <Boolean , Predicate <DJClass >> makePred = new Lambda <Boolean , Predicate <DJClass >>() {
33723372 public Predicate <DJClass > value (final Boolean includePrivate ) {
33733373 return new Predicate <DJClass >() {
3374- public Boolean value (DJClass c ) {
3374+ public boolean contains (DJClass c ) {
33753375 if (c .declaredName ().equals (name )) {
33763376 if (includePrivate ) { return c .isStatic (); }
33773377 else { return c .isStatic () && !c .accessibility ().equals (Access .PRIVATE ); }
@@ -3419,7 +3419,7 @@ public ClassType lookupClass(Type t, final String name, Iterable<? extends Type>
34193419 Lambda <Boolean , Predicate <DJClass >> makePred = new Lambda <Boolean , Predicate <DJClass >>() {
34203420 public Predicate <DJClass > value (final Boolean includePrivate ) {
34213421 return new Predicate <DJClass >() {
3422- public Boolean value (DJClass c ) {
3422+ public boolean contains (DJClass c ) {
34233423 if (c .declaredName ().equals (name )) {
34243424 return includePrivate || !c .accessibility ().equals (Access .PRIVATE );
34253425 }
@@ -3451,7 +3451,7 @@ public ClassType lookupStaticClass(Type t, final String name, final Iterable<? e
34513451 Lambda <Boolean , Predicate <DJClass >> makePred = new Lambda <Boolean , Predicate <DJClass >>() {
34523452 public Predicate <DJClass > value (final Boolean includePrivate ) {
34533453 return new Predicate <DJClass >() {
3454- public Boolean value (DJClass c ) {
3454+ public boolean contains (DJClass c ) {
34553455 if (c .declaredName ().equals (name )) {
34563456 if (includePrivate ) { return c .isStatic (); }
34573457 else { return c .isStatic () && !c .accessibility ().equals (Access .PRIVATE ); }
0 commit comments