public Status getStatus(FileObject file) { StatusImpl result = readFromCache(file); if (result != null) { return result; } Status status = delegate.getStatus(file); if (status == null) { return null; } synchronized (this) { StatusImpl foisted = readFromCache(file); if (foisted != null) { return foisted; } file2Status.put(file, new WeakReference<StatusImpl>(result = new StatusImpl(cosEnabled, status))); } return result; }
Status s = fbqi.getStatus(file); if (s != null) { return s;