diff --git a/core/java/android/os/StrictMode.java b/core/java/android/os/StrictMode.java index e9120891b73d5..b9b0549d3fdde 100644 --- a/core/java/android/os/StrictMode.java +++ b/core/java/android/os/StrictMode.java @@ -207,7 +207,7 @@ public final class StrictMode { } /** - * Creates ThreadPolicy instances. Methods whose names start + * Creates {@link ThreadPolicy} instances. Methods whose names start * with {@code detect} specify what problems we should look * for. Methods whose names start with {@code penalty} specify what * we should do when we detect a problem. @@ -218,11 +218,11 @@ public final class StrictMode { * *
For example, detect everything and log anything that's found: *
- * StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder()
+ * StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
* .detectAll()
* .penaltyLog()
* .build();
- * StrictMode.setVmPolicy(policy);
+ * StrictMode.setThreadPolicy(policy);
*
*/
public static final class Builder {