package com.futureprocessing.mongojuggler.exception.validation;


import java.lang.reflect.Method;

public class InvalidReturnValueException extends InvalidModelInterfaceException {

    private final Method method;

    public InvalidReturnValueException(Method method) {
        super(String.format("Method %s return %s, only String or void are allowed", method, method.getReturnType().getName()));
        this.method = method;
    }

    public Method getMethod() {
        return method;
    }
}

@@ -93,16 +93,56 @@
 ethod;%0A%0A
+import static java.lang.String.format;%0A%0A
 public c
@@ -320,23 +320,16 @@
   super(
-String.
 format(%22

Fix code after CR