- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {OutputStreamWriter o =
OutputStream out;new OutputStreamWriter(out)
OutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
HttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
- Smart code suggestions by Codota
}
@Override public void execute() throws Exception { // Actually this command always use multicast command to support multiple targets. final Multicast multicast = payloadProvider.read(Multicast.class); final BotApiResponse botApiResponse; if (multicast.getTo().size() == 1) { // Send using pushMessage final String userId = multicast.getTo().iterator().next(); final PushMessage pushMessage = new PushMessage(userId, multicast.getMessages()); botApiResponse = lineMessagingClient.pushMessage(pushMessage).get(); } else { // Send using multicast if (multicast.getMessages().stream().anyMatch(message -> message instanceof FlexMessage)) { log.warn("multicast FlexMessage is not supported as of 2018/07. " + "If you got exception. Try with single `to`."); } botApiResponse = lineMessagingClient.multicast(multicast).get(); } log.info("Successfully finished: {}", botApiResponse); } }