< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/VerifyFoldableMethods.java

Print this page

        

@@ -50,11 +50,11 @@
 
     private final Map<ResolvedJavaMethod, Boolean> foldables = new ConcurrentHashMap<>();
     ResolvedJavaType generatedInvocationPluginType;
 
     @Override
-    protected boolean verify(StructuredGraph graph, PhaseContext context) {
+    protected void verify(StructuredGraph graph, PhaseContext context) {
         ResolvedJavaMethod method = graph.method();
         if (method.getAnnotation(Fold.class) != null) {
             foldables.putIfAbsent(method, false);
         } else {
             if (generatedInvocationPluginType == null) {

@@ -67,11 +67,10 @@
                         foldables.put(callee, true);
                     }
                 }
             }
         }
-        return true;
     }
 
     public void finish() {
         String uncalled = foldables.entrySet().stream().filter(e -> e.getValue() == false).map(e -> e.getKey().format("%H.%n(%p)")).collect(Collectors.joining(System.lineSeparator() + "  "));
         if (uncalled.length() != 0) {
< prev index next >