Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 53949177

Přidáno uživatelem Jan Havlíček před asi 4 roky(ů)

#re#7831 Indetation OK, format OK

Zobrazit rozdíly:

project/Deserializer/src/jdeserialize/instance.java
30 30
    {
31 31
        StringBuffer sb = new StringBuffer();
32 32
        String val = "";
33
        
34
        indentation += "\t";
33 35

  
34 36
        /*if (classdesc.getType() == contenttype.CLASSDESC && !instance.indentedClasses.contains(classdesc.name)) {*/
35
            indentation += "\t";
36 37
           /* instance.indentedClasses.add(classdesc.name);
37 38
        }*/
38 39

  
......
53 54
            //System.out.println(sb.toString());
54 55
        }
55 56
        sb.append(" : {"); // ending of first line
57
        
58
        indentation += "\t";
56 59
        //System.out.println(sb.toString());
57 60

  
58 61
        for (field f : classdesc.fields) {
......
70 73
                val = locVal.toString();
71 74
            }
72 75

  
73
            sb.append("\n\t").append(indentation);
76
            sb.append("\n").append(indentation);
74 77
            sb.append("\"").append(f.name).append("\"");
75 78
            sb.append(" : ");
76 79
            sb.append(val);
......
81 84
                //System.out.println(sb.toString());
82 85
            }
83 86
        }
87
        indentation = indentation.substring(0, indentation.length() - 1);
84 88

  
85
        sb.append("\n").append(indentation).append("}\n}");
89
        sb.append("\n").append(indentation).append("}\n");
90
        indentation = indentation.substring(0, indentation.length() - 1);
91
        sb.append(indentation).append("}");
86 92
        //System.out.println(sb.toString());
87 93

  
88 94
        /*if (classdesc.getType() == contenttype.CLASSDESC && instance.indentedClasses.contains(classdesc.name)) {*/
89
            indentation.replaceFirst("\t", "");
95
        
90 96
            /*instance.indentedClasses.remove(classdesc.name);
91 97
        }*/
92 98

  

Také k dispozici: Unified diff