Skip to content

Commit

Permalink
Merge pull request apache#2851 from drgnchan/develop
Browse files Browse the repository at this point in the history
fix some nonconformity after checkstyle
  • Loading branch information
duhenglucky authored May 6, 2021
2 parents 061c51f + e14f66e commit fb0d019
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void setInstanceName(String instanceName) {

public void changeInstanceNameToPID() {
if (this.instanceName.equals("DEFAULT")) {
this.instanceName = UtilAll.getPid()+ "#" + System.nanoTime();
this.instanceName = UtilAll.getPid() + "#" + System.nanoTime();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static String parseInstanceIdFromEndpoint(String endpoint) {
if (StringUtils.isEmpty(endpoint)) {
return null;
}
return endpoint.substring(endpoint.lastIndexOf("/")+1, endpoint.indexOf('.'));
return endpoint.substring(endpoint.lastIndexOf("/") + 1, endpoint.indexOf('.'));
}

public static String getNameSrvAddrFromNamesrvEndpoint(String nameSrvEndpoint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
*/
package org.apache.rocketmq.example.ordermessage;

import java.io.UnsupportedEncodingException;
import java.util.List;
import org.apache.rocketmq.client.exception.MQBrokerException;
import org.apache.rocketmq.client.exception.MQClientException;
import org.apache.rocketmq.client.producer.DefaultMQProducer;
import org.apache.rocketmq.client.producer.MQProducer;
import org.apache.rocketmq.client.producer.MessageQueueSelector;
import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.common.message.MessageQueue;
import org.apache.rocketmq.remoting.common.RemotingHelper;
import org.apache.rocketmq.remoting.exception.RemotingException;

import java.io.UnsupportedEncodingException;
import java.util.List;

public class Producer {
public static void main(String[] args) throws UnsupportedEncodingException {
try {
Expand Down

0 comments on commit fb0d019

Please sign in to comment.