Skip to content

Commit b896555

Browse files
committed
DefaultUsageService: make test easier to grok
This accommodates a really nitty picky nitpick from Johannes Schindelin.
1 parent b5795d7 commit b896555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/usage/DefaultUsageService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void clearStats() {
7272

7373
@Override
7474
public UsageStats getUsage(final Object o) {
75-
if (!(o instanceof Identifiable) || !(o instanceof Locatable)) {
75+
if (!(o instanceof Identifiable && o instanceof Locatable)) {
7676
// only track objects with an identifier and a location
7777
return null;
7878
}

0 commit comments

Comments
 (0)