From aff343bbe59e49950c06bc029d4a77dd27047c0b Mon Sep 17 00:00:00 2001 From: Steve Hannah Date: Sat, 11 Apr 2015 08:53:49 -0700 Subject: [PATCH] Fixed accidental deletion of return statement. --- .../java/org/teavm/classlib/java/util/DateNativeGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java index bdba21eaf..b8d5e4e7b 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/DateNativeGenerator.java @@ -94,7 +94,7 @@ public class DateNativeGenerator implements Generator, DependencyPlugin { } private void generateBuildNumericUTC(GeneratorContext context, SourceWriter writer) throws IOException { - writer.append("Date.UTC(").append(context.getParameterName(1)); + writer.append("return Date.UTC(").append(context.getParameterName(1)); for (int i = 2; i <= 6; ++i) { writer.append(',').ws().append(context.getParameterName(i)); }