Skip to content

Commit f0ed5ca

Browse files
meisterTcopybara-github
authored andcommitted
Prefer immutable type as return type.
PiperOrigin-RevId: 501491397 Change-Id: Ia638878cb78db7b82aaa800ca82bbafeec0f4218
1 parent 57c5ee3 commit f0ed5ca

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/google/devtools/build/lib/profiler

1 file changed

+1
-1
lines changed

src/main/java/com/google/devtools/build/lib/profiler/Profiler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void clear() {
279279
}
280280

281281
// @ThreadSafe
282-
Iterable<SlowTask> getSlowestTasks() {
282+
ImmutableList<SlowTask> getSlowestTasks() {
283283
// This is slow, but since it only happens during the end of the invocation, it's OK.
284284
Extrema<SlowTask> mergedExtrema = Extrema.max(SIZE);
285285
for (int i = 0; i < SHARDS; i++) {

0 commit comments

Comments
 (0)