@Override gets the point across
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6038 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -41,13 +41,13 @@ public class AdminDispatcher extends InvocationDispatcher<AdminMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public AdminMarshaller createMarshaller ()
|
||||
{
|
||||
return new AdminMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -48,13 +48,13 @@ public class BureauDecoder extends InvocationDecoder
|
||||
this.receiver = receiver;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public String getReceiverCode ()
|
||||
{
|
||||
return RECEIVER_CODE;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchNotification (int methodId, Object[] args)
|
||||
{
|
||||
switch (methodId) {
|
||||
|
||||
@@ -40,13 +40,13 @@ public class BureauDispatcher extends InvocationDispatcher<BureauMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public BureauMarshaller createMarshaller ()
|
||||
{
|
||||
return new BureauMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -41,13 +41,13 @@ public class ChannelSpeakDispatcher extends InvocationDispatcher<ChannelSpeakMar
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public ChannelSpeakMarshaller createMarshaller ()
|
||||
{
|
||||
return new ChannelSpeakMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -43,13 +43,13 @@ public class ChatDispatcher extends InvocationDispatcher<ChatMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public ChatMarshaller createMarshaller ()
|
||||
{
|
||||
return new ChatMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -40,13 +40,13 @@ public class SpeakDispatcher extends InvocationDispatcher<SpeakMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public SpeakMarshaller createMarshaller ()
|
||||
{
|
||||
return new SpeakMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -44,13 +44,13 @@ public class LocationDecoder extends InvocationDecoder
|
||||
this.receiver = receiver;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public String getReceiverCode ()
|
||||
{
|
||||
return RECEIVER_CODE;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchNotification (int methodId, Object[] args)
|
||||
{
|
||||
switch (methodId) {
|
||||
|
||||
@@ -44,13 +44,13 @@ public class CrowdPeerDispatcher extends InvocationDispatcher<CrowdPeerMarshalle
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public CrowdPeerMarshaller createMarshaller ()
|
||||
{
|
||||
return new CrowdPeerMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -40,13 +40,13 @@ public class BodyDispatcher extends InvocationDispatcher<BodyMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public BodyMarshaller createMarshaller ()
|
||||
{
|
||||
return new BodyMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -41,13 +41,13 @@ public class LocationDispatcher extends InvocationDispatcher<LocationMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public LocationMarshaller createMarshaller ()
|
||||
{
|
||||
return new LocationMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ByteBufferInputStream extends InputStream
|
||||
return _buffer;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public int read ()
|
||||
{
|
||||
try {
|
||||
@@ -59,7 +59,7 @@ public class ByteBufferInputStream extends InputStream
|
||||
}
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public int read (byte[] b, int offset, int length)
|
||||
throws IOException
|
||||
{
|
||||
@@ -71,7 +71,7 @@ public class ByteBufferInputStream extends InputStream
|
||||
return length;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public long skip (long n)
|
||||
throws IOException
|
||||
{
|
||||
@@ -80,25 +80,25 @@ public class ByteBufferInputStream extends InputStream
|
||||
return n;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public int available ()
|
||||
{
|
||||
return _buffer.remaining();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public boolean markSupported ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void mark (int readLimit)
|
||||
{
|
||||
_buffer.mark();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void reset ()
|
||||
throws IOException
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ public class ByteBufferOutputStream extends OutputStream
|
||||
_buffer.clear();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void write (int b)
|
||||
{
|
||||
try {
|
||||
@@ -77,7 +77,7 @@ public class ByteBufferOutputStream extends OutputStream
|
||||
}
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void write (byte[] b, int off, int len)
|
||||
{
|
||||
// sanity check the arguments
|
||||
|
||||
@@ -44,13 +44,13 @@ public class FramingOutputStream extends ByteBufferOutputStream
|
||||
_buffer.put(HEADER_PAD);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public ByteBuffer flip ()
|
||||
{
|
||||
throw new UnsupportedOperationException("Use frameAndReturnBuffer() instead.");
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void reset ()
|
||||
{
|
||||
throw new UnsupportedOperationException("Use resetFrame() instead.");
|
||||
|
||||
@@ -37,7 +37,7 @@ public class UnreliableObjectInputStream extends ObjectInputStream
|
||||
super(source);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected ClassMapping mapClass (short code, String cname)
|
||||
throws IOException, ClassNotFoundException
|
||||
{
|
||||
@@ -62,7 +62,7 @@ public class UnreliableObjectInputStream extends ObjectInputStream
|
||||
return cmap;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected void mapIntern (short code, String value)
|
||||
{
|
||||
// see if we already have a mapping
|
||||
|
||||
@@ -123,7 +123,7 @@ public class UnreliableObjectOutputStream extends ObjectOutputStream
|
||||
}
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected Short createInternMapping (short code)
|
||||
{
|
||||
// the negative intern code indicates that we must rewrite the metadata for the first
|
||||
@@ -132,14 +132,14 @@ public class UnreliableObjectOutputStream extends ObjectOutputStream
|
||||
return (short)-code;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected void writeNewInternMapping (short code, String value)
|
||||
throws IOException
|
||||
{
|
||||
writeInternMapping(code, value);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected void writeExistingInternMapping (short code, String value)
|
||||
throws IOException
|
||||
{
|
||||
@@ -157,7 +157,7 @@ public class UnreliableObjectOutputStream extends ObjectOutputStream
|
||||
}
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected void writeInternMapping (int code, String value)
|
||||
throws IOException
|
||||
{
|
||||
@@ -167,7 +167,7 @@ public class UnreliableObjectOutputStream extends ObjectOutputStream
|
||||
_mappedInterns.add(value);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected ClassMapping createClassMapping (short code, Class<?> sclass, Streamer streamer)
|
||||
{
|
||||
// the negative class code indicates that we must rewrite the metadata for the first
|
||||
@@ -176,14 +176,14 @@ public class UnreliableObjectOutputStream extends ObjectOutputStream
|
||||
return new ClassMapping((short)(-code), sclass, streamer);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected void writeNewClassMapping (ClassMapping cmap)
|
||||
throws IOException
|
||||
{
|
||||
writeClassMapping(cmap.code, cmap.sclass);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected void writeExistingClassMapping (ClassMapping cmap)
|
||||
throws IOException
|
||||
{
|
||||
@@ -201,7 +201,7 @@ public class UnreliableObjectOutputStream extends ObjectOutputStream
|
||||
}
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
protected void writeClassMapping (int code, Class<?> sclass)
|
||||
throws IOException
|
||||
{
|
||||
|
||||
@@ -49,20 +49,20 @@ public class EventNotification extends DownstreamMessage
|
||||
return _event;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void setTransport (Transport transport)
|
||||
{
|
||||
// the event handles the transport
|
||||
_event.setTransport(transport);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public Transport getTransport ()
|
||||
{
|
||||
return _event.getTransport();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void noteActualTransport (Transport transport)
|
||||
{
|
||||
_event.noteActualTransport(transport);
|
||||
|
||||
@@ -52,14 +52,14 @@ public class ForwardEventRequest extends UpstreamMessage
|
||||
return _event;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void setTransport (Transport transport)
|
||||
{
|
||||
// the event handles the transport
|
||||
_event.setTransport(transport);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public Transport getTransport ()
|
||||
{
|
||||
return _event.getTransport();
|
||||
|
||||
@@ -95,13 +95,13 @@ public class PingRequest extends UpstreamMessage
|
||||
in.defaultReadObject();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void setTransport (Transport transport)
|
||||
{
|
||||
_transport = transport;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public Transport getTransport ()
|
||||
{
|
||||
return _transport;
|
||||
|
||||
@@ -115,13 +115,13 @@ public class PongResponse extends DownstreamMessage
|
||||
in.defaultReadObject();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void setTransport (Transport transport)
|
||||
{
|
||||
_transport = transport;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public Transport getTransport ()
|
||||
{
|
||||
return _transport;
|
||||
|
||||
@@ -216,13 +216,13 @@ public class Transport
|
||||
(_channel == other._channel) ? _channel : 0);
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public int hashCode ()
|
||||
{
|
||||
return 31*_type.hashCode() + _channel;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public boolean equals (Object other)
|
||||
{
|
||||
Transport otrans;
|
||||
@@ -230,7 +230,7 @@ public class Transport
|
||||
otrans._channel == _channel;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
return "[type=" + _type + ", channel=" + _channel + "]";
|
||||
|
||||
@@ -96,13 +96,13 @@ public class NodeObject extends DObject
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public int hashCode ()
|
||||
{
|
||||
return type.hashCode() + (id == null ? 0 : id.hashCode());
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public boolean equals (Object other)
|
||||
{
|
||||
Lock olock = (Lock)other;
|
||||
|
||||
@@ -42,13 +42,13 @@ public class PeerDispatcher extends InvocationDispatcher<PeerMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public PeerMarshaller createMarshaller ()
|
||||
{
|
||||
return new PeerMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -1315,7 +1315,7 @@ public abstract class PeerManager
|
||||
}
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
return "[node=" + getNodeName() + ", lock=" + _lock + ", acquire=" + _acquire + "]";
|
||||
|
||||
@@ -39,13 +39,13 @@ public class TimeBaseDispatcher extends InvocationDispatcher<TimeBaseMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public TimeBaseMarshaller createMarshaller ()
|
||||
{
|
||||
return new TimeBaseMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -27,13 +27,13 @@ public class ${name}Decoder extends InvocationDecoder
|
||||
this.receiver = receiver;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public String getReceiverCode ()
|
||||
{
|
||||
return RECEIVER_CODE;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchNotification (int methodId, Object[] args)
|
||||
{
|
||||
switch (methodId) {
|
||||
|
||||
@@ -18,13 +18,13 @@ public class ${name}Dispatcher extends InvocationDispatcher<${name}Marshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public ${name}Marshaller createMarshaller ()
|
||||
{
|
||||
return new ${name}Marshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
@@ -149,7 +149,7 @@ public class StreamableEnumSet<E extends Enum<E>> extends AbstractSet<E>
|
||||
{
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public Iterator<E> iterator ()
|
||||
{
|
||||
return new Iterator<E>() {
|
||||
@@ -184,13 +184,13 @@ public class StreamableEnumSet<E extends Enum<E>> extends AbstractSet<E>
|
||||
};
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public int size ()
|
||||
{
|
||||
return _size;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public boolean contains (Object o)
|
||||
{
|
||||
if (!_elementType.isInstance(o)) {
|
||||
@@ -201,7 +201,7 @@ public class StreamableEnumSet<E extends Enum<E>> extends AbstractSet<E>
|
||||
return (_contents[idx] & mask) != 0;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public boolean add (E o)
|
||||
{
|
||||
int ordinal = _elementType.cast(o).ordinal();
|
||||
@@ -215,7 +215,7 @@ public class StreamableEnumSet<E extends Enum<E>> extends AbstractSet<E>
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public boolean remove (Object o)
|
||||
{
|
||||
if (!_elementType.isInstance(o)) {
|
||||
@@ -232,7 +232,7 @@ public class StreamableEnumSet<E extends Enum<E>> extends AbstractSet<E>
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void clear ()
|
||||
{
|
||||
Arrays.fill(_contents, (byte)0);
|
||||
@@ -240,7 +240,7 @@ public class StreamableEnumSet<E extends Enum<E>> extends AbstractSet<E>
|
||||
_modcount++;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public StreamableEnumSet<E> clone ()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -41,13 +41,13 @@ public class TestDispatcher extends InvocationDispatcher<TestMarshaller>
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public TestMarshaller createMarshaller ()
|
||||
{
|
||||
return new TestMarshaller();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
@Override
|
||||
public void dispatchRequest (
|
||||
ClientObject source, int methodId, Object[] args)
|
||||
throws InvocationException
|
||||
|
||||
Reference in New Issue
Block a user