Skip to content

Commit

Permalink
mjson seems to be abandoned, so it has been replaced by
Browse files Browse the repository at this point in the history
everit-json-schema
  • Loading branch information
Manuel Domínguez Dorado committed Feb 13, 2022
1 parent f24dfd6 commit 5b07ed9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle;
import org.json.JSONException;
import org.slf4j.LoggerFactory;

/**
Expand Down Expand Up @@ -167,8 +168,8 @@ public void runAnalysis(String fileName) {

// Print analysis report. As a JSON string in this case.
writeToConsole("");
writeToConsole(ReportsFactory.getInstance(SupportedVerbosityLevel.DETAILED).getReportAsPlainText(project, resultSet));
} catch (MalformedURLException ex) {
writeToConsole(ReportsFactory.getInstance(SupportedVerbosityLevel.DETAILED).getReportAsBeautifiedJSONString(project, resultSet));
} catch (MalformedURLException | JSONException | IllegalArgumentException ex) {
writeToConsole(ownI18N.getString(NOT_A_VALID_JSON_1) + " " + fileName + ". " + ownI18N.getString(NOT_A_VALID_JSON_2));
}
}
Expand Down

0 comments on commit 5b07ed9

Please sign in to comment.