File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
firebase-app-distribution/src/main/java/com/google/firebase/appdistribution Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 15
15
package com .google .firebase .appdistribution ;
16
16
17
17
import android .util .Log ;
18
+ import androidx .annotation .NonNull ;
18
19
19
20
/** Wrapper that handles Android logcat logging. */
20
21
public class LogWrapper {
21
22
22
23
private static final String LOG_TAG = "FirebaseAppDistribution" ;
23
24
private static LogWrapper instance ;
24
25
26
+ @ NonNull
25
27
public static synchronized LogWrapper getInstance () {
26
28
if (instance == null ) {
27
29
instance = new LogWrapper ();
@@ -30,27 +32,27 @@ public static synchronized LogWrapper getInstance() {
30
32
return instance ;
31
33
}
32
34
33
- public void d (String msg ) {
35
+ public void d (@ NonNull String msg ) {
34
36
Log .d (LOG_TAG , msg );
35
37
}
36
38
37
- public void v (String msg ) {
39
+ public void v (@ NonNull String msg ) {
38
40
Log .v (LOG_TAG , msg );
39
41
}
40
42
41
- public void i (String msg ) {
43
+ public void i (@ NonNull String msg ) {
42
44
Log .i (LOG_TAG , msg );
43
45
}
44
46
45
- public void w (String msg ) {
47
+ public void w (@ NonNull String msg ) {
46
48
Log .w (LOG_TAG , msg );
47
49
}
48
50
49
- public void e (String msg ) {
51
+ public void e (@ NonNull String msg ) {
50
52
Log .e (LOG_TAG , msg );
51
53
}
52
54
53
- public void e (String msg , Throwable tr ) {
55
+ public void e (@ NonNull String msg , Throwable tr ) {
54
56
Log .e (LOG_TAG , msg , tr );
55
57
}
56
58
You can’t perform that action at this time.
0 commit comments