-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-6077] Remove raw types for AngularObject #4813
base: master
Are you sure you want to change the base?
Conversation
Review required. |
@@ -134,7 +134,7 @@ abstract class AbstractAngularElem(val interpreterContext: InterpreterContext, | |||
Text(s"${functionName}=${functionName} + 1"), | |||
Null) | |||
|
|||
val angularObject = addAngularObject(functionName, 0) | |||
val angularObject = addAngularObject(functionName, Int.box(0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only place where I am not sure that this is completely correct.
@@ -70,7 +70,7 @@ abstract class AbstractAngularElem(val interpreterContext: InterpreterContext, | |||
* @return | |||
*/ | |||
@ZeppelinApi | |||
def model(name: String, value: Any): AbstractAngularElem = { | |||
def model(name: String, value: AnyRef): AbstractAngularElem = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AnyRef is the same as object.
https://docs.scala-lang.org/tour/unified-types.html#scala-type-hierarchy
Review required. |
1deca4a
to
b21c947
Compare
What is this PR for?
This pull request removes the raw use of the AngularObject. The generic version has been removed. AngularObject now contains an object reference.
As a result, warnings from the IDE due to raw use disappear. The code is also easier to read.
What type of PR is it?
What is the Jira issue?
How should this be tested?
Questions: