You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by gi...@apache.org on 2025/04/13 00:29:52 UTC
(pekko-grpc) 02/03: Reformat with sbt-java-formatter 0.10.0
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch update/sbt-java-formatter-0.10.0
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git
commit 53815c7c84fbc5e8522a02a7f20742eb7c133203
Author: scala-steward-asf[bot] <14...@users.noreply.github.com>
AuthorDate: Sun Apr 13 00:29:46 2025 +0000
Reformat with sbt-java-formatter 0.10.0
Executed command: sbt javafmtAll
---
.../src/test/java/example/myapp/helloworld/grpc/RichErrorImpl.java | 1 +
.../test/java/example/myapp/helloworld/grpc/RichErrorNativeImpl.java | 1 +
.../src/main/java/example/myapp/helloworld/LiftedGreeterClient.java | 1 +
.../example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java | 3 +++
4 files changed, 6 insertions(+)
diff --git a/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorImpl.java b/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorImpl.java
index f7118b36..542431dc 100644
--- a/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorImpl.java
+++ b/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorImpl.java
@@ -48,6 +48,7 @@ public class RichErrorImpl implements GreeterService {
future.completeExceptionally(statusRuntimeException);
return future;
}
+
// #rich_error_model_unary
@Override
diff --git a/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorNativeImpl.java b/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorNativeImpl.java
index 6b277eda..232826cb 100644
--- a/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorNativeImpl.java
+++ b/interop-tests/src/test/java/example/myapp/helloworld/grpc/RichErrorNativeImpl.java
@@ -40,6 +40,7 @@ public class RichErrorNativeImpl implements GreeterService {
future.completeExceptionally(exception);
return future;
}
+
// #rich_error_model_unary
@Override
diff --git a/plugin-tester-java/src/main/java/example/myapp/helloworld/LiftedGreeterClient.java b/plugin-tester-java/src/main/java/example/myapp/helloworld/LiftedGreeterClient.java
index bac878bc..d3d56c8f 100644
--- a/plugin-tester-java/src/main/java/example/myapp/helloworld/LiftedGreeterClient.java
+++ b/plugin-tester-java/src/main/java/example/myapp/helloworld/LiftedGreeterClient.java
@@ -61,6 +61,7 @@ class LiftedGreeterClient {
CompletionStage<HelloReply> reply = client.sayHello().addHeader("key", "value").invoke(request);
System.out.println("got single reply: " + reply.toCompletableFuture().get(5, TimeUnit.SECONDS));
}
+
// #with-metadata
private static void streamingRequest(GreeterServiceClient client) throws Exception {
diff --git a/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java b/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java
index 2b914c76..672fb434 100644
--- a/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java
+++ b/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java
@@ -73,6 +73,7 @@ public class LoggingErrorHandlingGreeterServer {
}
}
}
+
// #implementation
// #method
@@ -121,6 +122,7 @@ public class LoggingErrorHandlingGreeterServer {
}
}));
}
+
// #method
// #custom-error-mapping
@@ -132,6 +134,7 @@ public class LoggingErrorHandlingGreeterServer {
return null;
}
};
+
// #custom-error-mapping
public static CompletionStage<ServerBinding> run(ActorSystem sys) throws Exception {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org