Skip to content

Commit 6446234

Browse files
committed
Cleanup
1 parent 2e95f6f commit 6446234

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/main/java/org/truffleruby/core/module/ModuleFields.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -798,19 +798,14 @@ public InternalMethod getMethod(String name) {
798798

799799
@TruffleBoundary
800800
public InternalMethod getMethodAndAssumption(String name, List<Assumption> assumptions) {
801-
MethodEntry methodEntry = ConcurrentOperations.getOrCompute(
802-
methods,
803-
name,
804-
n -> new MethodEntry());
801+
MethodEntry methodEntry = ConcurrentOperations.getOrCompute(methods, name, n -> new MethodEntry());
805802
assumptions.add(methodEntry.getAssumption());
806803
return methodEntry.getMethod();
807804
}
808805

806+
@TruffleBoundary
809807
public Assumption getOrCreateMethodAssumption(String name) {
810-
return ConcurrentOperations.getOrCompute(
811-
methods,
812-
name,
813-
n -> new MethodEntry()).getAssumption();
808+
return ConcurrentOperations.getOrCompute(methods, name, n -> new MethodEntry()).getAssumption();
814809
}
815810

816811
/** All write accesses to this object should use {@code synchronized (getClassVariables()) { ... }}, or check that

0 commit comments

Comments
 (0)