SquirrelJME/SquirrelJME

View on GitHub
modules/dio/src/main/java/jdk/dio/spi/AbstractDevice.java

Summary

Maintainability
A
0 mins
Test Coverage
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package jdk.dio.spi;

import cc.squirreljme.runtime.cldc.annotation.Api;
import cc.squirreljme.runtime.cldc.debug.Debugging;
import java.io.IOException;
import jdk.dio.ClosedDeviceException;
import jdk.dio.Device;
import jdk.dio.DeviceDescriptor;
import jdk.dio.UnavailableDeviceException;

@SuppressWarnings("DuplicateThrows")
@Api
public abstract class AbstractDevice<P extends Device<? super P>>
    implements Device<P>
{
    @Api
    public AbstractDevice()
    {
        throw Debugging.todo();
    }
    
    @Override
    public final <U extends P> DeviceDescriptor<U> getDescriptor()
    {
        throw Debugging.todo();
    }
    
    @Override
    public void tryLock(int __a)
        throws UnavailableDeviceException, ClosedDeviceException, 
            IOException
    {
        if (false)
            throw new UnavailableDeviceException();
        if (false)
            throw new ClosedDeviceException();
        if (false)
            throw new IOException();
        throw Debugging.todo();
    }
    
    @Override
    public void unlock()
        throws IOException
    {
        if (false)
            throw new IOException();
        throw Debugging.todo();
    }
}