From 4d32b19208dd63d35cb3368b052f38b1f439887c Mon Sep 17 00:00:00 2001 From: Shanthanu Bhardwaj Date: Sat, 26 Sep 2020 21:51:59 +0000 Subject: [PATCH] Fix minor error in documentation of isLoggable The change which removed the IllegalArgumentException was released in O (API level 26) (https://android.googlesource.com/platform/frameworks/base/+/8143fa57adfbb4a5cc253e4ef68663525a8f81eb), so the exception is thrown till API level 25, NOT 23 as the documentation currently states. Bug: 124593220 Change-Id: Ia4c094cd7ae68f978bd5f49a9b294286dbe5bb61 --- core/java/android/util/Log.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/util/Log.java b/core/java/android/util/Log.java index 2ded473930f7a..7a117f14d9b5d 100644 --- a/core/java/android/util/Log.java +++ b/core/java/android/util/Log.java @@ -227,7 +227,7 @@ public final class Log { * @param level The level to check. * @return Whether or not that this is allowed to be logged. * @throws IllegalArgumentException is thrown if the tag.length() > 23 - * for Nougat (7.0) releases (API <= 23) and prior, there is no + * for Nougat (7.0) and prior releases (API <= 25), there is no * tag limit of concern after this API level. */ @FastNative