Changeset 322:6ad5f2af078e in finroc_core-java


Ignore:
Timestamp:
15.07.2019 07:44:19 (2 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Removes some unnecessary casts (as indicated by Eclipse)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • net/generic_protocol/RemoteRuntime.java

    r311 r322  
    4141import org.finroc.core.port.rpc.RPCInterfaceType; 
    4242import org.finroc.core.port.rpc.internal.AbstractCall; 
     43import org.finroc.core.port.rpc.internal.AbstractCall.CallType; 
    4344import org.finroc.core.port.rpc.internal.RPCMessage; 
    4445import org.finroc.core.port.rpc.internal.RPCPort; 
    4546import org.finroc.core.port.rpc.internal.RPCRequest; 
    4647import org.finroc.core.port.rpc.internal.RPCResponse; 
    47 import org.finroc.core.port.rpc.internal.AbstractCall.CallType; 
    4848import org.finroc.core.port.std.PortBase; 
    4949import org.finroc.core.port.std.PortDataManager; 
     
    306306                    return 0; 
    307307                } 
    308                 pingTime = Math.max(pingTime, (float)c.getAvgPingTime()); 
     308                pingTime = Math.max(pingTime, c.getAvgPingTime()); 
    309309            } 
    310310        } 
     
    314314            return 0; 
    315315        } else { 
    316             return ((float)pingTime - 300.0f) / 1000.0f; 
     316            return (pingTime - 300.0f) / 1000.0f; 
    317317        } 
    318318    } 
     
    824824            } 
    825825            if (pullCall.resultBuffer != null) { 
    826                 pullCall.resultBuffer.getCurrentRefCounter().setLocks((byte)(addLocks)); 
     826                pullCall.resultBuffer.getCurrentRefCounter().setLocks(addLocks); 
    827827                return pullCall.resultBuffer; 
    828828            } 
Note: See TracChangeset for help on using the changeset viewer.