From d8cfb6ecc7b43148da476bc1acae774e88db7238 Mon Sep 17 00:00:00 2001 From: markchien Date: Thu, 20 Feb 2020 14:08:57 +0800 Subject: Stop exposing constructor of TetheringConstants Fully-static utility classes must not have constructor. Bug: 149430003 Test: -build, flash, boot -atest TetheringTests Change-Id: I18e1129ef8717211d667ccd3b4110169dd7905b4 --- .../common/TetheringLib/src/android/net/TetheringConstants.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/Tethering/common') diff --git a/packages/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java b/packages/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java index df87ac994d42..a18f5da60cad 100644 --- a/packages/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java +++ b/packages/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java @@ -33,6 +33,9 @@ import android.os.ResultReceiver; */ @SystemApi(client = MODULE_LIBRARIES) public class TetheringConstants { + /** An explicit private class to avoid exposing constructor.*/ + private TetheringConstants() { } + /** * Extra used for communicating with the TetherService. Includes the type of tethering to * enable if any. -- cgit v1.2.3-59-g8ed1b