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);
}

@@ -277,146 +277,22 @@
 N = 
-new StringCompression() %7B%0A        @Override%0A        public String compress(final String input) %7B%0A            return input;%0A        %7D%0A    %7D
+input -%3E input
 ;%0A%0A 

Replace anonymous class with lambda.