From 1bec13e96323b981c332f1c370d8bd11473afe34 Mon Sep 17 00:00:00 2001 From: markchien Date: Thu, 20 Feb 2020 14:08:57 +0800 Subject: [PATCH] Stop exposing constructor of TetheringConstants Fully-static utility classes must not have constructor. Bug: 149430003 Test: -build, flash, boot -atest TetheringTests Change-Id: I18e1129ef8717211d667ccd3b4110169dd7905b4 --- .../TetheringLib/src/android/net/TetheringConstants.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java b/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java index df87ac994d..a18f5da60c 100644 --- a/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java +++ b/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.