From fc2ee378cb7dfa741132073fb9767c2a7dca160d Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Fri, 8 Dec 2017 03:35:03 +0900 Subject: [PATCH] [enumification] filter final ints without explicit constant value. There were final fields that actually didn't give value in the API XML. --- build-tools/enumification-helpers/generate-const-list-2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/enumification-helpers/generate-const-list-2.cs b/build-tools/enumification-helpers/generate-const-list-2.cs index 4b053fc5d87..682b858b7cf 100644 --- a/build-tools/enumification-helpers/generate-const-list-2.cs +++ b/build-tools/enumification-helpers/generate-const-list-2.cs @@ -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 package = null, type = null;