We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4056d91 commit 7c86a50Copy full SHA for 7c86a50
src/main/java/soot/SootClass.java
@@ -1304,14 +1304,12 @@ public boolean isOpenedByModule() {
1304
*/
1305
public Collection<SootMethod> getMethodsByNameAndParamCount(String name, int paramCount) {
1306
List<SootMethod> result = null;
1307
- synchronized(this) {
1308
- for (SootMethod m : getMethods()) {
1309
- if (m.getParameterCount() == paramCount && m.getName().equals(name)) {
1310
- if (result == null) {
1311
- result = new ArrayList<>();
1312
- }
1313
- result.add(m);
+ for (SootMethod m : new ArrayList<>(getMethods())) {
+ if (m.getParameterCount() == paramCount && m.getName().equals(name)) {
+ if (result == null) {
+ result = new ArrayList<>();
1314
}
+ result.add(m);
1315
1316
1317
0 commit comments