mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00
Move effectively private method further down.
@VisibleForTesting sets the actual visiblity to private (except for tests), so the method should be further down in code. PiperOrigin-RevId: 266746628
This commit is contained in:
parent
33ef4184e8
commit
d9042a2985
@ -381,13 +381,6 @@ public class DefaultHttpDataSource extends BaseDataSource implements HttpDataSou
|
||||
}
|
||||
}
|
||||
|
||||
/** Creates an {@link HttpURLConnection} that is connected with the {@code url}. */
|
||||
@VisibleForTesting
|
||||
/* package */
|
||||
HttpURLConnection openConnection(URL url) throws IOException {
|
||||
return (HttpURLConnection) url.openConnection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current connection, or null if the source is not currently opened.
|
||||
*
|
||||
@ -568,6 +561,12 @@ public class DefaultHttpDataSource extends BaseDataSource implements HttpDataSou
|
||||
return connection;
|
||||
}
|
||||
|
||||
/** Creates an {@link HttpURLConnection} that is connected with the {@code url}. */
|
||||
@VisibleForTesting
|
||||
/* package */ HttpURLConnection openConnection(URL url) throws IOException {
|
||||
return (HttpURLConnection) url.openConnection();
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles a redirect.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user