Source:
private void playMakeTurn(RouteSegmentResult currentSegment, RouteDirectionInfo next, NextDirectionInfo nextNextInfo) { CommandBuilder p = getNewCommandPlayerToPlay(); if (p != null) { String tParam = getTurnType(next.getTurnType()); boolean isplay = true; if (tParam != null) { p.turn(tParam, getSpeakableStreetName(currentSegment, next, !suppressDest)); } else if (next.getTurnType().isRoundAbout()) { p.roundAbout(next.getTurnType().getTurnAngle(), next.getTurnType().getExitOut(), getSpeakableStreetName(currentSegment, next, !suppressDest)); } else if (next.getTurnType().getValue() == TurnType.TU || next.getTurnType().getValue() == TurnType.TRU) { p.makeUT(getSpeakableStreetName(currentSegment, next, !suppressDest)); } else { isplay = false; } if ((nextNextInfo != null) && (nextNextInfo.directionInfo != null)) { if (nextNextInfo.directionInfo.getTurnType().getValue() != TurnType.C && next.getTurnType().getValue() == TurnType.C) { p.goAhead(); isplay = true; } String t2Param = getTurnType(nextNextInfo.directionInfo.getTurnType()); if (t2Param != null) { if (isplay) { p.then(); p.turn(t2Param, nextNextInfo.distanceTo, new StreetName()); } } else if (nextNextInfo.directionInfo.getTurnType().isRoundAbout()) { if (isplay) { p.then(); p.roundAbout(nextNextInfo.distanceTo, nextNextInfo.directionInfo.getTurnType().getTurnAngle(), nextNextInfo.directionInfo.getTurnType().getExitOut(), new StreetName()); } } else if (nextNextInfo.directionInfo.getTurnType().getValue() == TurnType.TU) { if (isplay) { p.then(); p.makeUT(nextNextInfo.distanceTo, new StreetName()); } } } if (isplay) { p.play(); } play(null); } }

Target:
private void playMakeTurn(RouteSegmentResult currentSegment, RouteDirectionInfo next, NextDirectionInfo nextNextInfo) { CommandBuilder p = getNewCommandPlayerToPlay(); if (p != null) { String tParam = getTurnType(next.getTurnType()); boolean isplay = true; if (tParam != null) { p.turn(tParam, getSpeakableStreetName(currentSegment, next, !suppressDest)); } else if (next.getTurnType().isRoundAbout()) { p.roundAbout(next.getTurnType().getTurnAngle(), next.getTurnType().getExitOut(), getSpeakableStreetName(currentSegment, next, !suppressDest)); } else if (next.getTurnType().getValue() == TurnType.TU || next.getTurnType().getValue() == TurnType.TRU) { p.makeUT(getSpeakableStreetName(currentSegment, next, !suppressDest)); } else { isplay = false; } if ((nextNextInfo != null) && (nextNextInfo.directionInfo != null)) { if (nextNextInfo.directionInfo.getTurnType().getValue() != TurnType.C && next.getTurnType().getValue() == TurnType.C) { p.goAhead(); isplay = true; } String t2Param = getTurnType(nextNextInfo.directionInfo.getTurnType()); if (t2Param != null) { if (isplay) { p.then(); p.turn(t2Param, nextNextInfo.distanceTo, new StreetName()); } } else if (nextNextInfo.directionInfo.getTurnType().isRoundAbout()) { if (isplay) { p.then(); p.roundAbout(nextNextInfo.distanceTo, nextNextInfo.directionInfo.getTurnType().getTurnAngle(), nextNextInfo.directionInfo.getTurnType().getExitOut(), new StreetName()); } } else if (nextNextInfo.directionInfo.getTurnType().getValue() == TurnType.TU) { if (isplay) { p.then(); p.makeUT(nextNextInfo.distanceTo, new StreetName()); } } } if (isplay) { play(p); } } }