File tree 1 file changed +4
-3
lines changed
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/java
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1771,7 +1771,7 @@ private void generateChoices(
1771
1771
fields .add (fieldName );
1772
1772
1773
1773
classBuilder .appendField ()
1774
- .append (indent ).append ("boolean " ).append (fieldName ).append (";\n " );
1774
+ .append (indent ).append ("private boolean " ).append (fieldName ).append (";\n " );
1775
1775
1776
1776
classBuilder .appendPublic ()
1777
1777
.append ("\n " )
@@ -1782,7 +1782,7 @@ private void generateChoices(
1782
1782
1783
1783
classBuilder .appendPublic ()
1784
1784
.append ("\n " )
1785
- .append (indent ).append (dtoClassName ).append (" " )
1785
+ .append (indent ).append ("public " ). append ( dtoClassName ).append (" " )
1786
1786
.append (formattedPropertyName ).append ("(boolean value)\n " )
1787
1787
.append (indent ).append ("{\n " )
1788
1788
.append (indent ).append (INDENT ).append ("this." ).append (fieldName ).append (" = value;\n " )
@@ -1792,7 +1792,8 @@ private void generateChoices(
1792
1792
}
1793
1793
1794
1794
final StringBuilder clearBuilder = classBuilder .appendPublic ()
1795
- .append (indent ).append (dtoClassName ).append (" clear()\n " )
1795
+ .append ("\n " )
1796
+ .append (indent ).append ("public " ).append (dtoClassName ).append (" clear()\n " )
1796
1797
.append (indent ).append ("{\n " );
1797
1798
1798
1799
for (final String field : fields )
You can’t perform that action at this time.
0 commit comments