package com.tinkerpop.gremlin.structure.util.batch.cache;

/**
 * @author Matthias Broecheler (http://www.matthiasb.com)
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
public interface StringCompression {
    public static final StringCompression NO_COMPRESSION = input -> input;

    public String compress(final String input);
}

package com.tinkerpop.gremlin.structure.util.batch.cache;

/**
 * @author Matthias Broecheler (http://www.matthiasb.com)
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
public interface StringCompression {
    public static final StringCompression NO_COMPRESSION = new StringCompression() {
        @Override
        public String compress(final String input) {
            return input;
        }
    };

    public String compress(final String input);
}

--- 
+++ 
@@ -5,12 +5,7 @@
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
 public interface StringCompression {
-    public static final StringCompression NO_COMPRESSION = new StringCompression() {
-        @Override
-        public String compress(final String input) {
-            return input;
-        }
-    };
+    public static final StringCompression NO_COMPRESSION = input -> input;
 
     public String compress(final String input);
 }
Replace anonymous class with lambda.
