Skip to content

Conversation

@mattrpav
Copy link
Contributor

@mattrpav mattrpav commented Dec 8, 2025

No description provided.

@mattrpav mattrpav self-assigned this Dec 8, 2025
public String getConnectURI() {
URI tmpConnectUri = null;
try {
tmpConnectUri = this.connector.getConnectUri();
Copy link
Contributor

Choose a reason for hiding this comment

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

I find it more readable to do a return this.connector.getConnectUri() and return null in the catch block.

@Override
public String getBrokerInfoString() {
var tmpBrokerInfo = this.connector.getBrokerInfo();
return (tmpBrokerInfo != null ? tmpBrokerInfo.toString() : null);
Copy link
Contributor

Choose a reason for hiding this comment

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

if getBrokerInfo() can really return null, you probably could add a null check above in other methods.

Copy link
Contributor

Choose a reason for hiding this comment

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

There is a getBrokerInfo() method already available

public String getPublishableConnectURI() {
URI publishableConnectURI = null;
try {
publishableConnectURI = this.connector.getPublishableConnectURI();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as previous

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.

2 participants