commit | 7ed2db36913cd17498e5e139e348aa8258a562c5 | [log] [tgz] |
---|---|---|
author | Yuncheol Heo <ycheo@google.com> | Tue Mar 01 17:13:47 2022 -0800 |
committer | Yuncheol Heo <ycheo@google.com> | Tue Mar 01 17:13:51 2022 -0800 |
tree | ac24e24da75593971054ec5d481c657156f26eba | |
parent | 026b4fa4d22342e502fb226f4d3cf95b82738c0c [diff] |
Make the constructor of TaskInfoHelper private - The class has static methods only, so it doesn't need the constructor. Bug: 201301077 Test: it builds Change-Id: Ib6ec58aa28a3fcccf15463d464fb0c14bfee44d8
diff --git a/car-builtin-lib/api/module-lib-current.txt b/car-builtin-lib/api/module-lib-current.txt index 9c2a9d5..2ea3ff5 100644 --- a/car-builtin-lib/api/module-lib-current.txt +++ b/car-builtin-lib/api/module-lib-current.txt
@@ -39,7 +39,6 @@ } public class TaskInfoHelper { - ctor public TaskInfoHelper(); method public static int getDisplayId(@NonNull android.app.TaskInfo); method public static int getUserId(@NonNull android.app.TaskInfo); method public static boolean isVisible(@NonNull android.app.TaskInfo);
diff --git a/car-builtin-lib/src/android/car/builtin/app/TaskInfoHelper.java b/car-builtin-lib/src/android/car/builtin/app/TaskInfoHelper.java index 5933ef7..a1cb92e 100644 --- a/car-builtin-lib/src/android/car/builtin/app/TaskInfoHelper.java +++ b/car-builtin-lib/src/android/car/builtin/app/TaskInfoHelper.java
@@ -60,4 +60,8 @@ + " baseIntent=" + task.baseIntent + " baseActivity=" + task.baseActivity + "}"; } + + private TaskInfoHelper() { + throw new UnsupportedOperationException("contains only static members"); + } }