17
17
18
18
package org .openqa .selenium .logging ;
19
19
20
- import com .google .common .collect .Lists ;
21
- import com .google .common .collect .Maps ;
22
-
20
+ import java .util .ArrayList ;
21
+ import java .util .HashMap ;
23
22
import java .util .List ;
24
23
import java .util .Map ;
25
24
import java .util .Set ;
29
28
* of logs, such as for profiling.
30
29
*/
31
30
class StoringLocalLogs extends LocalLogs {
32
- private final Map <String , List <LogEntry >> localLogs = Maps . newHashMap ();
31
+ private final Map <String , List <LogEntry >> localLogs = new HashMap <> ();
33
32
private final Set <String > logTypesToInclude ;
34
33
35
34
public StoringLocalLogs (Set <String > logTypesToInclude ) {
@@ -43,11 +42,11 @@ public LogEntries get(String logType) {
43
42
private Iterable <LogEntry > getLocalLogs (String logType ) {
44
43
if (localLogs .containsKey (logType )) {
45
44
List <LogEntry > entries = localLogs .get (logType );
46
- localLogs .put (logType , Lists .< LogEntry > newArrayList ());
45
+ localLogs .put (logType , new ArrayList <> ());
47
46
return entries ;
48
47
}
49
48
50
- return Lists . newArrayList ();
49
+ return new ArrayList <> ();
51
50
}
52
51
53
52
/**
@@ -62,7 +61,7 @@ public void addEntry(String logType, LogEntry entry) {
62
61
}
63
62
64
63
if (!localLogs .containsKey (logType )) {
65
- localLogs .put (logType , Lists . newArrayList ( entry ));
64
+ localLogs .put (logType , new ArrayList <>( ));
66
65
} else {
67
66
localLogs .get (logType ).add (entry );
68
67
}
0 commit comments