This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push: new 769dc9d SCB-260 Clarify original copyright of some files 769dc9d is described below commit 769dc9dd52f3c003f763ddaacd5d601a37ed273e Author: Yang Bo <yangb...@huawei.com> AuthorDate: Fri Feb 2 11:44:14 2018 +0800 SCB-260 Clarify original copyright of some files Some files are forked from third parties. Modified those files' headers to clarify the license and copyright information. Also updated NOTICE to show their copyright information and origin. --- NOTICE | 51 ++++++++++++++++++++++ .../java/io/vertx/ext/web/impl/MimeTypesUtils.java | 31 +++++++------ .../vertx/stream/InputStreamToReadStream.java | 1 - .../property/AbstractBaseIntegerProperty.java | 19 ++++---- .../transport/rest/vertx/RestBodyHandler.java | 23 +++------- 5 files changed, 82 insertions(+), 43 deletions(-) diff --git a/NOTICE b/NOTICE index 1fce66d..a31e77a 100644 --- a/NOTICE +++ b/NOTICE @@ -71,3 +71,54 @@ The following components are provided under the BSD (http://asm.objectweb.org/ ASM Core (http://asm.objectweb.org/asm/) org.ow2.asm:asm:jar:5.0.4 +================================================================ +For foundations/foundation-vertx/src/main/java/io/vertx/ext/web/impl/MimeTypesUtils.java +(Forked from https://github.com/vert-x3/vertx-web/blob/927ed057ddc028eb09a168db621de3d72fd85ed4/vertx-web/src/main/java/io/vertx/ext/web/impl/Utils.java) + +Copyright 2014 Red Hat, Inc. + + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + and Apache License v2.0 which accompanies this distribution. + + The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html + + The Apache License v2.0 is available at + http://www.opensource.org/licenses/apache2.0.php + + You may elect to redistribute this code under either of these licenses. + +================================================================ +For swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/extend/property/AbstractBaseIntegerProperty.java +(Forked from https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-models/src/main/java/io/swagger/models/properties/IntegerProperty.java) + +Copyright 2016 SmartBear Software + +Licensed 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 [apache.org/licenses/LICENSE-2.0](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. + +================================================================ +For transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java +(Froked from https://github.com/vert-x3/vertx-web/blob/master/vertx-web/src/main/java/io/vertx/ext/web/handler/impl/BodyHandlerImpl.java) + +Copyright 2014 Red Hat, Inc. + + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + and Apache License v2.0 which accompanies this distribution. + + The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html + + The Apache License v2.0 is available at + http://www.opensource.org/licenses/apache2.0.php + + You may elect to redistribute this code under either of these licenses. diff --git a/foundations/foundation-vertx/src/main/java/io/vertx/ext/web/impl/MimeTypesUtils.java b/foundations/foundation-vertx/src/main/java/io/vertx/ext/web/impl/MimeTypesUtils.java index cb74fb1..c184726 100644 --- a/foundations/foundation-vertx/src/main/java/io/vertx/ext/web/impl/MimeTypesUtils.java +++ b/foundations/foundation-vertx/src/main/java/io/vertx/ext/web/impl/MimeTypesUtils.java @@ -1,18 +1,23 @@ /* - * 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 + * Copyright 2014 Red Hat, Inc. * - * http://www.apache.org/licenses/LICENSE-2.0 + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Apache License v2.0 which accompanies this distribution. * - * 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. + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * The Apache License v2.0 is available at + * http://www.opensource.org/licenses/apache2.0.php + * + * You may elect to redistribute this code under either of these licenses. + * + */ + +/* + * Forked from https://github.com/vert-x3/vertx-web/blob/927ed057ddc028eb09a168db621de3d72fd85ed4/vertx-web/src/main/java/io/vertx/ext/web/impl/Utils.java + * Because we uses getSortedAcceptableMimeTypes method which is removed by vertx. */ package io.vertx.ext.web.impl; @@ -24,8 +29,6 @@ import java.util.Comparator; import java.util.List; import java.util.regex.Pattern; -// copy from old io.vertx.ext.web.impl.Utils -// because new vertx deleted getSortedAcceptableMimeTypes, and did not log the reason public class MimeTypesUtils { private static final Pattern COMMA_SPLITTER = Pattern.compile(" *, *"); diff --git a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/stream/InputStreamToReadStream.java b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/stream/InputStreamToReadStream.java index e83a60d..2b94af4 100644 --- a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/stream/InputStreamToReadStream.java +++ b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/stream/InputStreamToReadStream.java @@ -31,7 +31,6 @@ import io.vertx.core.Vertx; import io.vertx.core.buffer.Buffer; import io.vertx.core.streams.ReadStream; -// copy from AsyncFileImpl and modify public class InputStreamToReadStream implements ReadStream<Buffer> { private static final Logger LOGGER = LoggerFactory.getLogger(InputStreamToReadStream.class); diff --git a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/extend/property/AbstractBaseIntegerProperty.java b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/extend/property/AbstractBaseIntegerProperty.java index f0be846..8fe2690 100644 --- a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/extend/property/AbstractBaseIntegerProperty.java +++ b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/extend/property/AbstractBaseIntegerProperty.java @@ -1,12 +1,9 @@ /* - * 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 + * Copyright 2016 SmartBear Software * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensed 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 [apache.org/licenses/LICENSE-2.0](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, @@ -15,6 +12,10 @@ * limitations under the License. */ +/* + * Forked from https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-models/src/main/java/io/swagger/models/properties/IntegerProperty.java + */ + package org.apache.servicecomb.swagger.extend.property; import java.util.ArrayList; @@ -23,10 +24,6 @@ import java.util.List; import io.swagger.models.Xml; import io.swagger.models.properties.BaseIntegerProperty; -/** - * copy from io.swagger.models.properties.IntegerProperty - * to avoid so many repeated code. - */ public abstract class AbstractBaseIntegerProperty<T> extends BaseIntegerProperty { protected T defaultValue; diff --git a/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java b/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java index 9f8ecca..6c9724e 100644 --- a/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java +++ b/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java @@ -1,21 +1,4 @@ /* - * 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. - */ - -/* * Copyright 2014 Red Hat, Inc. * * All rights reserved. This program and the accompanying materials @@ -29,6 +12,12 @@ * http://www.opensource.org/licenses/apache2.0.php * * You may elect to redistribute this code under either of these licenses. + * + */ + +/* + * Froked from https://github.com/vert-x3/vertx-web/blob/master/vertx-web/src/main/java/io/vertx/ext/web/handler/impl/BodyHandlerImpl.java + * */ package org.apache.servicecomb.transport.rest.vertx; -- To stop receiving notification emails like this one, please contact ningji...@apache.org.