File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ public String toString() {
207207 }
208208
209209 /**
210- * Creates ThreadPolicy instances. Methods whose names start
210+ * Creates {@link ThreadPolicy} instances. Methods whose names start
211211 * with {@code detect} specify what problems we should look
212212 * for. Methods whose names start with {@code penalty} specify what
213213 * we should do when we detect a problem.
@@ -218,11 +218,11 @@ public String toString() {
218218 *
219219 * <p>For example, detect everything and log anything that's found:
220220 * <pre>
221- * StrictMode.VmPolicy policy = new StrictMode.VmPolicy .Builder()
221+ * StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy .Builder()
222222 * .detectAll()
223223 * .penaltyLog()
224224 * .build();
225- * StrictMode.setVmPolicy (policy);
225+ * StrictMode.setThreadPolicy (policy);
226226 * </pre>
227227 */
228228 public static final class Builder {
You can’t perform that action at this time.
0 commit comments