@@ -86,6 +86,9 @@ private void addMessageSignal(final Message msg, final Signal signal)
8686 .size (msg .blockLength ())
8787 .schemaId (msg .id ())
8888 .version (version )
89+  .encoding (new  Encoding .Builder ()
90+  .semanticType (msg .semanticType ())
91+  .build ())
8992 .build ();
9093
9194 tokenList .add (token );
@@ -102,7 +105,8 @@ private void addFieldSignal(final Field field, final Signal signal)
102105 .encoding (new  Encoding .Builder ()
103106 .epoch (field .epoch ())
104107 .timeUnit (field .timeUnit ())
105-  .semanticType (semanticTypeOf (null , field )).build ())
108+  .semanticType (semanticTypeOf (null , field ))
109+  .build ())
106110 .build ();
107111
108112 tokenList .add (token );
@@ -165,7 +169,8 @@ private void add(final CompositeType type, final int currOffset, final Field fie
165169 .offset (currOffset )
166170 .size (type .size ())
167171 .encoding (new  Encoding .Builder ()
168-  .semanticType (semanticTypeOf (type , field )).build ());
172+  .semanticType (semanticTypeOf (type , field ))
173+  .build ());
169174
170175 if  (field  != null )
171176 {
@@ -319,25 +324,25 @@ private void add(final EncodedDataType type, final int offset, final Field field
319324 {
320325 case  REQUIRED :
321326 encodingBuilder .presence (Encoding .Presence .REQUIRED )
322-    .minVal (type .minVal ())
323-    .maxVal (type .maxVal ());
327+  .minVal (type .minVal ())
328+  .maxVal (type .maxVal ());
324329 break ;
325330
326331 case  OPTIONAL :
327332 encodingBuilder .presence (Encoding .Presence .OPTIONAL )
328-    .minVal (type .minVal ())
329-    .maxVal (type .maxVal ())
330-    .nullVal (type .nullVal ());
333+  .minVal (type .minVal ())
334+  .maxVal (type .maxVal ())
335+  .nullVal (type .nullVal ());
331336 break ;
332337
333338 case  CONSTANT :
334339 encodingBuilder .presence (Encoding .Presence .CONSTANT )
335-    .constVal (type .constVal ());
340+  .constVal (type .constVal ());
336341 break ;
337342 }
338343
339344 final  Token  token  = tokenBuilder .encoding (encodingBuilder .build ())
340-    .build ();
345+  .build ();
341346
342347 tokenList .add (token );
343348 }
0 commit comments