Skip to content

Commit

Permalink
Remove deprecated FixedPageSource constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Oct 9, 2023
1 parent 06c89a4 commit 4f590d5
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,12 @@ public class FixedPageSource
private long completedBytes;
private boolean closed;

/**
* @deprecated This constructor hides the fact {@code pages} are iterated twice.
*/
@Deprecated
public FixedPageSource(Iterable<Page> pages)
{
this(pages.iterator(), memoryUsage(pages));
}

public FixedPageSource(List<Page> pages)
{
this(pages.iterator(), memoryUsage(pages));
}

private static long memoryUsage(Iterable<Page> pages)
private static long memoryUsage(List<Page> pages)
{
long memoryUsageBytes = 0;
for (Page page : pages) {
Expand Down

0 comments on commit 4f590d5

Please sign in to comment.