You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the following code pattern is used several times into the FreescaleProxy class:
ParserLocker lock = new ParserLocker();
lock.setType(TypeMessage.PERMIT_JOIN);
Status status = new Status();
getListLocker().add(lock);
sendData(frame);
if (lock.getStatus().getCode() == ParserLocker.INVALID_ID)
lock.getObjectLocker().poll(timeout, TimeUnit.MILLISECONDS);
status = lock.getStatus();
if (getListLocker().contains(lock)) {
getListLocker().remove(lock);
}
if (status.getCode() == ParserLocker.INVALID_ID)
throw new GatewayException("Timeout expired in Permit Join");
else {
if (status.getCode() != 0)
throw new GatewayException(
"Error on ZDP-Mgmt_Permit_Join.Request. Status code:" + status.getCode() + " Status Message: " + status.getMessage());
}
It would be better to refactor the similar code in a method.
The text was updated successfully, but these errors were encountered:
Currently the following code pattern is used several times into the FreescaleProxy class:
It would be better to refactor the similar code in a method.
The text was updated successfully, but these errors were encountered: