Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: components/cronet/android/java/src/org/chromium/net/impl/Preconditions.java

Issue 2339223002: Cronet API Refactoring (Closed)
Patch Set: Rebase & Conflict Resolution Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/java/src/org/chromium/net/impl/Preconditions.java
diff --git a/components/cronet/android/api/src/org/chromium/net/Preconditions.java b/components/cronet/android/java/src/org/chromium/net/impl/Preconditions.java
similarity index 73%
rename from components/cronet/android/api/src/org/chromium/net/Preconditions.java
rename to components/cronet/android/java/src/org/chromium/net/impl/Preconditions.java
index 4abe9612bb8253700a3044dd97335b931a7843ca..a88a6bda66866fee7246b6cdaeec5b03686b581a 100644
--- a/components/cronet/android/api/src/org/chromium/net/Preconditions.java
+++ b/components/cronet/android/java/src/org/chromium/net/impl/Preconditions.java
@@ -2,23 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.net;
+package org.chromium.net.impl;
import java.nio.ByteBuffer;
/**
- * {@hide only used by internal implementation.}
+ * Utility class to check preconditions.
*/
public final class Preconditions {
private Preconditions() {}
- public static void checkDirect(ByteBuffer buffer) {
+ static void checkDirect(ByteBuffer buffer) {
if (!buffer.isDirect()) {
throw new IllegalArgumentException("byteBuffer must be a direct ByteBuffer.");
}
}
- public static void checkHasRemaining(ByteBuffer buffer) {
+ static void checkHasRemaining(ByteBuffer buffer) {
if (!buffer.hasRemaining()) {
throw new IllegalArgumentException("ByteBuffer is already full.");
}

Powered by Google App Engine
This is Rietveld 408576698