Skip to content

Commit 320274c

Browse files
committed
Fix StrictMode javadoc copy/paste error.
Change-Id: Idd49111f0a1af6f331cffa0972191b2d4e25a385
1 parent e3f6336 commit 320274c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/java/android/os/StrictMode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)