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:
tonihei 2019-09-02 10:53:18 +01:00 committed by Toni
parent 33ef4184e8
commit d9042a2985

View File

@ -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.
*