You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2022/08/01 10:00:11 UTC

[rocketmq-schema-registry] 43/44: checkstyle

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

duhengforever pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-schema-registry.git

commit 8ee2cda4516fd5f522b0bbdfa4f0cb5d1f875167
Author: huitong <yi...@163.com>
AuthorDate: Mon Aug 1 17:40:09 2022 +0800

    checkstyle
---
 example/pom.xml                                     | 21 ++++++++++++++++-----
 example/src/main/avro/Charge.avsc                   | 17 +++++++++++++++++
 .../schema/registry/example/serde/Charge.java       |  1 -
 3 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/example/pom.xml b/example/pom.xml
index 440d952..05a2045 100644
--- a/example/pom.xml
+++ b/example/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -21,11 +37,6 @@
 
     <build>
         <plugins>
-            <!-- avsc文件 生成实体类插件 -->
-            <plugin>
-                <groupId>org.apache.avro</groupId>
-                <artifactId>avro-maven-plugin</artifactId>
-            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
diff --git a/example/src/main/avro/Charge.avsc b/example/src/main/avro/Charge.avsc
index 1b30079..14fecf8 100644
--- a/example/src/main/avro/Charge.avsc
+++ b/example/src/main/avro/Charge.avsc
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 {
     "type":"record",
     "name":"Charge",
diff --git a/example/src/main/java/org/apache/rocketmq/schema/registry/example/serde/Charge.java b/example/src/main/java/org/apache/rocketmq/schema/registry/example/serde/Charge.java
index f940b58..85c0065 100644
--- a/example/src/main/java/org/apache/rocketmq/schema/registry/example/serde/Charge.java
+++ b/example/src/main/java/org/apache/rocketmq/schema/registry/example/serde/Charge.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.rocketmq.schema.registry.example.serde;  
 @SuppressWarnings("all")
 @org.apache.avro.specific.AvroGenerated