Skip to content

Commit 815bdc1

Browse files
Material Engcopybara-github
authored andcommitted
Internal updates to Utilities library
PiperOrigin-RevId: 540001730
1 parent 182a924 commit 815bdc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

java/score/Score.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public static List<Integer> score(Map<Integer, Integer> colorsToPopulation, int
5151
}
5252

5353
public static List<Integer> score(
54-
Map<Integer, Integer> colorsToPopulation, int desired, int fallbackColorARGB) {
55-
return score(colorsToPopulation, desired, fallbackColorARGB, true);
54+
Map<Integer, Integer> colorsToPopulation, int desired, int fallbackColorArgb) {
55+
return score(colorsToPopulation, desired, fallbackColorArgb, true);
5656
}
5757

5858
/**
@@ -62,7 +62,7 @@ public static List<Integer> score(
6262
* @param colorsToPopulation map with keys of colors and values of how often the color appears,
6363
* usually from a source image.
6464
* @param desired max count of colors to be returned in the list.
65-
* @param fallbackColorARGB color to be returned if no other options available.
65+
* @param fallbackColorArgb color to be returned if no other options available.
6666
* @param filter whether to filter out undesireable combinations.
6767
* @return Colors sorted by suitability for a UI theme. The most suitable color is the first item,
6868
* the least suitable is the last. There will always be at least one color returned. If all
@@ -72,7 +72,7 @@ public static List<Integer> score(
7272
public static List<Integer> score(
7373
Map<Integer, Integer> colorsToPopulation,
7474
int desired,
75-
int fallbackColorARGB,
75+
int fallbackColorArgb,
7676
boolean filter) {
7777

7878
// Get the HCT color for each Argb value, while finding the per hue count and
@@ -147,7 +147,7 @@ public static List<Integer> score(
147147
}
148148
List<Integer> colors = new ArrayList<>();
149149
if (chosenColors.isEmpty()) {
150-
colors.add(fallbackColorARGB);
150+
colors.add(fallbackColorArgb);
151151
}
152152
for (Hct chosenHct : chosenColors) {
153153
colors.add(chosenHct.toInt());

0 commit comments

Comments
 (0)