@@ -1764,24 +1764,24 @@ private boolean isLocalHost(InetAddress address) {
17641764
17651765 @ Override
17661766 @ Subcontract
1767- public boolean isLocalServerId ( int subcontractId , int serverId )
1768- {
1767+ public boolean isLocalServerId (int subcontractId , int serverId ) {
1768+ final int psid ;
17691769 if (subcontractDebugFlag ) {
1770- int psid = -1 ;
17711770 if (configData .getPersistentServerIdInitialized ()) {
17721771 psid = configData .getPersistentServerId ();
1772+ } else {
1773+ psid = -1 ;
17731774 }
1774-
1775- isLocalServerIdInfo ( subcontractId , serverId ,
1776- getTransientServerId (),
1777- ORBConstants .isTransient (subcontractId ),
1778- configData .getPersistentServerIdInitialized (), psid ) ;
1775+ isLocalServerIdInfo (subcontractId , serverId , getTransientServerId (),
1776+ ORBConstants .isTransient (subcontractId ), configData .getPersistentServerIdInitialized (), psid );
1777+ } else {
1778+ psid = -1 ;
17791779 }
17801780
1781- LOG .log (DEBUG , "isLocalServerId: params[subcontractId={0}, serverId={1}], mystate[transientServerId={2},"
1782- + " persistentServerId={3}, persistentServerIdInitialized={4}]" ,
1783- subcontractId , serverId , getTransientServerId (),
1784- configData . getPersistentServerId (), configData .getPersistentServerIdInitialized ());
1781+ LOG .log (TRACE ,
1782+ () -> "isLocalServerId: params[subcontractId=" + subcontractId + ", serverId=" + serverId
1783+ + "], mystate[transientServerId=" + transientServerId + "," + " persistentServerId=" + psid
1784+ + ", persistentServerIdInitialized=" + configData .getPersistentServerIdInitialized () + "]" );
17851785
17861786 if (subcontractId < ORBConstants .FIRST_POA_SCID || subcontractId > ORBConstants .MAX_POA_SCID ) {
17871787 return serverId == getTransientServerId ();
0 commit comments