Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[#noissue] Cleanup #9657

Merged
merged 1 commit into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,12 @@ public int getParentId() {
public int getTab() {
return tab;
}

public String getTabspace() {
if(tab == 0) {
if (tab == 0) {
return "";
}
StringBuilder sb = new StringBuilder();
for(int i=0; i< tab; i++) {
sb.append("&nbsp");
}
return sb.toString();
return "&nbsp".repeat(Math.max(0, tab));
}

public boolean isMethod() {
Expand Down Expand Up @@ -194,58 +191,56 @@ public String getLocation() {

@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("{tab=");
builder.append(tab);
builder.append(", id=");
builder.append(id);
builder.append(", parentId=");
builder.append(parentId);
builder.append(", method=");
builder.append(method);
builder.append(", title=");
builder.append(title);
builder.append(", simpleClassName=");
builder.append(simpleClassName);
builder.append(", fullApiDescription=");
builder.append(fullApiDescription);
builder.append(", arguments=");
builder.append(arguments);
builder.append(", begin=");
builder.append(begin);
builder.append(", elapsed=");
builder.append(elapsed);
builder.append(", gap=");
builder.append(gap);
builder.append(", executionMilliseconds=");
builder.append(executionMilliseconds);
builder.append(", agentId=");
builder.append(agentId);
builder.append(", agentName=");
builder.append(agentName);
builder.append(", applicationName=");
builder.append(applicationName);
builder.append(", serviceType=");
builder.append(serviceType);
builder.append(", destinationId=");
builder.append(destinationId);
builder.append(", excludeFromTimeline=");
builder.append(excludeFromTimeline);
builder.append(", transactionId=");
builder.append(transactionId);
builder.append(", spanId=");
builder.append(spanId);
builder.append(", focused=");
builder.append(focused);
builder.append(", hasChild=");
builder.append(hasChild);
builder.append(", hasException=");
builder.append(hasException);
builder.append(", methodTypeEnum=");
builder.append(methodTypeEnum);
builder.append(", isAuthorized=");
builder.append(isAuthorized);
builder.append("}");
return builder.toString();
return "{tab=" +
tab +
", id=" +
id +
", parentId=" +
parentId +
", method=" +
method +
", title=" +
title +
", simpleClassName=" +
simpleClassName +
", fullApiDescription=" +
fullApiDescription +
", arguments=" +
arguments +
", begin=" +
begin +
", elapsed=" +
elapsed +
", gap=" +
gap +
", executionMilliseconds=" +
executionMilliseconds +
", agentId=" +
agentId +
", agentName=" +
agentName +
", applicationName=" +
applicationName +
", serviceType=" +
serviceType +
", destinationId=" +
destinationId +
", excludeFromTimeline=" +
excludeFromTimeline +
", transactionId=" +
transactionId +
", spanId=" +
spanId +
", focused=" +
focused +
", hasChild=" +
hasChild +
", hasException=" +
hasException +
", methodTypeEnum=" +
methodTypeEnum +
", isAuthorized=" +
isAuthorized +
"}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,10 @@ public int getTab() {
}

public String getTabspace() {
if(tab == 0) {
if (tab == 0) {
return "";
}
StringBuilder sb = new StringBuilder();
for(int i=0; i< tab; i++) {
sb.append("&nbsp");
}
return sb.toString();
return "&nbsp".repeat(Math.max(0, tab));
}

public boolean isMethod() {
Expand Down