Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 947caee5

Přidáno uživatelem Michal Horký před asi 4 roky(ů)

re #7879

Soubor Converter.java změněn.

Zobrazit rozdíly:

project/Deserializer/src/jdeserialize/classdesc.java
234 234
        indentation += formatting.get("indent");
235 235

  
236 236
        // ClassName
237
        sb.append(indentation).append("class ").append(this.name);
237
        sb.append(indentation).append(formatting.get("keywordCol")).append("class ").append(formatting.get("closeTagCol"));
238
        sb.append(formatting.get("classCol")).append(this.name).append(formatting.get("closeTagCol"));
238 239
        // extends
239 240
        if (this.superclass != null) {
240
            sb.append(" extends ").append(this.superclass.name);
241
            sb.append(formatting.get("keywordCol")).append(" extends ").append(formatting.get("closeTagCol"));
242
            sb.append(formatting.get("classCol")).append(this.superclass.name).append(formatting.get("closeTagCol"));
241 243
        }
242 244
        // implements
243 245
        if (this.interfaces != null) {
244
            sb.append(" implements ");
246
            sb.append(formatting.get("keywordCol")).append(" implements ").append(formatting.get("closeTagCol"));
245 247
            for (String str : this.interfaces) {
246
                sb.append(str);
248
                sb.append(formatting.get("classCol")).append(str).append(formatting.get("closeTagCol"));
247 249
            }
248 250
        }
249 251
        sb.append(" : {"); // ending of first line
......
265 267
            }
266 268

  
267 269
            sb.append(formatting.get("lineBreak")).append(indentation);
268
            sb.append("\"").append(f.name).append("\"");
270
            sb.append(formatting.get("fieldCol")).append("\"").append(f.name).append("\"").append(formatting.get("closeTagCol"));
269 271
            sb.append(" : ");
270 272
            sb.append(val);
271 273

  
......
273 275
                sb.append(", ");
274 276
            }
275 277
        }
276
        indentation = indentation.substring(0, indentation.length() - 1);
278
        indentation = indentation.replaceFirst(formatting.get("indent"), "");
277 279

  
278 280
        sb.append(formatting.get("lineBreak")).append(indentation).append("}");
279 281

  
280 282
        if(this.superclass != null)
281 283
        {
282
            indentation = indentation.substring(0, indentation.length() - 1);
284
            indentation = indentation.replaceFirst(formatting.get("indent"), "");
283 285
            sb.append(formatting.get("lineBreak")).append("}");
284 286
            sb.append("," + formatting.get("lineBreak"));
285 287
            sb.append(this.superclass.toJson(indentation, fielddata, formatting));
286 288
        }
287 289
        else 
288 290
        {
289
            indentation = indentation.substring(0, indentation.length() - 1);
291
            indentation = indentation.replaceFirst(formatting.get("indent"), "");
290 292
            sb.append(formatting.get("lineBreak")).append(indentation).append("}");
291 293
        }
292 294

  

Také k dispozici: Unified diff