You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/02/04 10:09:23 UTC
[shardingsphere] branch master updated: Fix code format for example template (#15243)
This is an automated email from the ASF dual-hosted git repository.
panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 455888c Fix code format for example template (#15243)
455888c is described below
commit 455888c61575ef93ba77b419fce2a3e1080c2ff2
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri Feb 4 18:08:23 2022 +0800
Fix code format for example template (#15243)
---
.../src/main/resources/template/java/ExampleService.ftl | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/examples/shardingsphere-sample/shardingsphere-example-generator/src/main/resources/template/java/ExampleService.ftl b/examples/shardingsphere-sample/shardingsphere-example-generator/src/main/resources/template/java/ExampleService.ftl
index cc6fd38..080276b 100644
--- a/examples/shardingsphere-sample/shardingsphere-example-generator/src/main/resources/template/java/ExampleService.ftl
+++ b/examples/shardingsphere-sample/shardingsphere-example-generator/src/main/resources/template/java/ExampleService.ftl
@@ -82,7 +82,7 @@ public final class ExampleService {
/**
* Execute test.
*
- * @throws SQLException
+ * @throws SQLException SQL exception
*/
public void run() throws SQLException {
try {
@@ -95,7 +95,8 @@ public final class ExampleService {
/**
* Initialize the database test environment.
- * @throws SQLException
+ *
+ * @throws SQLException SQL exception
*/
private void initEnvironment() throws SQLException {
orderRepository.createTableIfNotExists();
@@ -136,7 +137,7 @@ public final class ExampleService {
orderItem.setPhone("13800000001");
orderItem.setStatus("INSERT_TEST");
orderItemRepository.insert(orderItem);
-
+
Address address = new Address();
address.setAddressId((long) i);
address.setAddressName("address_test_" + i);
@@ -185,7 +186,8 @@ public final class ExampleService {
/**
* Restore the environment.
- * @throws SQLException
+ *
+ * @throws SQLException SQL exception
*/
private void cleanEnvironment() throws SQLException {
<#if feature?contains("shadow")>