fixed merge problem
This commit is contained in:
parent
8f02ee8351
commit
bd17914eca
1 changed files with 4 additions and 10 deletions
|
@ -38,15 +38,9 @@ public class NodeData extends MapCreatorBase
|
|||
dos.writeDiffed( nid, 0 );
|
||||
dos.writeDiffed( ilon, 1 );
|
||||
dos.writeDiffed( ilat, 2 );
|
||||
if (description != null && description.length > Byte.MAX_VALUE) {
|
||||
System.err.printf("Node id (%s): description length (%d) is longer then maximum allowed (%d). The description will NOT be written.", nid, description.length, Byte.MAX_VALUE);
|
||||
System.out.printf("Node id (%s): description length (%d) is longer then maximum allowed (%d). The description will NOT be written.", nid, description.length, Byte.MAX_VALUE);
|
||||
dos.writeByte((byte) 0);
|
||||
} else {
|
||||
int mode = (description == null ? 0 : 1 ) | ( selev == Short.MIN_VALUE ? 0 : 2 );
|
||||
dos.writeShort( (byte) mode);
|
||||
if ( ( mode & 1 ) != 0 ) { dos.write( description.length ); dos.write( description ); }
|
||||
if ( ( mode & 2 ) != 0 ) dos.writeShort( selev );
|
||||
}
|
||||
int mode = (description == null ? 0 : 1 ) | ( selev == Short.MIN_VALUE ? 0 : 2 );
|
||||
dos.writeByte( (byte) mode);
|
||||
if ( ( mode & 1 ) != 0 ) { dos.writeShort( description.length ); dos.write( description ); }
|
||||
if ( ( mode & 2 ) != 0 ) dos.writeShort( selev );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue