mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00: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
1 changed files with 6 additions and 7 deletions
|
|
@ -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…
Reference in a new issue