Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ public void read(final DataInput input, ProtocolIoFuture<Void> future) throws IO

static ProtocolCommand<Void> RENAME = new BaseProtocolCommand<Void, ProtocolIoFuture<Void>>((byte) 0x07) {
public Void execute(final Channel channel, final Object... args) throws IOException, NamingException {
if (args.length != 2 || !(args[0] instanceof Name) || !(args[0] instanceof Name)) {
if (args.length != 2 || !(args[0] instanceof Name) || !(args[1] instanceof Name)) {
throw new IllegalArgumentException("Rename requires two name arguments");
}
final Name name = Name.class.cast(args[0]);
Expand Down