Skip to content

Commit af0a663

Browse files
Jami CogswellJami Cogswell
authored andcommitted
remove commented-out code in Test.java file
1 parent d1a23ad commit af0a663

File tree

1 file changed

+0
-40
lines changed
  • java/ql/test/query-tests/security/CWE-489

1 file changed

+0
-40
lines changed
Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,3 @@
11
public class Test {
22

33
}
4-
5-
// package com.example.myapp;
6-
7-
// import android.app.Fragment;
8-
// import android.os.Bundle;
9-
// import android.view.LayoutInflater;
10-
// import android.view.View;
11-
// import android.view.ViewGroup;
12-
// import android.widget.Button;
13-
// import androidx.fragment.app.FragmentActivity;
14-
// import androidx.fragment.app.FragmentTransaction;
15-
16-
// public class Test extends FragmentActivity {
17-
18-
// @Override
19-
// public void onCreate(Bundle savedInstance) {
20-
// try {
21-
// super.onCreate(savedInstance);
22-
// final String fname = getIntent().getStringExtra("fname");
23-
// FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
24-
// Class<Fragment> fClass = (Class<Fragment>) Class.forName(fname);
25-
// ft.add(fClass.newInstance(), ""); // hasTaintFlow
26-
// ft.add(0, Fragment.instantiate(this, fname), null); // hasTaintFlow
27-
// ft.add(0, Fragment.instantiate(this, fname, null)); // hasTaintFlow
28-
// ft.add(0, fClass, null, ""); // hasTaintFlow
29-
// ft.add(0, fClass.newInstance(), ""); // hasTaintFlow
30-
// ft.attach(fClass.newInstance()); // hasTaintFlow
31-
// ft.replace(0, fClass, null); // hasTaintFlow
32-
// ft.replace(0, fClass.newInstance()); // hasTaintFlow
33-
// ft.replace(0, fClass, null, ""); // hasTaintFlow
34-
// ft.replace(0, fClass.newInstance(), ""); // hasTaintFlow
35-
36-
// ft.add(Fragment.class.newInstance(), ""); // Safe
37-
// ft.attach(Fragment.class.newInstance()); // Safe
38-
// ft.replace(0, Fragment.class.newInstance(), ""); // Safe
39-
// } catch (Exception e) {
40-
// }
41-
// }
42-
43-
// }

0 commit comments

Comments
 (0)