Cleanup for Codacy

This commit is contained in:
Antonin Delpeuch 2018-06-11 09:19:34 +01:00
parent ab3adc0329
commit b87a52195c
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@
package org.openrefine.wikidata.qa;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

View File

@ -46,7 +46,7 @@ public class QuantityScrutinizer extends SnakScrutinizer {
}
Set<ItemIdValue> allowedUnits = _fetcher.allowedUnits(pid);
String currentUnit = null;
if (value.getUnit() != null && value.getUnit() != "") {
if (value.getUnit() != null && !value.getUnit().equals("")) {
currentUnit = value.getUnit();
}
if(allowedUnits != null &&