Simple Java style fix
Put space between ] and {. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=163116816
This commit is contained in:
parent
3f7b4dc75f
commit
2dc1870dd4
@ -34,7 +34,7 @@ public class DefaultOggSeekerUtilMethodsTest extends TestCase {
|
|||||||
FakeExtractorInput extractorInput = TestData.createInput(
|
FakeExtractorInput extractorInput = TestData.createInput(
|
||||||
TestUtil.joinByteArrays(
|
TestUtil.joinByteArrays(
|
||||||
TestUtil.buildTestData(4000, random),
|
TestUtil.buildTestData(4000, random),
|
||||||
new byte[]{'O', 'g', 'g', 'S'},
|
new byte[] {'O', 'g', 'g', 'S'},
|
||||||
TestUtil.buildTestData(4000, random)
|
TestUtil.buildTestData(4000, random)
|
||||||
), false);
|
), false);
|
||||||
skipToNextPage(extractorInput);
|
skipToNextPage(extractorInput);
|
||||||
@ -45,7 +45,7 @@ public class DefaultOggSeekerUtilMethodsTest extends TestCase {
|
|||||||
FakeExtractorInput extractorInput = TestData.createInput(
|
FakeExtractorInput extractorInput = TestData.createInput(
|
||||||
TestUtil.joinByteArrays(
|
TestUtil.joinByteArrays(
|
||||||
TestUtil.buildTestData(2046, random),
|
TestUtil.buildTestData(2046, random),
|
||||||
new byte[]{'O', 'g', 'g', 'S'},
|
new byte[] {'O', 'g', 'g', 'S'},
|
||||||
TestUtil.buildTestData(4000, random)
|
TestUtil.buildTestData(4000, random)
|
||||||
), false);
|
), false);
|
||||||
skipToNextPage(extractorInput);
|
skipToNextPage(extractorInput);
|
||||||
@ -55,7 +55,7 @@ public class DefaultOggSeekerUtilMethodsTest extends TestCase {
|
|||||||
public void testSkipToNextPageInputShorterThanPeekLength() throws Exception {
|
public void testSkipToNextPageInputShorterThanPeekLength() throws Exception {
|
||||||
FakeExtractorInput extractorInput = TestData.createInput(
|
FakeExtractorInput extractorInput = TestData.createInput(
|
||||||
TestUtil.joinByteArrays(
|
TestUtil.joinByteArrays(
|
||||||
new byte[]{'x', 'O', 'g', 'g', 'S'}
|
new byte[] {'x', 'O', 'g', 'g', 'S'}
|
||||||
), false);
|
), false);
|
||||||
skipToNextPage(extractorInput);
|
skipToNextPage(extractorInput);
|
||||||
assertEquals(1, extractorInput.getPosition());
|
assertEquals(1, extractorInput.getPosition());
|
||||||
@ -63,7 +63,7 @@ public class DefaultOggSeekerUtilMethodsTest extends TestCase {
|
|||||||
|
|
||||||
public void testSkipToNextPageNoMatch() throws Exception {
|
public void testSkipToNextPageNoMatch() throws Exception {
|
||||||
FakeExtractorInput extractorInput = TestData.createInput(
|
FakeExtractorInput extractorInput = TestData.createInput(
|
||||||
new byte[]{'g', 'g', 'S', 'O', 'g', 'g'}, false);
|
new byte[] {'g', 'g', 'S', 'O', 'g', 'g'}, false);
|
||||||
try {
|
try {
|
||||||
skipToNextPage(extractorInput);
|
skipToNextPage(extractorInput);
|
||||||
fail();
|
fail();
|
||||||
|
@ -279,7 +279,7 @@ public class ParsableByteArrayTest extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testReadLittleEndianLong() {
|
public void testReadLittleEndianLong() {
|
||||||
ParsableByteArray byteArray = new ParsableByteArray(new byte[]{
|
ParsableByteArray byteArray = new ParsableByteArray(new byte[] {
|
||||||
0x01, 0x00, 0x00, 0x00,
|
0x01, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, (byte) 0xFF
|
0x00, 0x00, 0x00, (byte) 0xFF
|
||||||
});
|
});
|
||||||
@ -296,7 +296,7 @@ public class ParsableByteArrayTest extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testReadLittleEndianInt() {
|
public void testReadLittleEndianInt() {
|
||||||
ParsableByteArray byteArray = new ParsableByteArray(new byte[]{
|
ParsableByteArray byteArray = new ParsableByteArray(new byte[] {
|
||||||
0x01, 0x00, 0x00, (byte) 0xFF
|
0x01, 0x00, 0x00, (byte) 0xFF
|
||||||
});
|
});
|
||||||
assertEquals(0xFF000001, byteArray.readLittleEndianInt());
|
assertEquals(0xFF000001, byteArray.readLittleEndianInt());
|
||||||
@ -311,7 +311,7 @@ public class ParsableByteArrayTest extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testReadLittleEndianUnsignedShort() {
|
public void testReadLittleEndianUnsignedShort() {
|
||||||
ParsableByteArray byteArray = new ParsableByteArray(new byte[]{
|
ParsableByteArray byteArray = new ParsableByteArray(new byte[] {
|
||||||
0x01, (byte) 0xFF, 0x02, (byte) 0xFF
|
0x01, (byte) 0xFF, 0x02, (byte) 0xFF
|
||||||
});
|
});
|
||||||
assertEquals(0xFF01, byteArray.readLittleEndianUnsignedShort());
|
assertEquals(0xFF01, byteArray.readLittleEndianUnsignedShort());
|
||||||
@ -321,7 +321,7 @@ public class ParsableByteArrayTest extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testReadLittleEndianShort() {
|
public void testReadLittleEndianShort() {
|
||||||
ParsableByteArray byteArray = new ParsableByteArray(new byte[]{
|
ParsableByteArray byteArray = new ParsableByteArray(new byte[] {
|
||||||
0x01, (byte) 0xFF, 0x02, (byte) 0xFF
|
0x01, (byte) 0xFF, 0x02, (byte) 0xFF
|
||||||
});
|
});
|
||||||
assertEquals((short) 0xFF01, byteArray.readLittleEndianShort());
|
assertEquals((short) 0xFF01, byteArray.readLittleEndianShort());
|
||||||
|
@ -811,43 +811,43 @@ public final class Cea708Decoder extends CeaDecoder {
|
|||||||
private static final int PEN_OFFSET_NORMAL = 1;
|
private static final int PEN_OFFSET_NORMAL = 1;
|
||||||
|
|
||||||
// The window style properties are specified in the CEA-708 specification.
|
// The window style properties are specified in the CEA-708 specification.
|
||||||
private static final int[] WINDOW_STYLE_JUSTIFICATION = new int[]{
|
private static final int[] WINDOW_STYLE_JUSTIFICATION = new int[] {
|
||||||
JUSTIFICATION_LEFT, JUSTIFICATION_LEFT, JUSTIFICATION_LEFT,
|
JUSTIFICATION_LEFT, JUSTIFICATION_LEFT, JUSTIFICATION_LEFT,
|
||||||
JUSTIFICATION_LEFT, JUSTIFICATION_LEFT, JUSTIFICATION_CENTER,
|
JUSTIFICATION_LEFT, JUSTIFICATION_LEFT, JUSTIFICATION_CENTER,
|
||||||
JUSTIFICATION_LEFT
|
JUSTIFICATION_LEFT
|
||||||
};
|
};
|
||||||
private static final int[] WINDOW_STYLE_PRINT_DIRECTION = new int[]{
|
private static final int[] WINDOW_STYLE_PRINT_DIRECTION = new int[] {
|
||||||
DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT,
|
DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT,
|
||||||
DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT,
|
DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT, DIRECTION_LEFT_TO_RIGHT,
|
||||||
DIRECTION_TOP_TO_BOTTOM
|
DIRECTION_TOP_TO_BOTTOM
|
||||||
};
|
};
|
||||||
private static final int[] WINDOW_STYLE_SCROLL_DIRECTION = new int[]{
|
private static final int[] WINDOW_STYLE_SCROLL_DIRECTION = new int[] {
|
||||||
DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP,
|
DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP,
|
||||||
DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP,
|
DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP, DIRECTION_BOTTOM_TO_TOP,
|
||||||
DIRECTION_RIGHT_TO_LEFT
|
DIRECTION_RIGHT_TO_LEFT
|
||||||
};
|
};
|
||||||
private static final boolean[] WINDOW_STYLE_WORD_WRAP = new boolean[]{
|
private static final boolean[] WINDOW_STYLE_WORD_WRAP = new boolean[] {
|
||||||
false, false, false, true, true, true, false
|
false, false, false, true, true, true, false
|
||||||
};
|
};
|
||||||
private static final int[] WINDOW_STYLE_FILL = new int[]{
|
private static final int[] WINDOW_STYLE_FILL = new int[] {
|
||||||
COLOR_SOLID_BLACK, COLOR_TRANSPARENT, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK,
|
COLOR_SOLID_BLACK, COLOR_TRANSPARENT, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK,
|
||||||
COLOR_TRANSPARENT, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK
|
COLOR_TRANSPARENT, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK
|
||||||
};
|
};
|
||||||
|
|
||||||
// The pen style properties are specified in the CEA-708 specification.
|
// The pen style properties are specified in the CEA-708 specification.
|
||||||
private static final int[] PEN_STYLE_FONT_STYLE = new int[]{
|
private static final int[] PEN_STYLE_FONT_STYLE = new int[] {
|
||||||
PEN_FONT_STYLE_DEFAULT, PEN_FONT_STYLE_MONOSPACED_WITH_SERIFS,
|
PEN_FONT_STYLE_DEFAULT, PEN_FONT_STYLE_MONOSPACED_WITH_SERIFS,
|
||||||
PEN_FONT_STYLE_PROPORTIONALLY_SPACED_WITH_SERIFS, PEN_FONT_STYLE_MONOSPACED_WITHOUT_SERIFS,
|
PEN_FONT_STYLE_PROPORTIONALLY_SPACED_WITH_SERIFS, PEN_FONT_STYLE_MONOSPACED_WITHOUT_SERIFS,
|
||||||
PEN_FONT_STYLE_PROPORTIONALLY_SPACED_WITHOUT_SERIFS,
|
PEN_FONT_STYLE_PROPORTIONALLY_SPACED_WITHOUT_SERIFS,
|
||||||
PEN_FONT_STYLE_MONOSPACED_WITHOUT_SERIFS,
|
PEN_FONT_STYLE_MONOSPACED_WITHOUT_SERIFS,
|
||||||
PEN_FONT_STYLE_PROPORTIONALLY_SPACED_WITHOUT_SERIFS
|
PEN_FONT_STYLE_PROPORTIONALLY_SPACED_WITHOUT_SERIFS
|
||||||
};
|
};
|
||||||
private static final int[] PEN_STYLE_EDGE_TYPE = new int[]{
|
private static final int[] PEN_STYLE_EDGE_TYPE = new int[] {
|
||||||
BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_NONE,
|
BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_NONE,
|
||||||
BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_UNIFORM,
|
BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_NONE, BORDER_AND_EDGE_TYPE_UNIFORM,
|
||||||
BORDER_AND_EDGE_TYPE_UNIFORM
|
BORDER_AND_EDGE_TYPE_UNIFORM
|
||||||
};
|
};
|
||||||
private static final int[] PEN_STYLE_BACKGROUND = new int[]{
|
private static final int[] PEN_STYLE_BACKGROUND = new int[] {
|
||||||
COLOR_SOLID_BLACK, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK,
|
COLOR_SOLID_BLACK, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK, COLOR_SOLID_BLACK,
|
||||||
COLOR_SOLID_BLACK, COLOR_TRANSPARENT, COLOR_TRANSPARENT};
|
COLOR_SOLID_BLACK, COLOR_TRANSPARENT, COLOR_TRANSPARENT};
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ public final class DashUtilTest extends TestCase {
|
|||||||
|
|
||||||
private static DrmInitData newDrmInitData() {
|
private static DrmInitData newDrmInitData() {
|
||||||
return new DrmInitData(new SchemeData(C.WIDEVINE_UUID, null, "mimeType",
|
return new DrmInitData(new SchemeData(C.WIDEVINE_UUID, null, "mimeType",
|
||||||
new byte[]{1, 4, 7, 0, 3, 6}));
|
new byte[] {1, 4, 7, 0, 3, 6}));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user