/*
 * Copyright (C) 2014 The TridentSDK Team
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package net.tridentsdk.server.netty.packet;

import io.netty.buffer.ByteBuf;
import net.tridentsdk.server.netty.protocol.Protocol4;

/**
 * Used to represent any erroneous packets received
 *
 * @author The TridentSDK Team
 */
public class UnknownPacket implements Packet {
    @Override
    public Packet decode(ByteBuf buf) {
        return this;
    }

    /**
     * {@inheritDoc}
     *
     * <p>Cannot be encoded. Throws UnsupportedOperationException</p>
     */
    @Override public ByteBuf encode() {
        throw new UnsupportedOperationException("Cannot serialize unknown packet");
    }

    @Override
    public PacketType getType() {
        return Protocol4.Unknown.UNKNOWN;
    }
}

@@ -769,16 +769,63 @@
 yteBuf;%0A
+import javax.annotation.concurrent.ThreadSafe;%0A
 import n
@@ -966,16 +966,28 @@
 eam%0A */%0A
+@ThreadSafe%0A
 public c

Update UnknownPacket.java