* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.cases;
import java.util.Optional;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.openflowplugin.api.OFConstants;
import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.data.ActionResponseConvertorData;
}
@Override
- public Optional<Action> process(@Nonnull final SetTpSrcCase source, final ActionResponseConvertorData data, ConvertorExecutor convertorExecutor) {
+ public Optional<Action> process(@NonNull final SetTpSrcCase source, final ActionResponseConvertorData data,
+ final ConvertorExecutor convertorExecutor) {
return Optional.of(new SetTpSrcActionCaseBuilder()
.setSetTpSrcAction(new SetTpSrcActionBuilder()
- .setPort(new PortNumber(source.getSetTpSrcAction().getPort().getValue().intValue()))
+ .setPort(new PortNumber(source.getSetTpSrcAction().getPort().getValue().toUint16()))
.setIpProtocol(data.getIpProtocol())
.build())
.build());