From 774a3c594375cdc5b1d3a0dbc311aed3e84a7657 Mon Sep 17 00:00:00 2001 From: AlexStocks <alexstocks@foxmail.com> Date: Sat, 7 Sep 2019 01:24:41 +0800 Subject: [PATCH] Add: asf 2.0; Rem: delete author email --- cluster/loadbalance/least_active.go | 1 - cluster/loadbalance/round_robin_test.go | 17 +++++++++++++++++ common/extension/router_factory.go | 17 +++++++++++++++++ config_center/configuration_parser.go | 18 ++++++++++++++++++ config_center/configuration_parser_test.go | 18 ++++++++++++++++++ filter/impl/active_filter.go | 1 - registry/zookeeper/listener_test.go | 22 +++++++++++++++++++++- 7 files changed, 91 insertions(+), 3 deletions(-) diff --git a/cluster/loadbalance/least_active.go b/cluster/loadbalance/least_active.go index 39c5620f0..aa69f3cc2 100644 --- a/cluster/loadbalance/least_active.go +++ b/cluster/loadbalance/least_active.go @@ -15,7 +15,6 @@ * limitations under the License. */ -// @author yiji@apache.org package loadbalance import ( diff --git a/cluster/loadbalance/round_robin_test.go b/cluster/loadbalance/round_robin_test.go index e261884b5..0b8e89c73 100644 --- a/cluster/loadbalance/round_robin_test.go +++ b/cluster/loadbalance/round_robin_test.go @@ -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 loadbalance import ( diff --git a/common/extension/router_factory.go b/common/extension/router_factory.go index f364292b0..6f27aafae 100644 --- a/common/extension/router_factory.go +++ b/common/extension/router_factory.go @@ -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 extension import ( diff --git a/config_center/configuration_parser.go b/config_center/configuration_parser.go index ab02789c9..95b122e1e 100644 --- a/config_center/configuration_parser.go +++ b/config_center/configuration_parser.go @@ -1,8 +1,26 @@ +/* + * 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 config_center import ( "github.com/magiconair/properties" ) + import ( "github.com/apache/dubbo-go/common/logger" ) diff --git a/config_center/configuration_parser_test.go b/config_center/configuration_parser_test.go index 3c84fd70b..4a67d4230 100644 --- a/config_center/configuration_parser_test.go +++ b/config_center/configuration_parser_test.go @@ -1,8 +1,26 @@ +/* + * 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 config_center import ( "testing" ) + import ( "github.com/stretchr/testify/assert" ) diff --git a/filter/impl/active_filter.go b/filter/impl/active_filter.go index d7dad74cf..36a4e1a76 100644 --- a/filter/impl/active_filter.go +++ b/filter/impl/active_filter.go @@ -15,7 +15,6 @@ * limitations under the License. */ -// @author yiji@apache.org package impl import ( diff --git a/registry/zookeeper/listener_test.go b/registry/zookeeper/listener_test.go index 7ebc32b8a..9d9cebefc 100644 --- a/registry/zookeeper/listener_test.go +++ b/registry/zookeeper/listener_test.go @@ -1,11 +1,31 @@ +/* + * 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 zookeeper import ( "context" + "testing" +) + +import ( "github.com/apache/dubbo-go/common" "github.com/apache/dubbo-go/remoting" "github.com/stretchr/testify/assert" - "testing" ) func Test_DataChange(t *testing.T) { -- GitLab