[incubator-servicecomb-website] branch asf-site updated: publish the servicecomb site contents
This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git The following commit(s) were added to refs/heads/asf-site by this push: new 480e60e publish the servicecomb site contents 480e60e is described below commit 480e60e3d42a382adc3dbf7bbb275bf8ac15bd65 Author: Willem JiangAuthorDate: Fri Dec 22 16:07:26 2017 +0800 publish the servicecomb site contents --- content/assets/images/gitbox/apache-auth.png | Bin 0 -> 21794 bytes content/assets/images/gitbox/apache-post-auth.png | Bin 0 -> 45778 bytes content/assets/images/gitbox/apache-pre-auth.png | Bin 0 -> 34160 bytes content/assets/images/gitbox/github-2fa.png| Bin 0 -> 26957 bytes content/assets/images/gitbox/github-auth.png | Bin 0 -> 24938 bytes .../assets/images/gitbox/link-apache-github-id.png | Bin 0 -> 14242 bytes content/cn/developers/index.html | 11 ++ .../{ => setup-committer-rights}/index.html| 139 + .../setup-develop-environment/index.html | 11 ++ content/cn/developers/submit-codes/index.html | 11 ++ content/developers/index.html | 11 ++ .../{ => setup-committer-rights}/index.html| 139 + .../setup-develop-environment/index.html | 11 ++ content/developers/submit-codes/index.html | 11 ++ content/feed.xml | 2 +- content/sitemap.xml| 106 16 files changed, 296 insertions(+), 156 deletions(-) diff --git a/content/assets/images/gitbox/apache-auth.png b/content/assets/images/gitbox/apache-auth.png new file mode 100644 index 000..5c7454b Binary files /dev/null and b/content/assets/images/gitbox/apache-auth.png differ diff --git a/content/assets/images/gitbox/apache-post-auth.png b/content/assets/images/gitbox/apache-post-auth.png new file mode 100644 index 000..ef3a4cf Binary files /dev/null and b/content/assets/images/gitbox/apache-post-auth.png differ diff --git a/content/assets/images/gitbox/apache-pre-auth.png b/content/assets/images/gitbox/apache-pre-auth.png new file mode 100644 index 000..031488e Binary files /dev/null and b/content/assets/images/gitbox/apache-pre-auth.png differ diff --git a/content/assets/images/gitbox/github-2fa.png b/content/assets/images/gitbox/github-2fa.png new file mode 100644 index 000..fd87b65 Binary files /dev/null and b/content/assets/images/gitbox/github-2fa.png differ diff --git a/content/assets/images/gitbox/github-auth.png b/content/assets/images/gitbox/github-auth.png new file mode 100644 index 000..6d9aaa1 Binary files /dev/null and b/content/assets/images/gitbox/github-auth.png differ diff --git a/content/assets/images/gitbox/link-apache-github-id.png b/content/assets/images/gitbox/link-apache-github-id.png new file mode 100644 index 000..a047d47 Binary files /dev/null and b/content/assets/images/gitbox/link-apache-github-id.png differ diff --git a/content/cn/developers/index.html b/content/cn/developers/index.html index 9e95ead..01c5819 100644 --- a/content/cn/developers/index.html +++ b/content/cn/developers/index.html @@ -280,6 +280,17 @@ + + + + + + 设置代码仓库写权限 + + + + + diff --git a/content/cn/developers/index.html b/content/cn/developers/setup-committer-rights/index.html similarity index 64% copy from content/cn/developers/index.html copy to content/cn/developers/setup-committer-rights/index.html index 9e95ead..d41416e 100644 --- a/content/cn/developers/index.html +++ b/content/cn/developers/setup-committer-rights/index.html @@ -19,12 +19,12 @@ -开发者指南 - Apache incubator ServiceComb +Set Up Write Access for Committer - Apache incubator ServiceComb - + @@ -33,21 +33,21 @@ - + - http://github.com/pages/ServiceComb/servicesomb.github.io/cn/developers/;> - http://github.com/pages/ServiceComb/servicesomb.github.io/cn/developers/;> + http://github.com/pages/ServiceComb/servicesomb.github.io/cn/developers/setup-committer-rights/;> + http://github.com/pages/ServiceComb/servicesomb.github.io/cn/developers/setup-committer-rights/;> - + - - + + @@ -212,7 +212,7 @@ -English +English @@ -280,6 +280,17 @@ + + + + + + 设置代码仓库写权限 + + + + + @@ -290,16 +301,16 @@ http://schema.org/CreativeWork;> - - + + - + -开发者指南 +Set Up Write Access for Committer @@ -307,48 +318,70 @@
[incubator-servicecomb-service-center] branch master updated: SCB-117 Update Readme with travis links (#219)
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-service-center.git The following commit(s) were added to refs/heads/master by this push: new 2a8a419 SCB-117 Update Readme with travis links (#219) 2a8a419 is described below commit 2a8a419c6538a46355df5c599cf163450479677d Author: Mohammad Asif SiddiquiAuthorDate: Fri Dec 22 02:54:42 2017 -0600 SCB-117 Update Readme with travis links (#219) SCB-117 Update Readme with travis links --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 16ac2d8..ac12e59 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # service-center -[![Build Status](https://travis-ci.org/ServiceComb/service-center.svg?branch=master)](https://travis-ci.org/ServiceComb/service-center) [![Coverage Status](https://coveralls.io/repos/github/ServiceComb/service-center/badge.svg?branch=master)](https://coveralls.io/github/ServiceComb/service-center?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/ServiceComb/service-center)](https://goreportcard.com/report/github.com/ServiceComb/service-center) [![GoDoc](http [...] +[![Build Status](https://www.travis-ci.org/apache/incubator-servicecomb-service-center.svg?branch=master)](https://www.travis-ci.org/apache/incubator-servicecomb-service-center) [![Coverage Status](https://coveralls.io/repos/github/ServiceComb/service-center/badge.svg?branch=master)](https://coveralls.io/github/ServiceComb/service-center?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-servicecomb-service-center)](https://goreportcard.com/rep [...] A standalone service center allows services to register their instance information and to discover providers of a given service. ## Features -- To stop receiving notification emails like this one, please contact ['"commits@servicecomb.apache.org" '].
[incubator-servicecomb-service-center] 01/01: Update Go-Doc Reference in Readme
This is an automated email from the ASF dual-hosted git repository. asifdxtreme pushed a commit to branch asifdxtreme-patch-1 in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-service-center.git commit 9940384d482a301e30ffe787b4ec1c8d8d706915 Author: Mohammad Asif SiddiquiAuthorDate: Sat Dec 23 14:47:03 2017 +0800 Update Go-Doc Reference in Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac12e59..706780f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # service-center -[![Build Status](https://www.travis-ci.org/apache/incubator-servicecomb-service-center.svg?branch=master)](https://www.travis-ci.org/apache/incubator-servicecomb-service-center) [![Coverage Status](https://coveralls.io/repos/github/ServiceComb/service-center/badge.svg?branch=master)](https://coveralls.io/github/ServiceComb/service-center?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-servicecomb-service-center)](https://goreportcard.com/rep [...] +[![Build Status](https://www.travis-ci.org/apache/incubator-servicecomb-service-center.svg?branch=master)](https://www.travis-ci.org/apache/incubator-servicecomb-service-center) [![Coverage Status](https://coveralls.io/repos/github/ServiceComb/service-center/badge.svg?branch=master)](https://coveralls.io/github/ServiceComb/service-center?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-servicecomb-service-center)](https://goreportcard.com/rep [...] A standalone service center allows services to register their instance information and to discover providers of a given service. ## Features -- To stop receiving notification emails like this one, please contact "commits@servicecomb.apache.org" .
[incubator-servicecomb-service-center] branch asifdxtreme-patch-1 updated (9940384 -> e9f1155)
This is an automated email from the ASF dual-hosted git repository. asifdxtreme pushed a change to branch asifdxtreme-patch-1 in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-service-center.git. from 9940384 Update Go-Doc Reference in Readme add e9f1155 Update Coveralls status link in Readme No new revisions were added by this update. Summary of changes: README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact ['"commits@servicecomb.apache.org"'].
[incubator-servicecomb-service-center] branch master updated: SCB-117 Update Go-Doc Reference in Readme (#221)
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-service-center.git The following commit(s) were added to refs/heads/master by this push: new 7c32088 SCB-117 Update Go-Doc Reference in Readme (#221) 7c32088 is described below commit 7c320886b02fdbbffe0f1ca41a18d6b04ab7259c Author: Mohammad Asif SiddiquiAuthorDate: Sat Dec 23 01:24:54 2017 -0600 SCB-117 Update Go-Doc Reference in Readme (#221) * Update Go-Doc Reference in Readme * Update Coveralls status link in Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac12e59..ffc32a2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # service-center -[![Build Status](https://www.travis-ci.org/apache/incubator-servicecomb-service-center.svg?branch=master)](https://www.travis-ci.org/apache/incubator-servicecomb-service-center) [![Coverage Status](https://coveralls.io/repos/github/ServiceComb/service-center/badge.svg?branch=master)](https://coveralls.io/github/ServiceComb/service-center?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-servicecomb-service-center)](https://goreportcard.com/rep [...] +[![Build Status](https://www.travis-ci.org/apache/incubator-servicecomb-service-center.svg?branch=master)](https://www.travis-ci.org/apache/incubator-servicecomb-service-center) [![Coverage Status](https://coveralls.io/repos/github/apache/incubator-servicecomb-service-center/badge.svg?branch=master)](https://coveralls.io/github/apache/incubator-servicecomb-service-center?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-servicecomb-service-cen [...] A standalone service center allows services to register their instance information and to discover providers of a given service. ## Features -- To stop receiving notification emails like this one, please contact ['"commits@servicecomb.apache.org" '].
[incubator-servicecomb-java-chassis] branch master updated (e4611cd -> 7fb4030)
This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git. from e4611cd [JAV-589] remove redundant else expression new e4b9715 JAV-544 & SC-10 Implement Runtime System Resources Usage Metrics new f3c6461 JAV-544 & SCB-10 update asf license new 7fb4030 JAV-555 & SCB-10 for trigger ci The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../metrics/core/extra/DefaultSystemResource.java | 97 ++ .../metrics/core/extra/SystemResource.java | 24 -- .../metrics/core/metric/InstanceMetric.java| 13 ++- .../metrics/core/metric/RegistryMetric.java| 13 ++- .../metrics/core/metric/SystemMetric.java | 95 + .../metrics/core/publish/DefaultDataSource.java| 15 ++-- .../metrics/core/TestEventAndRunner.java | 49 +-- 7 files changed, 283 insertions(+), 23 deletions(-) create mode 100644 metrics/metrics-core/src/main/java/io/servicecomb/metrics/core/extra/DefaultSystemResource.java copy demo/demo-spring-boot-transport/demo-spring-boot-pojo-client/src/main/java/io/servicecomb/demo/server/Test.java => metrics/metrics-core/src/main/java/io/servicecomb/metrics/core/extra/SystemResource.java (71%) create mode 100644 metrics/metrics-core/src/main/java/io/servicecomb/metrics/core/metric/SystemMetric.java -- To stop receiving notification emails like this one, please contact ['"commits@servicecomb.apache.org"'].
[incubator-servicecomb-java-chassis] branch master updated: JAV-559 Removed the log4j dependency (#459)
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 622a48e JAV-559 Removed the log4j dependency (#459) 622a48e is described below commit 622a48e4758f48d3f8526926f9459a933d45670c Author: zhengyangyongAuthorDate: Fri Dec 22 20:17:01 2017 +0800 JAV-559 Removed the log4j dependency (#459) * Signed-off-by: zhengyangyong (cherry picked from commit 26667d42d4077a3e2270e80731942ebd54be0b1d) Apply 0.5.x metrics patch to 0.6.0-SNAPSHOT --- .../output/servo/RollingMetricsFileOutput.java | 34 +-- .../servo/SimpleMetricsContentFormatter.java | 2 - samples/bmi/calculator/pom.xml | 10 +- .../bmi/calculator/src/main/resources/log4j2.xml | 227 + .../src/main/resources/microservice.yaml | 7 +- 5 files changed, 243 insertions(+), 37 deletions(-) diff --git a/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/RollingMetricsFileOutput.java b/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/RollingMetricsFileOutput.java index cb2fc18..2e63439 100644 --- a/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/RollingMetricsFileOutput.java +++ b/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/RollingMetricsFileOutput.java @@ -17,48 +17,28 @@ package io.servicecomb.foundation.metrics.output.servo; -import java.nio.file.Paths; -import java.util.HashMap; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.PatternLayout; -import org.apache.log4j.spi.LoggingEvent; -import org.springframework.beans.factory.annotation.Autowired; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; -import io.servicecomb.foundation.common.utils.RollingFileAppenderExt; import io.servicecomb.foundation.metrics.output.MetricsFileOutput; @Component public class RollingMetricsFileOutput extends MetricsFileOutput { - private final Map metricsAppenders = new HashMap<>(); - @Autowired + private final Map allLoggers = new ConcurrentHashMap<>(); + public RollingMetricsFileOutput() { } @Override public void output(Map metrics) { for (String metricName : metrics.keySet()) { - final String fileName = String.join(".", getNamePrefix(), metricName, "dat"); - RollingFileAppenderExt appender = metricsAppenders.computeIfAbsent(metricName, (key) -> { -String finalPath = Paths.get(getRollingRootFilePath(), fileName).toString(); -RollingFileAppenderExt fileAppender = new RollingFileAppenderExt(); -fileAppender.setLogPermission("rw---"); -fileAppender.setFile(finalPath); -fileAppender.setLayout(new PatternLayout("%m%n")); -fileAppender.setAppend(true); -fileAppender.setMaxFileSize(getMaxRollingFileSize()); -fileAppender.setMaxBackupIndex(getMaxRollingFileCount()); -fileAppender.activateOptions(); -return fileAppender; - }); - - LoggingEvent event = new LoggingEvent(fileName, Logger.getLogger(fileName), Level.ALL, - metrics.get(metricName), null); - appender.append(event); + Logger logger = allLoggers.computeIfAbsent(metricName, l -> LoggerFactory.getLogger(metricName)); + logger.error(metrics.get(metricName)); } } } diff --git a/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/SimpleMetricsContentFormatter.java b/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/SimpleMetricsContentFormatter.java index 11d816e..8c4e60a 100644 --- a/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/SimpleMetricsContentFormatter.java +++ b/foundations/foundation-metrics/src/main/java/io/servicecomb/foundation/metrics/output/servo/SimpleMetricsContentFormatter.java @@ -24,7 +24,6 @@ import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.util.StringUtils; @@ -45,7 +44,6 @@ public class SimpleMetricsContentFormatter implements MetricsContentFormatter { private String hostName; - @Autowired public SimpleMetricsContentFormatter() { hostName = NetUtils.getHostName(); if (StringUtils.isEmpty(hostName)) { diff --git
[incubator-servicecomb-java-chassis] 06/09: [JAV-589] modify README.
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 commit 56b70b1bd87cd8087b2914fb6afa600663069001 Author: yaohaishiAuthorDate: Tue Dec 19 12:57:12 2017 +0800 [JAV-589] modify README. --- .../main/java/io/servicecomb/transport/rest/vertx/accesslog/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/README.md b/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/README.md index 2b24062..d62c61b 100644 --- a/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/README.md +++ b/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/README.md @@ -7,7 +7,7 @@ To enable access log printing, you can config access log in microservice.yaml li servicecomb: accesslog: enabled: true -pattern: "%h - - %t %r !! %q cs-uri %% %s %B" +pattern: "%h - - %t %r %s %B" ``` ***Access Log Configurations in microservice.yaml*** -- To stop receiving notification emails like this one, please contact "commits@servicecomb.apache.org" .
[incubator-servicecomb-java-chassis] branch master updated (622a48e -> e4611cd)
This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git. from 622a48e JAV-559 Removed the log4j dependency (#459) new 65d8bca [JAV-589] provide access log handler component new 0e4d4b1 [JAV-589] fix unit test failure caused by default timezone and locale setting variety. new 0eebf99 [JAV-589] fix unit test failure, add README.md new 8222973 [JAV-589] add license header, organize import. new 2b0c964 [JAV-589] modify some configurations and comments. new 56b70b1 [JAV-589] modify README. new 83897f7 [JAV-589] update License header. new 73805c6 [JAV-589] modify code according to code review, add license header into unit test file. new e4611cd [JAV-589] remove redundant else expression The 9 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../transport/rest/vertx/RestServerVerticle.java | 15 +++ .../vertx/accesslog/AccessLogConfiguration.java| 50 .../rest/vertx/accesslog/AccessLogParam.java | 65 ++ .../transport/rest/vertx/accesslog/README.md | 61 + .../vertx/accesslog/element/AccessLogElement.java | 33 + .../element/impl/BytesWrittenV1Element.java| 42 +++ .../element/impl/BytesWrittenV2Element.java| 45 +++ .../accesslog/element/impl/CookieElement.java | 60 + .../element/impl/DatetimeConfigurableElement.java | 114 + .../element/impl/DurationMillisecondElement.java | 28 + .../element/impl/DurationSecondElement.java| 28 + .../element/impl/FirstLineOfRequestElement.java| 43 +++ .../accesslog/element/impl/LocalHostElement.java | 49 .../accesslog/element/impl/LocalPortElement.java | 43 +++ .../accesslog/element/impl/MethodElement.java | 45 +++ .../accesslog/element/impl/PlainTextElement.java | 37 ++ .../accesslog/element/impl/QueryOnlyElement.java | 43 +++ .../accesslog/element/impl/RemoteHostElement.java | 49 .../element/impl/RequestHeaderElement.java | 53 .../element/impl/ResponseHeaderElement.java| 58 + .../accesslog/element/impl/StatusElement.java | 37 ++ .../element/impl/UriPathIncludeQueryElement.java | 44 +++ .../accesslog/element/impl/UriPathOnlyElement.java | 43 +++ .../element/impl/VersionOrProtocolElement.java | 53 .../vertx/accesslog/impl/AccessLogHandler.java | 71 +++ .../parser/AccessLogElementExtraction.java | 77 .../accesslog/parser/AccessLogPatternParser.java | 24 .../parser/impl/DefaultAccessLogPatternParser.java | 127 +++ .../parser/matcher/AccessLogElementMatcher.java| 35 ++ .../parser/matcher/impl/BytesWrittenV1Matcher.java | 36 ++ .../parser/matcher/impl/BytesWrittenV2Matcher.java | 36 ++ .../impl/ConfigurableAccessLogElementMatcher.java | 73 +++ .../parser/matcher/impl/CookieElementMatcher.java | 42 +++ .../matcher/impl/DatetimeConfigurableMatcher.java | 51 .../parser/matcher/impl/DatetimeMatcher.java | 36 ++ .../matcher/impl/DurationMillisecondMatcher.java | 36 ++ .../parser/matcher/impl/DurationSecondMatcher.java | 36 ++ .../matcher/impl/FirstLineOfRequestMatcher.java| 36 ++ .../impl/ImmutableAccessLogElementMatcher.java | 53 .../parser/matcher/impl/LocalHostMatcher.java | 36 ++ .../parser/matcher/impl/LocalPortMatcher.java | 36 ++ .../parser/matcher/impl/MethodMatcher.java | 37 ++ .../impl/MultiPatternImmutableElementMatcher.java | 39 ++ .../parser/matcher/impl/QueryOnlyMatcher.java | 36 ++ .../parser/matcher/impl/RemoteHostMatcher.java | 36 ++ .../matcher/impl/RequestHeaderElementMatcher.java | 42 +++ .../matcher/impl/ResponseHeaderElementMatcher.java | 42 +++ .../impl/SinglePatternImmutableElementMatcher.java | 37 ++ .../parser/matcher/impl/StatusMatcher.java | 36 ++ .../matcher/impl/UriPathIncludeQueryMatcher.java | 72 +++ .../parser/matcher/impl/UriPathOnlyMatcher.java| 36 ++ .../matcher/impl/VersionOrProtocolMatcher.java | 36 ++ .../main/resources/config/base/log4j.properties| 13 ++ .../accesslog/AccessLogConfigurationTest.java | 38 ++ .../element/impl/BytesWrittenV1ElementTest.java| 79 .../element/impl/BytesWrittenV2ElementTest.java| 78 .../accesslog/element/impl/CookieElementTest.java | 101 +++ .../impl/DatetimeConfigurableElementTest.java
[incubator-servicecomb-java-chassis] 09/09: [JAV-589] remove redundant else expression
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 commit e4611cdd316265cac213ad0ae9730f7d5085f675 Author: yaohaishiAuthorDate: Fri Dec 22 16:28:21 2017 +0800 [JAV-589] remove redundant else expression --- .../rest/vertx/accesslog/element/impl/BytesWrittenV2Element.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/element/impl/BytesWrittenV2Element.java b/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/element/impl/BytesWrittenV2Element.java index f220bc9..2498813 100644 --- a/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/element/impl/BytesWrittenV2Element.java +++ b/transports/transport-rest/transport-rest-vertx/src/main/java/io/servicecomb/transport/rest/vertx/accesslog/element/impl/BytesWrittenV2Element.java @@ -38,8 +38,8 @@ public class BytesWrittenV2Element implements AccessLogElement { long bytesWritten = response.bytesWritten(); if (0 == bytesWritten) { return ZERO_BYTES; -} else { - return String.valueOf(bytesWritten); } + +return String.valueOf(bytesWritten); } } -- To stop receiving notification emails like this one, please contact "commits@servicecomb.apache.org" .