mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
tidy array constructors and fix some warnings
This commit is contained in:
@@ -49,7 +49,7 @@ class AnyMethod extends Method {
|
||||
* @param {string} name
|
||||
*/
|
||||
constructor(name) {
|
||||
super(name, [], '');
|
||||
super(null, name, [], '');
|
||||
}
|
||||
|
||||
get returnType() {
|
||||
@@ -70,13 +70,7 @@ class Local {
|
||||
this.finalToken = modifiers.find(m => m.source === 'final') || null;
|
||||
this.name = name;
|
||||
this.decltoken = decltoken;
|
||||
if (postnamearrdims > 0) {
|
||||
this.type = (type instanceof ArrayType)
|
||||
? new ArrayType(type.base, type.arrdims + postnamearrdims)
|
||||
: new ArrayType(type, postnamearrdims);
|
||||
} else {
|
||||
this.type = type;
|
||||
}
|
||||
this.type = postnamearrdims > 0 ? new ArrayType(type, postnamearrdims): type;
|
||||
this.init = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user