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 395b878 commit fb376b8Copy full SHA for fb376b8
src/main/java/soot/SootClass.java
@@ -1295,7 +1295,7 @@ public boolean isOpenedByModule() {
1295
1296
/**
1297
* Returns all methods with exactly the number of parameters specified.
1298
- *
+ *
1299
* @param name
1300
* the name of the method
1301
* @param paramCount
@@ -1304,7 +1304,7 @@ public boolean isOpenedByModule() {
1304
*/
1305
public Collection<SootMethod> getMethodsByNameAndParamCount(String name, int paramCount) {
1306
List<SootMethod> result = null;
1307
- for (SootMethod m : getMethods()) {
+ for (SootMethod m : new ArrayList<>(getMethods())) {
1308
if (m.getParameterCount() == paramCount && m.getName().equals(name)) {
1309
if (result == null) {
1310
result = new ArrayList<>();
0 commit comments