You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, I get caught by sc being unused. It recommends I should rename it to _sc.
error: [StrictUnusedVariable] The field 'sc' is never read. Intentional occurrences are acknowledged by renaming the unused variable with a leading underscore. '_sc', for example.
If I apply that fix, I get:
error: [StrictUnusedVariable] The field '_sc' is read but has 'StrictUnusedVariable' suppressed because of its name.
private final SparkContext _sc;
What did you want to happen?
I cannot see a read of this field (I assume it relates only to a write?). I expected one of the compilations to actually compile! I suppressed the check, but it feels like a bug/edge case/something.
The text was updated successfully, but these errors were encountered:
What happened?
I have some code which I'm trying to keep as identical as possible to some third party code (rewrite of an algorithm in Java).
So, I have a class like (simplified):
Here, I get caught by
sc
being unused. It recommends I should rename it to_sc
.If I apply that fix, I get:
What did you want to happen?
I cannot see a read of this field (I assume it relates only to a write?). I expected one of the compilations to actually compile! I suppressed the check, but it feels like a bug/edge case/something.
The text was updated successfully, but these errors were encountered: