Skip to content

optimize : constant names should be all uppercase, separated by underscores#5356

Merged
chickenlj merged 6 commits intoapache:masterfrom
ggezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz:optimize_2
Feb 1, 2020
Merged

optimize : constant names should be all uppercase, separated by underscores#5356
chickenlj merged 6 commits intoapache:masterfrom
ggezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz:optimize_2

Conversation

@ggezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Copy link
Copy Markdown

What is the purpose of the change

optimize : constant names should be all uppercase, separated by underscores

fixes #5355

Brief changelog

1.dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/script/ScriptRouter.java
2.dubbo-common/src/main/java/org/apache/dubbo/common/config/configcenter/file/FileSystemDynamicConfiguration.java
3.dubbo-common/src/main/java/org/apache/dubbo/common/json/GenericJSONConverter.java
4.dubbo-common/src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java
5.dubbo-common/src/main/java/org/apache/dubbo/rpc/model/ApplicationModel.java
6.dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
7.dubbo-container/dubbo-container-api/src/main/java/org/apache/dubbo/container/Main.java
8.dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java
9.dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/store/BaseWritableMetadataService.java
10.dubbo-metadata/dubbo-metadata-definition-protobuf/src/main/java/org/apache/dubbo/metadata/definition/protobuf/ProtobufTypeBuilder.java
11.dubbo-monitor/dubbo-monitor-api/src/main/java/org/apache/dubbo/monitor/support/AbstractMonitorFactory.java
12.dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/server/DubboLogo.java
13.dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/server/Server.java
14.dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/server/handler/QosProcessHandler.java
15.dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/server/handler/TelnetProcessHandler.java
16.dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/server/handler/TelnetProcessHandlerTest.java
17.dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/servlet/DispatcherServlet.java
18.dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyClient.java
19.dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/DeprecatedFilter.java
20.dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java
21.dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/filter/TraceFilter.java
22.dubbo-rpc/dubbo-rpc-native-thrift/src/main/java/org/apache/dubbo/rpc/protocol/nativethrift/ThriftProtocol.java
23.dubbo-serialization/dubbo-serialization-fst/src/main/java/org/apache/dubbo/common/serialize/fst/FstFactory.java

Verifying this change

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 28, 2019

Codecov Report

Merging #5356 into master will increase coverage by 0.16%.
The diff coverage is 72.44%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5356      +/-   ##
============================================
+ Coverage     61.26%   61.42%   +0.16%     
- Complexity      423      491      +68     
============================================
  Files           923      926       +3     
  Lines         37572    37845     +273     
  Branches       5442     5461      +19     
============================================
+ Hits          23018    23247     +229     
- Misses        12067    12074       +7     
- Partials       2487     2524      +37
Impacted Files Coverage Δ Complexity Δ
...ava/org/apache/dubbo/config/ApplicationConfig.java 84% <ø> (ø) 0 <0> (ø) ⬇️
...apache/dubbo/common/constants/CommonConstants.java 100% <ø> (ø) 0 <0> (ø) ⬇️
...enter/support/nacos/NacosDynamicConfiguration.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...rpc/cluster/loadbalance/RoundRobinLoadBalance.java 78.57% <100%> (+0.38%) 0 <0> (ø) ⬇️
...e/dubbo/remoting/transport/netty4/NettyClient.java 71.01% <100%> (ø) 0 <0> (ø) ⬇️
.../rpc/cluster/configurator/parser/ConfigParser.java 88.23% <100%> (ø) 0 <0> (ø) ⬇️
...a/org/apache/dubbo/config/ReferenceConfigBase.java 60.39% <100%> (ø) 0 <0> (ø) ⬇️
...e/dubbo/remoting/transport/netty4/NettyServer.java 73.52% <100%> (+0.39%) 0 <0> (ø) ⬇️
...n/java/org/apache/dubbo/config/ProtocolConfig.java 91.26% <33.33%> (-1.42%) 0 <0> (ø)
...n/java/org/apache/dubbo/config/ProviderConfig.java 95.45% <33.33%> (-2.2%) 0 <0> (ø)
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b958dc5...b49584c. Read the comment docs.

@chickenlj
Copy link
Copy Markdown
Contributor

All changes are limited to static property renames, have no side effect on functionality.

@chickenlj chickenlj added this to the 2.7.6 milestone Dec 11, 2019
@ggezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Copy link
Copy Markdown
Author

All changes are limited to static property renames, have no side effect on functionality.

Of course, I think he can make the code more formal.

Copy link
Copy Markdown
Contributor

@kun-song kun-song left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

withthewind and others added 3 commits January 17, 2020 13:37
� Conflicts:
�	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
� Conflicts:
�	dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
@chickenlj chickenlj merged commit ed7be11 into apache:master Feb 1, 2020
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 75.40984% with 15 lines in your changes missing coverage. Please review.

Project coverage is 61.42%. Comparing base (0438ee7) to head (b49584c).

Files with missing lines Patch % Lines
...e/dubbo/rpc/protocol/dubbo/filter/TraceFilter.java 16.66% 4 Missing and 1 partial ⚠️
...src/main/java/org/apache/dubbo/container/Main.java 0.00% 3 Missing ⚠️
...bo/metadata/store/BaseWritableMetadataService.java 0.00% 3 Missing ⚠️
...he/dubbo/qos/server/handler/QosProcessHandler.java 0.00% 1 Missing ⚠️
...dubbo/qos/server/handler/TelnetProcessHandler.java 75.00% 1 Missing ⚠️
...dubbo/remoting/http/servlet/DispatcherServlet.java 75.00% 1 Missing ⚠️
.../org/apache/dubbo/rpc/filter/DeprecatedFilter.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5356   +/-   ##
=========================================
  Coverage     61.42%   61.42%           
- Complexity      490      491    +1     
=========================================
  Files           926      926           
  Lines         37845    37845           
  Branches       5461     5461           
=========================================
+ Hits          23246    23247    +1     
+ Misses        12076    12074    -2     
- Partials       2523     2524    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

optimize : constant names should be all uppercase, separated by underscores

7 participants