Skip to content

Commit

Permalink
[enumification] filter final ints without explicit constant value. (#…
Browse files Browse the repository at this point in the history
…1085)

There were final fields that actually didn't give value in the API XML.
  • Loading branch information
atsushieno authored and jonpryor committed Dec 14, 2017
1 parent 5732a40 commit 9cc80d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools/enumification-helpers/generate-const-list-2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static void Main (string [] args)
}
}

consts = consts.Where (f => f.IsFinal).ToArray ();
consts = consts.Where (f => f.IsFinal && !string.IsNullOrEmpty (f.Value)).ToArray ();

var fields = new List<string> ();
string package = null, type = null;
Expand Down

0 comments on commit 9cc80d7

Please sign in to comment.