Skip to content

Commit 67a2679

Browse files
committed
Remove Tag.getAttribute()
1 parent 9fb5fce commit 67a2679

8 files changed

Lines changed: 18 additions & 65 deletions

File tree

soot-infoflow-android/src/soot/jimple/infoflow/android/entryPointCreators/DummyMainFieldElementTag.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package soot.jimple.infoflow.android.entryPointCreators;
22

3-
import soot.tagkit.AttributeValueException;
43
import soot.tagkit.Tag;
54

65
/**
@@ -33,9 +32,4 @@ public String getName() {
3332
return TAG_NAME;
3433
}
3534

36-
@Override
37-
public byte[] getValue() throws AttributeValueException {
38-
return null;
39-
}
40-
4135
}
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package soot.jimple.infoflow.cfg;
22

3-
import soot.tagkit.AttributeValueException;
43
import soot.tagkit.Tag;
54

65
/**
@@ -14,15 +13,10 @@
1413
public class FlowDroidEssentialMethodTag implements Tag {
1514

1615
public static final String TAG_NAME = "fd_essential_method";
17-
16+
1817
@Override
1918
public String getName() {
2019
return TAG_NAME;
2120
}
2221

23-
@Override
24-
public byte[] getValue() throws AttributeValueException {
25-
return null;
26-
}
27-
2822
}
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package soot.jimple.infoflow.cfg;
22

3-
import soot.jimple.infoflow.sourcesSinks.manager.ISourceSinkManager;
4-
import soot.tagkit.AttributeValueException;
53
import soot.tagkit.Tag;
64

75
/**
@@ -12,19 +10,16 @@
1210
* @author Tim Lange
1311
*/
1412
public class FlowDroidSinkStatement implements Tag {
15-
public static final String TAG_NAME = "fd_sink";
13+
public static final String TAG_NAME = "fd_sink";
1614

17-
public static final FlowDroidSinkStatement INSTANCE = new FlowDroidSinkStatement();
15+
public static final FlowDroidSinkStatement INSTANCE = new FlowDroidSinkStatement();
1816

19-
private FlowDroidSinkStatement() { }
17+
private FlowDroidSinkStatement() {
18+
}
2019

21-
@Override
22-
public String getName() {
23-
return TAG_NAME;
24-
}
20+
@Override
21+
public String getName() {
22+
return TAG_NAME;
23+
}
2524

26-
@Override
27-
public byte[] getValue() throws AttributeValueException {
28-
return null;
29-
}
3025
}

soot-infoflow/src/soot/jimple/infoflow/cfg/FlowDroidSourceStatement.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package soot.jimple.infoflow.cfg;
22

3-
import soot.jimple.infoflow.InfoflowConfiguration;
4-
import soot.jimple.infoflow.sourcesSinks.definitions.MethodSourceSinkDefinition;
5-
import soot.jimple.infoflow.sourcesSinks.manager.ISourceSinkManager;
6-
import soot.tagkit.AttributeValueException;
73
import soot.tagkit.Tag;
84

95
/**
@@ -30,8 +26,4 @@ public String getName() {
3026
return TAG_NAME;
3127
}
3228

33-
@Override
34-
public byte[] getValue() throws AttributeValueException {
35-
return null;
36-
}
3729
}

soot-infoflow/src/soot/jimple/infoflow/cfg/FlowDroidSystemClassChecked.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package soot.jimple.infoflow.cfg;
22

3-
import soot.tagkit.AttributeValueException;
43
import soot.tagkit.Tag;
54

65
/**
@@ -32,8 +31,4 @@ public String getName() {
3231
return TAG_NAME;
3332
}
3433

35-
@Override
36-
public byte[] getValue() throws AttributeValueException {
37-
return null;
38-
}
3934
}
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package soot.jimple.infoflow.cfg;
22

3-
import soot.tagkit.AttributeValueException;
43
import soot.tagkit.Tag;
54

65
/**
@@ -9,21 +8,17 @@
98
* @author Tim Lange
109
*/
1110
public class FlowDroidUserClass implements Tag {
12-
public static final String TAG_NAME = "fd_userclass";
11+
public static final String TAG_NAME = "fd_userclass";
1312

14-
private static final FlowDroidUserClass INSTANCE = new FlowDroidUserClass();
13+
private static final FlowDroidUserClass INSTANCE = new FlowDroidUserClass();
1514

16-
public static FlowDroidUserClass v() {
17-
return INSTANCE;
18-
}
15+
public static FlowDroidUserClass v() {
16+
return INSTANCE;
17+
}
1918

20-
@Override
21-
public String getName() {
22-
return TAG_NAME;
23-
}
19+
@Override
20+
public String getName() {
21+
return TAG_NAME;
22+
}
2423

25-
@Override
26-
public byte[] getValue() throws AttributeValueException {
27-
return null;
28-
}
2924
}

soot-infoflow/src/soot/jimple/infoflow/entryPointCreators/SimulatedCodeElementTag.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package soot.jimple.infoflow.entryPointCreators;
22

3-
import soot.tagkit.AttributeValueException;
43
import soot.tagkit.Tag;
54

65
/**
@@ -24,9 +23,4 @@ public String getName() {
2423
return TAG_NAME;
2524
}
2625

27-
@Override
28-
public byte[] getValue() throws AttributeValueException {
29-
return null;
30-
}
31-
3226
}

soot-infoflow/src/soot/jimple/infoflow/entryPointCreators/SimulatedDynamicInvokeTag.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package soot.jimple.infoflow.entryPointCreators;
22

3-
import soot.tagkit.AttributeValueException;
43
import soot.tagkit.Tag;
54

65
/**
@@ -21,9 +20,4 @@ public String getName() {
2120
return TAG_NAME;
2221
}
2322

24-
@Override
25-
public byte[] getValue() throws AttributeValueException {
26-
return null;
27-
}
28-
2923
}

0 commit comments

Comments
 (0)