This is an automated email from the ASF dual-hosted git repository.

zhangliang 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 cb32d902f3b Code format for JDBCExampleGenerator (#36926)
cb32d902f3b is described below

commit cb32d902f3b92340c4812f2b75358dcf146ad1bd
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Oct 23 14:10:30 2025 +0800

    Code format for JDBCExampleGenerator (#36926)
---
 .../shardingsphere/example/generator/core/JDBCExampleGenerator.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/examples/shardingsphere-jdbc-example-generator/src/main/java/org/apache/shardingsphere/example/generator/core/JDBCExampleGenerator.java
 
b/examples/shardingsphere-jdbc-example-generator/src/main/java/org/apache/shardingsphere/example/generator/core/JDBCExampleGenerator.java
index 988a64cf989..4893c248daf 100644
--- 
a/examples/shardingsphere-jdbc-example-generator/src/main/java/org/apache/shardingsphere/example/generator/core/JDBCExampleGenerator.java
+++ 
b/examples/shardingsphere-jdbc-example-generator/src/main/java/org/apache/shardingsphere/example/generator/core/JDBCExampleGenerator.java
@@ -61,7 +61,7 @@ public final class JDBCExampleGenerator {
     
     private Configuration createTemplateConfiguration() throws IOException {
         Configuration result = new Configuration(Configuration.VERSION_2_3_31);
-        result.setDirectoryForTemplateLoading(new 
File(Objects.requireNonNull(this.getClass().getClassLoader().getResource("template")).getFile()));
+        result.setDirectoryForTemplateLoading(new 
File(Objects.requireNonNull(getClass().getClassLoader().getResource("template")).getFile()));
         result.setDefaultEncoding("UTF-8");
         return result;
     }
@@ -134,7 +134,7 @@ public final class JDBCExampleGenerator {
      */
     private String buildOutputPath(final YamlExampleConfiguration 
exampleConfig) {
         if (Strings.isNullOrEmpty(exampleConfig.getOutput())) {
-            File file = new 
File(Objects.requireNonNull(this.getClass().getClassLoader().getResource("")).getPath());
+            File file = new 
File(Objects.requireNonNull(getClass().getClassLoader().getResource("")).getPath());
             return file.getParent() + "/generated-sources/" + PROJECT_PATH;
         }
         return exampleConfig.getOutput() + PROJECT_PATH;

Reply via email to