Skip to content

Commit

Permalink
[pinpoint-apm#3252] fix format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehong-kim committed Oct 20, 2017
1 parent 34eb756 commit f0d8894
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ public AnnotationKey getAnnotationKey() {
}

public Object getAnnotationValue() {
if (app == null) {
return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, null);
if (this.type == TYPE_APP && this.app != null) {
return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, StringUtils.abbreviate(app, APP_MAX_LENGTH));
}
return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, StringUtils.abbreviate(app, APP_MAX_LENGTH));
return new LongIntIntByteByteStringValue(receivedTimeMillis, type, durationTimeMicroseconds, idlePercent, busyPercent, null);
}

@Override
Expand Down

0 comments on commit f0d8894

Please sign in to comment.