summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorShubham Ajmera <shubhamajmera@google.com>2016-09-29 16:34:18 +0100
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>2016-09-29 16:37:09 +0100
commit118de16ee0529955eaca8cc5ce864cac49598c86 (patch)
treeb6c25d330161b4799655d88f5581de797f52c6e2 /annotations/generate_annotated_java_files.py
parentc7609a8b955f976d27286e75b316a1b8a3c404b9 (diff)
Set warnings for unbuffered I/O
The change introduces a new BlockGuard policy to track unbuffered I/O. Policy can be set in the following way: StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectUnbufferedIO().build()); IoTracker generates warnings for unbuffered I/O if the operation could be replaced with a buffered I/O. The change also removes IoTrace class which was called each time an I/O operation was invoked. Bug: 3018772 Test: vogar BlockGuardTest Change-Id: I18d42c3b3ceaf0b4b98cf15914716b20a48e50c8 (cherry picked from commit 7b05c367448843d7e62db4e87a1ac8fae9b0176c )
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions