Skip to content
Snippets Groups Projects
Commit 3a4f805d authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

private method renamed for better coherence

parent 55ec05c6
No related branches found
No related tags found
No related merge requests found
...@@ -891,7 +891,7 @@ public class CurrentScanDataModel { ...@@ -891,7 +891,7 @@ public class CurrentScanDataModel {
return attribute.extractBoolean(); return attribute.extractBoolean();
} }
private static String readNexusFieName(String scanServerName, DeviceProxy scanProxy, int tryCount) private static String readNexusFileNameNoLock(String scanServerName, DeviceProxy scanProxy, int tryCount)
throws DevFailed { throws DevFailed {
String nexusFileName = null; String nexusFileName = null;
DeviceAttribute attribute = scanProxy.read_attribute(NEXUS_FILE); DeviceAttribute attribute = scanProxy.read_attribute(NEXUS_FILE);
...@@ -937,10 +937,10 @@ public class CurrentScanDataModel { ...@@ -937,10 +937,10 @@ public class CurrentScanDataModel {
try { try {
if (isSynchronizeDeviceAccesses()) { if (isSynchronizeDeviceAccesses()) {
synchronized (scanProxy) { synchronized (scanProxy) {
nexusFileName = readNexusFieName(scanServerName, scanProxy, ++tryCount); nexusFileName = readNexusFileNameNoLock(scanServerName, scanProxy, ++tryCount);
} }
} else { } else {
nexusFileName = readNexusFieName(scanServerName, scanProxy, ++tryCount); nexusFileName = readNexusFileNameNoLock(scanServerName, scanProxy, ++tryCount);
} }
} catch (Exception e) { } catch (Exception e) {
LOGGER.error(CANNOT_READ_ATTRIBUTE_N_TRY_NB, scanServerName, NEXUS_FILE, LOGGER.error(CANNOT_READ_ATTRIBUTE_N_TRY_NB, scanServerName, NEXUS_FILE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment