commit | 1bec13e96323b981c332f1c370d8bd11473afe34 | [log] [tgz] |
---|---|---|
author | markchien <markchien@google.com> | Thu Feb 20 14:08:57 2020 +0800 |
committer | markchien <markchien@google.com> | Thu Feb 20 16:11:35 2020 +0800 |
tree | 59d3f3e4436ebd1135bae6c67133ccb77c8605ca | |
parent | 9969e5dff79d57b1101b154eb191da2a38f29ebd [diff] |
Stop exposing constructor of TetheringConstants Fully-static utility classes must not have constructor. Bug: 149430003 Test: -build, flash, boot -atest TetheringTests Change-Id: I18e1129ef8717211d667ccd3b4110169dd7905b4
diff --git a/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java b/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java index df87ac9..a18f5da 100644 --- a/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java +++ b/Tethering/common/TetheringLib/src/android/net/TetheringConstants.java
@@ -33,6 +33,9 @@ */ @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.