From 445a18083173b183b27be3b40cd5ae1f86538185 Mon Sep 17 00:00:00 2001 From: Ian Luo Date: Thu, 21 Dec 2017 10:18:22 +0800 Subject: [PATCH] #1067: I18N effort for dubbo code base - dubbo-rpc (part7) --- dubbo-rpc/dubbo-rpc-http/pom.xml | 27 ++++++++++--------- .../dubbo/rpc/protocol/http/HttpProtocol.java | 22 +++++++-------- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/dubbo-rpc/dubbo-rpc-http/pom.xml b/dubbo-rpc/dubbo-rpc-http/pom.xml index 6ac67d2583..56c15740f6 100644 --- a/dubbo-rpc/dubbo-rpc-http/pom.xml +++ b/dubbo-rpc/dubbo-rpc-http/pom.xml @@ -1,17 +1,18 @@ diff --git a/dubbo-rpc/dubbo-rpc-http/src/main/java/com/alibaba/dubbo/rpc/protocol/http/HttpProtocol.java b/dubbo-rpc/dubbo-rpc-http/src/main/java/com/alibaba/dubbo/rpc/protocol/http/HttpProtocol.java index f06bf67642..feea6e50f0 100644 --- a/dubbo-rpc/dubbo-rpc-http/src/main/java/com/alibaba/dubbo/rpc/protocol/http/HttpProtocol.java +++ b/dubbo-rpc/dubbo-rpc-http/src/main/java/com/alibaba/dubbo/rpc/protocol/http/HttpProtocol.java @@ -1,16 +1,17 @@ /* - * Copyright 1999-2012 Alibaba Group. - * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * + * 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 pehttpssions and + * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.dubbo.rpc.protocol.http; @@ -41,8 +42,6 @@ import java.util.concurrent.ConcurrentHashMap; /** * HttpProtocol - * - * @author william.liangf */ public class HttpProtocol extends AbstractProxyProtocol { @@ -123,7 +122,6 @@ public class HttpProtocol extends AbstractProxyProtocol { } if (e != null) { Class cls = e.getClass(); - // 是根据测试Case发现的问题,对RpcException.setCode进行设置 if (SocketTimeoutException.class.equals(cls)) { return RpcException.TIMEOUT_EXCEPTION; } else if (IOException.class.isAssignableFrom(cls)) {