提交 ca9f9948 authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

FileLock - remove redundant ipAddress field

上级 2e5a087e
...@@ -73,7 +73,7 @@ public class FileLock implements Runnable { ...@@ -73,7 +73,7 @@ public class FileLock implements Runnable {
*/ */
private long lastWrite; private long lastWrite;
private String method, ipAddress; private String method;
private Properties properties; private Properties properties;
private String uniqueId; private String uniqueId;
private Thread watchdog; private Thread watchdog;
...@@ -350,7 +350,7 @@ public class FileLock implements Runnable { ...@@ -350,7 +350,7 @@ public class FileLock implements Runnable {
setUniqueId(); setUniqueId();
// if this returns 127.0.0.1, // if this returns 127.0.0.1,
// the computer is probably not networked // the computer is probably not networked
ipAddress = NetUtils.getLocalAddress(); String ipAddress = NetUtils.getLocalAddress();
FileUtils.createDirectories(FileUtils.getParent(fileName)); FileUtils.createDirectories(FileUtils.getParent(fileName));
if (!FileUtils.createFile(fileName)) { if (!FileUtils.createFile(fileName)) {
waitUntilOld(); waitUntilOld();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论