if (propValue == null) { continue; } if (!"".equals(name)) { Object expectedValue = null; if (SVNProperty.KIND_DIR.equals(entry.get(SVNProperty.KIND))) { if (SVNProperty.UUID.equals(propName) || SVNProperty.REVISION.equals(propName) || SVNProperty.URL.equals(propName)) { continue; } } else { if (SVNProperty.URL.equals(propName)) { expectedValue = PathUtil.append((String) rootEntry.get(propName), PathUtil.encode(name)); }  else if (SVNProperty.UUID.equals(propName) || SVNProperty.REVISION.equals(propName)) { expectedValue = rootEntry.get(propName); } else { expectedValue = null; } if (propValue.equals(expectedValue)) { continue; } } }
    public void save(boolean close) throws SVNException {        if (myData == null) {            return;        }        Writer os = null;        File tmpFile = new File(myFile.getParentFile(), "tmp/entries");        try {            os = new FileWriter(tmpFile);            os.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");            os.write("<wc-entries\n");            os.write("   xmlns=\"svn:\">\n");            for (Iterator entries = myData.keySet().iterator(); entries.hasNext();) {                String name = (String) entries.next();                Map entry = (Map) myData.get(name);                os.write("<entry\n");                for (Iterator names = entry.keySet().iterator(); names.hasNext();) {                    String propName = (String) names.next();                    String propValue = (String) entry.get(propName);                    propName = propName.substring(SVNProperty.SVN_ENTRY_PREFIX.length());                    propValue = SVNTranslator.xmlEncode(propValue);                      os.write("   ");                    os.write(propName);                    os.write("=\"");                    os.write(propValue);                    os.write("\"");                    if (!names.hasNext()) {                        os.write("/>");                    }                    os.write("\n");                }            }            os.write("</wc-entries>\n");        } catch (IOException e) {            tmpFile.delete();            e.printStackTrace();            SVNErrorManager.error(0, e);        } finally {            if (os != null) {                try {                    os.close();                } catch (IOException e) {                }            }                    }        try {            SVNFileUtil.rename(tmpFile, myFile);            SVNFileUtil.setReadonly(myFile, true);        } catch (IOException e) {            tmpFile.delete();            SVNErrorManager.error(0, e);        }        if (close) {            close();        }    }