Skip to content

Commit

Permalink
Wrong dependency on StringUtils removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
okmoch committed Apr 11, 2022
1 parent d520562 commit bfffd7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/msd/gin/common/sonar/LintRSensor.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.sonar.api.batch.sensor.SensorDescriptor;
import org.sonar.api.batch.sensor.issue.NewIssue;
import org.sonar.api.batch.sensor.issue.NewIssueLocation;
import org.sonar.api.internal.apachecommons.lang.StringUtils;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.rule.RuleKey;
import org.sonar.api.utils.log.Logger;
Expand Down Expand Up @@ -85,7 +84,7 @@ public List<LintRIssue> readLintrOutputFile(String lintrOutputFile) {
return Collections.emptyList();
}
String jsonContent = new String(content, StandardCharsets.UTF_8);
if (StringUtils.isBlank(jsonContent)) {
if (jsonContent == null || "".equals(jsonContent.trim())) {
LOGGER.warn("LintR output file " + lintrOutputFile + " is empty, no issues will be reported.");
return Collections.emptyList();
}
Expand Down

0 comments on commit bfffd7b

Please sign in to comment.