Skip to content

Commit

Permalink
Fix the generated classes
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Apr 8, 2014
1 parent 9f68f10 commit 204b199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/test/scala/org/apache/spark/TestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ object TestUtils {
def createCompiledClassWithValue(className: String, value: Integer, destDir: File): File = {
val compiler = ToolProvider.getSystemJavaCompiler
val sourceFile = new JavaSourceFromString(className,
"public class " + className + " { override String toString() { return \"" + value + "\";}}")
"public class " + className + " { @Override public String toString() { return \"" + value + "\";}}")

// Calling this outputs a class file in pwd. It's easier to just rename the file than
// build a custom FileManager that controls the output location.
Expand Down

0 comments on commit 204b199

Please sign in to comment.