Skip to content

Commit

Permalink
Use Collections.emptyList() directly. (open-telemetry#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosalberto authored and DotSpy committed Feb 21, 2020
1 parent 91d14ae commit b885421
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
*/
@Immutable
public class EmptyCorrelationContext implements CorrelationContext {
private static final Collection<Entry> EMPTY_COLLECTION = Collections.emptyList();

/**
* Returns the single instance of the {@link EmptyCorrelationContext} class.
*
Expand All @@ -42,7 +40,7 @@ public static CorrelationContext getInstance() {

@Override
public Collection<Entry> getEntries() {
return EMPTY_COLLECTION;
return Collections.emptyList();
}

@Nullable
Expand Down

0 comments on commit b885421

Please sign in to comment.