Skip to content

Commit dbe3c78

Browse files
committed
Use static import.
1 parent 143e7f7 commit dbe3c78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client/RaggedConstant.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ private static int getMaximumDepthOfEmptyList(
219219

220220
if (instanceFieldPointsToSet.isEmpty())
221221
// An empty list at this field.
222-
maxDepth = Math.max(maxDepth, 0);
222+
maxDepth = max(maxDepth, 0);
223223

224224
for (InstanceKey fieldIK : instanceFieldPointsToSet) {
225225
int depthOfField = getMaximumDepthOfEmptyList(builder, fieldIK);
226-
maxDepth = Math.max(maxDepth, 1 + depthOfField);
226+
maxDepth = max(maxDepth, 1 + depthOfField);
227227
}
228228
}
229229
} else
@@ -237,7 +237,7 @@ private static int getMaximumDepthOfScalars(
237237
PointerAnalysis<InstanceKey> pointerAnalysis = builder.getPointerAnalysis();
238238
int maxDepth = 0;
239239

240-
if (valueIK instanceof ConstantKey) maxDepth = Math.max(maxDepth, 0); // Scalar value.
240+
if (valueIK instanceof ConstantKey) maxDepth = max(maxDepth, 0); // Scalar value.
241241
else {
242242
AllocationSiteInNode asin = getAllocationSiteInNode(valueIK);
243243
TypeReference reference = asin.getConcreteType().getReference();
@@ -267,7 +267,7 @@ private static int getMaximumDepthOfScalars(
267267

268268
for (InstanceKey fieldIK : instanceFieldPointsToSet) {
269269
int depthOfField = getMaximumDepthOfScalars(builder, fieldIK);
270-
maxDepth = Math.max(maxDepth, 1 + depthOfField);
270+
maxDepth = max(maxDepth, 1 + depthOfField);
271271
}
272272
}
273273
} else

0 commit comments

Comments
 (0)