Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public String handleRequest(Object input, Context context) {
}
}

// test PR
class PublishHelloWorld extends TimerTask {
private IotDataClient iotDataClient = new IotDataClient();
private String publishMessage = String.format("Hello world! Sent from Greengrass Core running on platform: %s-%s using Java", System.getProperty("os.name"), System.getProperty("os.version"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public final class ApacheHttpClient implements SdkHttpClient {
private final ApacheHttpRequestConfig requestConfig;
private final AttributeMap resolvedOptions;

// code change to fix the bug
@SdkTestInternalApi
ApacheHttpClient(ConnectionManagerAwareHttpClient httpClient,
ApacheHttpRequestConfig requestConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private void closeEventLoopUninterruptibly(EventLoopGroup eventLoopGroup) throws
Thread.currentThread().interrupt();
throw new RuntimeException(e);
} catch (TimeoutException e) {
log.error(String.format("Shutting down Netty EventLoopGroup did not complete within %s seconds",
log.error(String.format("Shutting down Netty EventLoopGroup did not complete within %d seconds",
EVENTLOOP_SHUTDOWN_FUTURE_TIMEOUT_SECONDS));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private static String readResponseString(HttpURLConnection connection) {
try {
return os.toString(StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException("UTF-8 not supported can't happen.");
throw new IllegalStateException("UTF-8 not supported can't happen.", e);
}
}

Expand Down