From 953fe483298bff46558a4e0b2d891924c0c9c813 Mon Sep 17 00:00:00 2001 From: Esteban Talavera Date: Tue, 7 Jun 2016 15:25:20 +0100 Subject: [PATCH] Fix getApplicationRestrictions documentation The method never returns null, only empty bundle Bug: 29178626 Change-Id: Ic53154eafe94c6c501b59932441d7ae1c89cb689 --- core/java/android/os/UserManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index f3dc43237a4d0..7146448ad5d7c 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -2021,7 +2021,7 @@ public class UserManager { } /** - * Returns a {@code Bundle} containing any saved application restrictions for this user, for the + * Returns a {@link Bundle} containing any saved application restrictions for this user, for the * given package name. Only an application with this package name can call this method. * *

The returned {@link Bundle} consists of key-value pairs, as defined by the application, @@ -2034,8 +2034,8 @@ public class UserManager { * * * @param packageName the package name of the calling application - * @return a {@code Bundle} with the restrictions for that package, or {@code null} if there - * are no saved restrictions. + * @return a {@link Bundle} with the restrictions for that package, or an empty {@link Bundle} + * if there are no saved restrictions. * * @see #KEY_RESTRICTIONS_PENDING */