747576777879808182
} public ByteChannel getChannel(Device owner) throws ChannelAlreadyOwnedException { if (channelOwner != null) throw new ChannelAlreadyOwnedException(channelOwner); channelOwner = owner; return this; }
7273747576777879808182
} public synchronized ByteChannel getChannel(Device owner) throws ChannelAlreadyOwnedException, DeviceException { if (this.owner != null) { throw new ChannelAlreadyOwnedException(this.owner); } else { this.owner = owner; return this; } }