Skip to content

Commit 4c7c229

Browse files
committed
Fix checkstyle: make allSet computation compliant with final rule
1 parent 47f0ed8 commit 4c7c229

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/streams/Mp4FromDashWriter.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,16 @@ public void build(final SharpStream output) throws IOException {
357357
}
358358

359359
if (!minPtsComputedArr[0]) {
360-
boolean allSet = true;
361-
for (int k = 0; k < readers.length; k++) {
362-
if (!firstPtsSet[k]) {
363-
allSet = false;
364-
break;
360+
final boolean allSet;
361+
{
362+
boolean temp = true;
363+
for (int k = 0; k < readers.length; k++) {
364+
if (!firstPtsSet[k]) {
365+
temp = false;
366+
break;
367+
}
365368
}
369+
allSet = temp;
366370
}
367371

368372
if (allSet) {

0 commit comments

Comments
 (0)