Use native constructors instead of Guava to instantiate empty collections It's not necessary to use Guava's helper methods when instantiating empty collections. Just use the native constructors. Change-Id: I7f454909b15924ee49e149edf9f053da9f718502
diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt index 501f986..8315776 100644 --- a/Documentation/dev-plugins.txt +++ b/Documentation/dev-plugins.txt
@@ -1804,7 +1804,7 @@ @Inject public MyMenu(@PluginName String name) { - menuEntries = Lists.newArrayList(); + menuEntries = new ArrayList<>(); menuEntries.add(new MenuEntry("My Menu", Collections.singletonList( new MenuItem("My Screen", "#/x/" + name + "/my-screen", "")))); }