Use the overloaded default methods for default transport.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5115 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2008-05-22 00:36:20 +00:00
parent 3940a13e32
commit efb1a7c89a
6 changed files with 11 additions and 14 deletions
@@ -261,9 +261,9 @@ public abstract class InvocationTask extends Task
hint = method.getDeclaringClass().getAnnotation(TransportHint.class);
}
if (hint == null) {
return "Transport.DEFAULT";
return "";
}
return "Transport.getInstance(Transport.Type." +
return ", Transport.getInstance(Transport.Type." +
hint.type().name() + ", " + hint.channel() + ")";
}