new ConnectActionClientObject(host, port, false) {
@Override
public void action(Version serverVersion) throws Exception {
- Object rep = sendCmd(this,
- new Object[] { "GET_CUSTOM_COVER", type, source });
+ Object rep = sendCmd(this, new Object[] {
+ "GET_CUSTOM_COVER", type, source });
result[0] = (Image) rep;
}
}
List<Object> list = new ArrayList<Object>();
- for (Object obj = send(null); obj != null; obj = send(
- null)) {
+ for (Object obj = send(null); obj != null; obj = send(null)) {
list.add(obj);
pg.add(1);
}
pg = new Progress();
}
-
- Object rep = sendCmd(this,
- new Object[] { "GET_METADATA", luid });
+ Object rep = sendCmd(this, new Object[] { "GET_METADATA",
+ luid });
while (true) {
if (!RemoteLibraryServer.updateProgress(pg, rep)) {
Object rep = action.send(params);
String hash = hashKey(key, "" + rep);
- rep = action.send(hash);
- if (rep == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
return action.send(hash);
}
Object[] args = new Object[0];
if (data instanceof Object[]) {
Object[] dataArray = (Object[]) data;
- if (dataArray.length >= 2) {
+ if (dataArray.length > 0) {
command = "" + dataArray[0];
args = new Object[dataArray.length - 1];