Skip to content
Snippets Groups Projects
Commit 5bdf16da authored by Reynold Xin's avatar Reynold Xin
Browse files

Code review feedback for the previous patch.

parent 930253e0
No related branches found
No related tags found
No related merge requests found
......@@ -63,16 +63,20 @@ class CodeGenContext {
* As an example, ("int", "count", "count = 0;") will produce code:
* {{{
* private int count;
* }}}
* as a member variable, and add
* {{{
* count = 0;
* }}}
* to the constructor.
*
* They will be kept as member variables in generated classes like `SpecificProjection`.
*/
val mutableStates: mutable.ArrayBuffer[(String, String, String)] =
mutable.ArrayBuffer.empty[(String, String, String)]
def addMutableState(javaType: String, variableName: String, initialCode: String): Unit = {
mutableStates += ((javaType, variableName, initialCode))
def addMutableState(javaType: String, variableName: String, initCode: String): Unit = {
mutableStates += ((javaType, variableName, initCode))
}
final val intervalType: String = classOf[Interval].getName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment