Automatic code cleanup.
PiperOrigin-RevId: 448011031
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/constraints/EnvironmentCollection.java b/src/main/java/com/google/devtools/build/lib/analysis/constraints/EnvironmentCollection.java
index 1482eb1..189f75d 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/constraints/EnvironmentCollection.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/constraints/EnvironmentCollection.java
@@ -50,14 +50,23 @@
}
/**
- * Returns the build labels of each environment in this collection, ordered by
- * their insertion order in {@link Builder}.
+ * Returns the build labels of each environment in this collection, ordered by their insertion
+ * order in {@link Builder}.
*/
public ImmutableCollection<Label> getEnvironments() {
return map.values();
}
/**
+ * Returns the environments in this collection that belong to the given group, ordered by their
+ * insertion order in {@link Builder}. If no environments belong to the given group, returns an
+ * empty collection.
+ */
+ ImmutableCollection<Label> getEnvironments(EnvironmentLabels group) {
+ return map.get(group);
+ }
+
+ /**
* Returns the set of groups the environments in this collection belong to, ordered by their
* insertion order in {@link Builder}
*/
@@ -77,15 +86,6 @@
return builder.build();
}
- /**
- * Returns the environments in this collection that belong to the given group, ordered by their
- * insertion order in {@link Builder}. If no environments belong to the given group, returns an
- * empty collection.
- */
- ImmutableCollection<Label> getEnvironments(EnvironmentLabels group) {
- return map.get(group);
- }
-
/** An empty collection. */
@SerializationConstant
static final EnvironmentCollection EMPTY = new EnvironmentCollection(ImmutableMultimap.of());