Multiple variable declarations on one line
Opened this issue · 2 comments
pareeohnos commented
Thanks for the tool - really useful, especially given I'm new to Android. Made my life a LOT easier, but I've just run into a (very) minor issue.
Below is the class that I'm inputting:
public class MyClass {
private long a;
private double b, c, d, e;
public MyClass(long a, double b, double c, double d, double e) {
_a = a;
_b = b;
_c = c;
_d = d;
_e = e;
}
}
The code is valid and compiles without an issue, however the parcelabler
parser gives me the following error:
The following variables were not recognized (syntax error?):
private double _a, _b, _c, _d
It appears that the parser isn't happy about multiple variables being declared on the same line. As a result, the writing and reading from the parcel doesn't include these variables.
2hamed commented
I faced the same issue.
dallasgutauckis commented
The parser is a hacked-together implementation. Consider using https://github.com/mcharmas/android-parcelable-intellij-plugin for Android Studio instead.