Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Updates nullability annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Janusz Baginski committed Nov 23, 2023
1 parent 16636c3 commit 68bc8db
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import com.android.ddmlib.ShellCommandUnresponsiveException;
import com.android.ddmlib.TimeoutException;
import com.android.ddmlib.testrunner.TestIdentifier;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Nonnull;
import java.io.IOException;

public class RemoteFileManager {
Expand Down Expand Up @@ -65,22 +65,22 @@ private static void executeCommand(IDevice device, String command, String errorM
}
}

@NotNull
@Nonnull
public static String remoteVideoForTest(IDevice device, TestIdentifier test) {
return remoteFileForTest(device, videoFileName(test));
}

@NotNull
@Nonnull
private static String remoteFileForTest(IDevice device, String filename) {
return getForkDirectory(device) + "/" + filename;
}

@NotNull
@Nonnull
private static String getCoverageDirectory(IDevice device) {
return getForkDirectory(device) + "/coverage";
}

@NotNull
@Nonnull
private static String getForkDirectory(IDevice device) {
String externalStorage = device.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE);
if (externalStorage != null) {
Expand Down

0 comments on commit 68bc8db

Please sign in to comment.