Skip to content

Commit 1e01657

Browse files
Jami CogswellJami Cogswell
authored andcommitted
add onBind to FileService to see if it fixes Java Language Tests failure
1 parent 9acda05 commit 1e01657

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import android.net.Uri;
66
import android.os.Bundle;
77
import android.os.AsyncTask;
8+
import android.os.IBinder;
89

910
public class FileService extends Service {
1011
public static String KEY_LOCAL_FILE = "local_file";
@@ -27,6 +28,11 @@ public int onStartCommand(Intent intent, int flags, int startId) {
2728
return 2;
2829
}
2930

31+
@Override
32+
public IBinder onBind(Intent intent) {
33+
return null;
34+
}
35+
3036
public class CopyAndUploadContentUrisTask extends AsyncTask<Object, Void, String> {
3137
public Object[] makeParamsToExecute(
3238
String sourceUri
@@ -52,13 +58,13 @@ protected String doInBackground(Object[] params) {
5258
@Override
5359
protected void onPostExecute(String result) {
5460
}
55-
61+
5662
@Override
5763
protected void onPreExecute() {
5864
}
5965

6066
@Override
6167
protected void onProgressUpdate(Void... values) {
62-
}
68+
}
6369
}
6470
}

0 commit comments

Comments
 (0)