package adapter;

import static adapter.adapter2.Level.ERROR;

public interface adapter2 {
  public interface Logger {
    public void log(String message);
  }
  
  public enum Level { WARNING, ERROR }
  public interface Logger2 {
    public void log(Level level, String message);

    public default Logger error() {
      return msg -> log(ERROR, msg);
    }
  }
  
  public static void main(String[] args) {
    Logger2 logger2 = (level, msg) -> System.out.println(level + " " + msg);
    logger2.log(ERROR, "abort abort !");
    
    logger2.error().log("abort abort !");
  }
}

@@ -301,22 +301,33 @@
  Logger 
-error(
+level(Level level
 ) %7B%0A    
@@ -346,21 +346,21 @@
  -%3E log(
-ERROR
+level
 , msg);%0A
@@ -554,14 +554,19 @@
 er2.
-error(
+level(ERROR
 ).lo

Make the partial application more explicit