You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by di...@apache.org on 2019/07/30 09:38:46 UTC

[rocketmq-ons-cpp] 19/35: Add lisence header

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

dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-ons-cpp.git

commit 96edebaad904afa0422d8808789cbe13df7004af
Author: ShannonDing <li...@163.com>
AuthorDate: Wed Jul 24 20:52:05 2019 +0800

    Add lisence header
---
 .../org/apache/rocketmq/graalvm/CInterface.java    | 17 +++++++++++++++
 .../org/apache/rocketmq/graalvm/ErrorCode.java     | 17 +++++++++++++++
 .../rocketmq/graalvm/GraalMessageListener.java     | 17 +++++++++++++++
 .../graalvm/GraalMessageOrderListener.java         | 17 +++++++++++++++
 .../apache/rocketmq/graalvm/GraalSendCallback.java | 17 +++++++++++++++
 .../rocketmq/graalvm/GraalTransactionChecker.java  | 17 +++++++++++++++
 .../rocketmq/graalvm/GraalTransactionExecutor.java | 17 +++++++++++++++
 .../graalvm/substitutions/NettySubstitutions.java  | 17 +++++++++++++++
 .../apache/rocketmq/graalvm/CInterfaceTest.java    | 25 ++++++++++++++++++----
 9 files changed, 157 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/rocketmq/graalvm/CInterface.java b/src/main/java/org/apache/rocketmq/graalvm/CInterface.java
index abd433f..07b64ca 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/CInterface.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/CInterface.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 import com.alibaba.fastjson.JSON;
diff --git a/src/main/java/org/apache/rocketmq/graalvm/ErrorCode.java b/src/main/java/org/apache/rocketmq/graalvm/ErrorCode.java
index c6a4d50..4ceb515 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/ErrorCode.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/ErrorCode.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 public enum ErrorCode {
diff --git a/src/main/java/org/apache/rocketmq/graalvm/GraalMessageListener.java b/src/main/java/org/apache/rocketmq/graalvm/GraalMessageListener.java
index ed607f9..8bcf2af 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/GraalMessageListener.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/GraalMessageListener.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 import com.alibaba.fastjson.JSON;
diff --git a/src/main/java/org/apache/rocketmq/graalvm/GraalMessageOrderListener.java b/src/main/java/org/apache/rocketmq/graalvm/GraalMessageOrderListener.java
index f789b72..a5d7a88 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/GraalMessageOrderListener.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/GraalMessageOrderListener.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 import com.alibaba.fastjson.JSON;
diff --git a/src/main/java/org/apache/rocketmq/graalvm/GraalSendCallback.java b/src/main/java/org/apache/rocketmq/graalvm/GraalSendCallback.java
index a395b02..3d18ad7 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/GraalSendCallback.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/GraalSendCallback.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 import org.apache.rocketmq.ons.api.OnExceptionContext;
diff --git a/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionChecker.java b/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionChecker.java
index 2b6661a..3b27508 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionChecker.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionChecker.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 import com.alibaba.fastjson.JSON;
diff --git a/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionExecutor.java b/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionExecutor.java
index b1cdfd9..9c55765 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionExecutor.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/GraalTransactionExecutor.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 import com.alibaba.fastjson.JSON;
diff --git a/src/main/java/org/apache/rocketmq/graalvm/substitutions/NettySubstitutions.java b/src/main/java/org/apache/rocketmq/graalvm/substitutions/NettySubstitutions.java
index 0440452..6a4fb82 100644
--- a/src/main/java/org/apache/rocketmq/graalvm/substitutions/NettySubstitutions.java
+++ b/src/main/java/org/apache/rocketmq/graalvm/substitutions/NettySubstitutions.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm.substitutions;
 
 import com.oracle.svm.core.annotate.Alias;
diff --git a/src/test/java/org/apache/rocketmq/graalvm/CInterfaceTest.java b/src/test/java/org/apache/rocketmq/graalvm/CInterfaceTest.java
index 3400af4..42855e0 100644
--- a/src/test/java/org/apache/rocketmq/graalvm/CInterfaceTest.java
+++ b/src/test/java/org/apache/rocketmq/graalvm/CInterfaceTest.java
@@ -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.
+ */
+
 package org.apache.rocketmq.graalvm;
 
 import org.graalvm.nativeimage.c.type.CTypeConversion;
@@ -6,13 +23,13 @@ import org.mockito.Mockito;
 
 /**
  * <p>
- *     <strong>Warning:</strong> CTypeConversion can only used with native-image. Hence, we cannot create JUnit test
- *     cases in the Java side.
+ * <strong>Warning:</strong> CTypeConversion can only used with native-image. Hence, we cannot create JUnit test
+ * cases in the Java side.
  * </p>
  */
 public class CInterfaceTest {
 
-//    @Test
+    //    @Test
     public void testCreateProducer() {
         CInterface.CFactoryProperty property = Mockito.mock(CInterface.CFactoryProperty.class);
         Mockito.when(property.getAccessKey()).thenReturn(CTypeConversion.toCString("Ak").get());
@@ -24,7 +41,7 @@ public class CInterfaceTest {
         Assert.assertEquals(1, CInterface.instances.size());
     }
 
-//    @Test
+    //    @Test
     public void testDestroyInstance() {
         CInterface.CFactoryProperty property = Mockito.mock(CInterface.CFactoryProperty.class);
         Mockito.when(property.getAccessKey()).thenReturn(CTypeConversion.toCString("Ak").get());