OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 19 | Rev 41 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 25
Line 51... Line 51...
51
        if (version != null) {
51
        if (version != null) {
52
            try {
52
            try {
53
                sb.append(' ');
53
                sb.append(' ');
54
                sb.append(VERSION_XMLATTR);
54
                sb.append(VERSION_XMLATTR);
55
                sb.append("=\"");
55
                sb.append("=\"");
56
                sb.append(version);
56
                sb.append(JDOMUtils.OUTPUTTER.escapeAttributeEntities(version));
57
                sb.append('"');
57
                sb.append('"');
58
            } catch (IOException e) {
58
            } catch (IOException e) {
59
                throw new IllegalStateException("Couldn't append version of " + schema, e);
59
                throw new IllegalStateException("Couldn't append version of " + schema, e);
60
            }
60
            }
61
        }
61
        }
Line 216... Line 216...
216
        // a table is about 16000 characters
216
        // a table is about 16000 characters
217
        final StringBuilder sb = new StringBuilder(16000 * 16);
217
        final StringBuilder sb = new StringBuilder(16000 * 16);
218
        sb.append("<schema ");
218
        sb.append("<schema ");
219
        if (this.getName() != null) {
219
        if (this.getName() != null) {
220
            sb.append(" name=\"");
220
            sb.append(" name=\"");
221
            sb.append(this.getName());
221
            sb.append(JDOMUtils.OUTPUTTER.escapeAttributeEntities(this.getName()));
222
            sb.append('"');
222
            sb.append('"');
223
        }
223
        }
224
        getVersionAttr(this, sb);
224
        getVersionAttr(this, sb);
225
        sb.append(" >\n");
225
        sb.append(" >\n");
226
 
226