Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removing 'return' keyword in Scala method
  • Loading branch information
ouyangxiaochen committed Apr 13, 2017
commit cef04055d05a102dd1e18daad67ad35d8acd0ef5
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ExecutorClassLoader(
ClassWriter.COMPUTE_FRAMES + ClassWriter.COMPUTE_MAXS)
val cleaner = new ConstructorCleaner(name, cw)
cr.accept(cleaner, 0)
return cw.toByteArray
cw.toByteArray
} else {
// Pass the class through unmodified
val bos = new ByteArrayOutputStream
Expand All @@ -208,7 +208,7 @@ class ExecutorClassLoader(
done = true
}
}
return bos.toByteArray
bos.toByteArray
}
}

Expand Down Expand Up @@ -238,9 +238,9 @@ extends ClassVisitor(ASM5, cv) {
mv.visitInsn(RETURN)
mv.visitMaxs(-1, -1) // stack size and local vars will be auto-computed
mv.visitEnd()
return null
null
} else {
return mv
mv
}
}
}