Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public abstract class ModuleOperations {

@@ -200,10 +201,9 @@ public static Map<String, InternalMethod> getAllMethods(RubyModule module) {
@TruffleBoundary
public static Map<String, InternalMethod> withoutUndefinedMethods(Map<String, InternalMethod> methods) {
Map<String, InternalMethod> definedMethods = new HashMap<>();
for (String name : methods.keySet()) {
InternalMethod method = methods.get(name);
if (!method.isUndefined()) {
definedMethods.put(name, method);
for (Entry<String, InternalMethod> method : methods.entrySet()) {
if (!method.getValue().isUndefined()) {
definedMethods.put(method.getKey(), method.getValue());
}
}
return definedMethods;

0 comments on commit f90af5a

Please sign in to comment.