Skip to content

Commit 46a9d7b

Browse files
committed
reduced complexity of QuickTimeOutputStream methods. Renamed AtomType values to readable ones.
1 parent b380f40 commit 46a9d7b

File tree

3 files changed

+1099
-921
lines changed

3 files changed

+1099
-921
lines changed

src/main/java/com/github/xsavikx/androidscreencast/api/recording/DataAtomOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ public void writeShort(int v) throws IOException {
288288
* @param type A string with a length of 4 characters.
289289
*/
290290
private void writeType(String type) throws IOException {
291-
checkNotNull(type, "Type string should not be null");
292291
checkArgument(type.length() == 4, "Type string must have exactly 4 characters. type=%s", type);
293292
try {
294293
out.write(type.getBytes("ASCII"), 0, 4);
@@ -304,6 +303,7 @@ private void writeType(String type) throws IOException {
304303
* @param atomType AtomType to be written
305304
*/
306305
public void writeType(AtomType atomType) throws IOException {
306+
checkNotNull(atomType, "AtomType should not be null");
307307
writeType(atomType.toStringRepresentation());
308308
}
309309

0 commit comments

Comments
 (0)