Sho SHIMIZU
Committed by Sho Shimizu

Cosmetics

Change-Id: I46c79068f9de3451483b63e8963143ab283cf53b
......@@ -84,9 +84,7 @@ final class EncodableDiscreteResources implements DiscreteResources {
@Override
public DiscreteResources difference(DiscreteResources other) {
Set<DiscreteResource> diff = Sets.difference(values(), other.values());
return of(parent, diff);
return of(parent, Sets.difference(values(), other.values()));
}
@Override
......
......@@ -58,7 +58,7 @@ final class GenericDiscreteResources implements DiscreteResources {
@Override
public DiscreteResources difference(DiscreteResources other) {
return new GenericDiscreteResources(Sets.difference(this.values, other.values()));
return of(Sets.difference(this.values(), other.values()));
}
@Override
......
......@@ -65,7 +65,7 @@ final class UnifiedDiscreteResources implements DiscreteResources {
@Override
public DiscreteResources difference(DiscreteResources other) {
return of(Sets.difference(values(), other.values()));
return of(Sets.difference(this.values(), other.values()));
}
@Override
......