-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
701: Java quickstarts cleanup: #702
Conversation
- Removed unused imports - Code style: add space after statements - Removed unused test code - Moved Dapr client creation outside of loops - Update dapr-sdk versions to 1.5 - Added Maven artifact name and description where missing - Aligned Maven artifact names to camel case Signed-off-by: Bilgin Ibryam <bibryam@gmail.com>
These code changes also require changes in the docs. The corresponding PR in the docs is here docs/pull/2639 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you much @bibryam -- this brings good idiomatic changes for Java. There's just one minor change suggested and then I'll take it.
bindings/java/http/batch/pom.xml
Outdated
<name>OrderProcessingService</name> | ||
<description>Demo for Dapr pubsub component</description> | ||
<name>BatchProcessingService</name> | ||
<description>Quickstart for Dapr Bingings building block</description> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<description>Quickstart for Dapr Bingings building block</description> | |
<description>Quickstart for Dapr Bindings building block</description> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, this is fixed now. Notice also the related quickstart docs PR in the docs project :)
"}"); | ||
|
||
return mapper.readValue(json, Orders.class); | ||
try (InputStream is = getClass().getClassLoader().getResourceAsStream(path)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing mock is ok. I agree with this.
@@ -14,11 +14,11 @@ public class CheckoutServiceApplication { | |||
public static void main(String[] args) throws InterruptedException{ | |||
String TOPIC_NAME = "orders"; | |||
String PUBSUB_NAME = "orderpubsub"; | |||
DaprClient client = new DaprClientBuilder().build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch. thank you.
Signed-off-by: Bilgin Ibryam <bibryam@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thank you for this @bibryam !
Signed-off-by: Bilgin Ibryam bibryam@gmail.com
Description
Issue reference
#701
Please reference the issue this PR will close: #[701]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: