@@ -54,6 +54,7 @@ public final class CodecConfiguration
54
54
public static final String WRAP_EMPTY_BUFFER = "fix.codecs.wrap_empty_buffer" ;
55
55
public static final String PARENT_PACKAGE_PROPERTY = "fix.codecs.parent_package" ;
56
56
public static final String FLYWEIGHTS_ENABLED_PROPERTY = "fix.codecs.flyweight" ;
57
+ public static final String ALLOW_EMPTY_TAGS_PROPERTY = "fix.codecs.allow.empty.fix.tags" ;
57
58
public static final String REJECT_UNKNOWN_ENUM_VALUE_PROPERTY = "reject.unknown.enum.value" ;
58
59
public static final String FIX_TAGS_IN_JAVADOC = "fix.codecs.tags_in_javadoc" ;
59
60
@@ -63,6 +64,7 @@ public final class CodecConfiguration
63
64
private String parentPackage = System .getProperty (PARENT_PACKAGE_PROPERTY , DEFAULT_PARENT_PACKAGE );
64
65
private boolean flyweightsEnabled = Boolean .getBoolean (FLYWEIGHTS_ENABLED_PROPERTY );
65
66
private boolean wrapEmptyBuffer = Boolean .getBoolean (WRAP_EMPTY_BUFFER );
67
+ private boolean allowEmptyTags = Boolean .getBoolean (ALLOW_EMPTY_TAGS_PROPERTY );
66
68
private boolean fixTagsInJavadoc = Boolean .parseBoolean (System .getProperty (
67
69
FIX_TAGS_IN_JAVADOC , DEFAULT_FIX_TAGS_IN_JAVADOC ));
68
70
private SharedCodecConfiguration sharedCodecConfiguration ;
@@ -114,6 +116,12 @@ public CodecConfiguration flyweightsEnabled(final boolean flyweightsEnabled)
114
116
return this ;
115
117
}
116
118
119
+ public CodecConfiguration allowEmptyTags (final boolean allowEmptyTags )
120
+ {
121
+ this .allowEmptyTags = allowEmptyTags ;
122
+ return this ;
123
+ }
124
+
117
125
/**
118
126
* Suppresses checks for the presence of optional string fields (i.e. no exception is
119
127
* thrown when unset, instead the AsciiSequenceView wraps an empty buffer).
@@ -248,6 +256,11 @@ boolean wrapEmptyBuffer()
248
256
return wrapEmptyBuffer ;
249
257
}
250
258
259
+ boolean allowEmptyTags ()
260
+ {
261
+ return allowEmptyTags ;
262
+ }
263
+
251
264
String codecRejectUnknownEnumValueEnabled ()
252
265
{
253
266
return codecRejectUnknownEnumValueEnabled ;
0 commit comments