-
Notifications
You must be signed in to change notification settings - Fork 281
Disabling some "unused" warnings #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
6333f90
09cf3eb
40c4d70
fd2470b
f33efaa
7ce9be0
2547dff
e6e7700
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
|
|
||
| import androidx.annotation.Nullable; | ||
|
|
||
| @SuppressWarnings("Unused") | ||
|
||
| public class WakeLockSnippetsJava extends Activity { | ||
|
|
||
| PowerManager.WakeLock wakeLock; | ||
|
|
@@ -23,6 +24,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | ||
| } | ||
|
|
||
| @SuppressWarnings("Unused") | ||
| // [START android_backgroundwork_wakelock_release_java] | ||
| void doSomethingAndRelease() throws MyException { | ||
| try { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.