Skip to content

Commit 9b4201f

Browse files
Jami CogswellJami Cogswell
authored andcommitted
update FileService
1 parent 1e01657 commit 9b4201f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

java/ql/test/experimental/query-tests/security/CWE-200/FileService.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import java.io.FileOutputStream;
2-
2+
import android.os.IBinder;
33
import android.app.Service;
44
import android.content.Intent;
55
import android.net.Uri;
66
import android.os.Bundle;
77
import android.os.AsyncTask;
8-
import android.os.IBinder;
98

109
public class FileService extends Service {
1110
public static String KEY_LOCAL_FILE = "local_file";
@@ -28,11 +27,6 @@ public int onStartCommand(Intent intent, int flags, int startId) {
2827
return 2;
2928
}
3029

31-
@Override
32-
public IBinder onBind(Intent intent) {
33-
return null;
34-
}
35-
3630
public class CopyAndUploadContentUrisTask extends AsyncTask<Object, Void, String> {
3731
public Object[] makeParamsToExecute(
3832
String sourceUri
@@ -67,4 +61,9 @@ protected void onPreExecute() {
6761
protected void onProgressUpdate(Void... values) {
6862
}
6963
}
64+
65+
@Override
66+
public IBinder onBind(Intent intent) {
67+
return null;
68+
}
7069
}

0 commit comments

Comments
 (0)