Changeset 173:aeae6c2bbe7b in finroc_plugins_data_types-java


Ignore:
Timestamp:
15.11.2019 07:32:23 (3 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
default
Phase:
public
Message:

Adapts to changes in rrlib_serialization-java (explicit throws clause for binary serialization added)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • PoseTypeAdapter.java

    r167 r173  
    8282 
    8383    @Override 
    84     public void serialize(BinaryOutputStream stream, GenericObject object, RemoteType type, Info adapterInfo) { 
     84    public void serialize(BinaryOutputStream stream, GenericObject object, RemoteType type, Info adapterInfo) throws Exception { 
    8585        if (adapterInfo.localType == Pose2D.TYPE && (object.getType().getJavaClass() == Pose3D.class)) { 
    8686            Pose2D pose2d = (Pose2D)object.getData(); 
  • QuantityTypeAdapter.java

    r170 r173  
    147147 
    148148    @Override 
    149     public void serialize(BinaryOutputStream stream, GenericObject object, RemoteType type, Info adapterInfo) { 
     149    public void serialize(BinaryOutputStream stream, GenericObject object, RemoteType type, Info adapterInfo) throws Exception { 
    150150        SIUnit targetUnit = (SIUnit)adapterInfo.customAdapterData2; 
    151151        Unit sourceUnit = ((CoreNumber)object.getData()).getUnit(); 
Note: See TracChangeset for help on using the changeset viewer.