All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowBlockGuardOs Maven / Gradle / Ivy

package org.robolectric.shadows;

import android.system.ErrnoException;
import java.io.FileDescriptor;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

@Implements(className = "libcore.io.BlockGuardOs", isInAndroidSdk = false)
public class ShadowBlockGuardOs {
  // override to avoid call to non-existent FileDescriptor.isSocket
  @Implementation
  protected void close(FileDescriptor fd) throws ErrnoException {
    // ignore
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy