Commit d9042a29 by tonihei Committed by Toni

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
parent 33ef4184
......@@ -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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment