Skip to content

Commit

Permalink
portmap: don't create an array when calling vararg method
Browse files Browse the repository at this point in the history
Acked-by: Paul Millar
Acked-by: Svenja Meyer
Target: master
  • Loading branch information
kofemann committed Feb 5, 2020
1 parent 22fdabb commit cef527b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009 - 2018 Deutsches Elektronen-Synchroton,
* Copyright (c) 2009 - 2020 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -81,7 +81,7 @@ public boolean ping() {
public boolean setPort(int program, int version, String netids, String addr, String ignored)
throws OncRpcException, IOException, TimeoutException {
_log.debug("portmap set port: prog: {} vers: {}, netid: {} addr: {}",
new Object[]{program, version, netids, addr});
program, version, netids, addr);

int protocol = netid.idOf(netids);
if (protocol == -1) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009 - 2018 Deutsches Elektronen-Synchroton,
* Copyright (c) 2009 - 2020 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -64,7 +64,7 @@ public boolean setPort(int program, int version, String netid, String addr, Stri
throws OncRpcException, IOException, TimeoutException {

_log.debug("portmap set port: prog: {} vers: {}, netid: {} addr: {}, owner: {}",
new Object[] {program, version, netid, addr, owner});
program, version, netid, addr, owner);

rpcb m1 = new rpcb(program, version, netid, addr, owner);

Expand All @@ -79,7 +79,7 @@ public boolean unsetPort(int program, int version, String owner)
throws OncRpcException, IOException, TimeoutException {

_log.debug("portmap unset port: prog: {} vers: {}, owner: {}",
new Object[]{program, version, owner});
program, version, owner);

rpcb m = new rpcb(program, version, "", "", owner);

Expand Down

0 comments on commit cef527b

Please sign in to comment.