From 0dc86124159d3d6bca9b5aa7b9dc0cf5de1e779e Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Fri, 4 Jun 2021 15:05:56 +0800 Subject: [PATCH] fix license for 3.0 (#7979) --- NOTICE | 8 -------- .../router/file/availablerule.javascript | 17 ++++++++++++++++- .../cluster/router/file/methodrule.javascript | 17 ++++++++++++++++- .../router/file/notAvailablerule.javascript | 17 ++++++++++++++++- pom.xml | 2 -- 5 files changed, 48 insertions(+), 13 deletions(-) diff --git a/NOTICE b/NOTICE index e414ebfbe51..9e952c6dffd 100644 --- a/NOTICE +++ b/NOTICE @@ -12,11 +12,3 @@ Please visit the Netty web site for more information: * http://netty.io/ Copyright 2014 The Netty Project - -The product contains code form the Google Protocol Buffers project: - -Please visit the following site for more information: -https://developers.google.com/protocol-buffers/ - -Copyright 2008 Google Inc. All rights reserved. - diff --git a/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/availablerule.javascript b/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/availablerule.javascript index c76de32ee40..40b72b46fcb 100644 --- a/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/availablerule.javascript +++ b/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/availablerule.javascript @@ -1,4 +1,19 @@ -function route(invokers,invocation,context){ +// 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. + +function route(invokers,invocation,context){ var result = new java.util.ArrayList(invokers.size()); for (i=0;i1 && invocation.getMethodName() .equals("method1")) { result.add(invokers.get(0)) ; diff --git a/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/notAvailablerule.javascript b/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/notAvailablerule.javascript index 1fcdcaeb0d6..e323d541306 100644 --- a/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/notAvailablerule.javascript +++ b/dubbo-cluster/src/test/resources/org/apache/dubbo/rpc/cluster/router/file/notAvailablerule.javascript @@ -1,4 +1,19 @@ -function route(invokers,invocation,context){ +// 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. + +function route(invokers,invocation,context){ var result = new java.util.ArrayList(invokers.size()); for (i=0;i**/*.load **/*.flex **/*.fc - **/*.javascript **/*.properties - **/*.thrift **/*.sh **/*.bat **/*.md