Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Multiple variable declarations on one line #14

Open
pareeohnos opened this issue Mar 20, 2015 · 2 comments
Open

Multiple variable declarations on one line #14

pareeohnos opened this issue Mar 20, 2015 · 2 comments

Comments

@pareeohnos
Copy link

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
Copy link

2hamed commented Jun 15, 2015

I faced the same issue.

@dallasgutauckis
Copy link
Owner

The parser is a hacked-together implementation. Consider using https://github.com/mcharmas/android-parcelable-intellij-plugin for Android Studio instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants