From 87a2f454625e922969103a7dc0ef6fa5b33ac02f Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Mon, 25 Jan 2016 13:24:10 +0200 Subject: aapt: Hide "No comment for public symbol" warnings * Hide these warnings by default behind the kIsDebug flag Change-Id: I56270c5e34bb05a88500eea83879790ad43a814c --- tools/aapt/Resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index c636c28..b796b27 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -2543,7 +2543,7 @@ static status_t writeSymbolClass( fprintf(fp, "%s/** %s\n", getIndentSpace(indent), cmt.string()); - } else if (sym.isPublic && !includePrivate) { + } else if (sym.isPublic && !includePrivate && kIsDebug) { sym.sourcePos.warning("No comment for public symbol %s:%s/%s", assets->getPackage().string(), className.string(), String8(sym.name).string()); @@ -2589,7 +2589,7 @@ static status_t writeSymbolClass( "%s */\n", getIndentSpace(indent), cmt.string(), getIndentSpace(indent)); - } else if (sym.isPublic && !includePrivate) { + } else if (sym.isPublic && !includePrivate && kIsDebug) { sym.sourcePos.warning("No comment for public symbol %s:%s/%s", assets->getPackage().string(), className.string(), String8(sym.name).string()); -- cgit v1.1