Commit 1596c413 authored by Michael Spang's avatar Michael Spang Committed by Commit Bot

chromecast: media: Fix Java warnings [MultiVariableDeclaration]

../../chromecast/media/cma/backend/android/java/src/org/chromium/chromecast/cma/backend/android/VolumeMap.java:173: warning: [MultiVariableDeclaration] Variable declarations should declare only one variable
        float dbLeft = dbMin, dbRight = dbMin;
              ^
    (see https://google.github.io/styleguide/javaguide.html#s4.8.2.1-variables-per-declaration)
  Did you mean 'float dbLeft = dbMin;float dbRight = dbMin;'?
1 warning

Bug: b/145737017

Change-Id: I78ce6063a36e86a6959e013a480a863792bfdc49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1959797
Commit-Queue: Kenneth MacKay <kmackay@chromium.org>
Auto-Submit: Michael Spang <spang@chromium.org>
Reviewed-by: default avatarKenneth MacKay <kmackay@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723420}
parent 613cb15b
......@@ -170,7 +170,8 @@ public final class VolumeMap {
// There are only a few volume index steps, so simply loop through them
// and find the interval [dbLeft .. dbRight] that contains db, then
// interpolate to estimate the volume level to return.
float dbLeft = dbMin, dbRight = dbMin;
float dbLeft = dbMin;
float dbRight = dbMin;
int idx = minIndex + 1;
for (; idx <= maxIndex; idx++) {
dbLeft = dbRight;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment