minor cleanup: Use ImmutableSet for a single element set
@@ -19,7 +19,7 @@ import com.android.sdklib.AndroidVersion;
import com.android.tools.idea.model.AndroidModel;
import com.android.tools.idea.model.ClassJarProvider;
import com.android.tools.lint.detector.api.Desugaring;
-import com.google.common.collect.Sets;
+import com.google.common.collect.ImmutableSet;
import com.google.idea.blaze.base.build.BlazeBuildService;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.fileEditor.FileDocumentManager;
@@ -67,9 +67,7 @@ abstract class BlazeAndroidModelBase implements AndroidModel {
@Override
public Set<String> getAllApplicationIds() {
- Set<String> applicationIds = Sets.newHashSet();
- applicationIds.add(getApplicationId());
- return applicationIds;
+ return ImmutableSet.of(getApplicationId());
}
@Override
