Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Add Moshi to JavaDependenciesInspector
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech committed Nov 12, 2016
1 parent e5f9235 commit fd7cb38
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class JavaDependenciesInspector {
private int jsonParsing = 0;
private boolean hasJackson;
private boolean hasGson;
private boolean hasMoshi;

// other dependencies
private boolean hasGuava;
Expand Down Expand Up @@ -72,6 +73,7 @@ public List<String> getInspections() {
result.add("\n* Duplicate json parsing - ");
if (hasJackson) result.add("jackson ");
if (hasGson) result.add("gson ");
if (hasMoshi) result.add("moshi ");
}

if (hasGuava) {
Expand Down Expand Up @@ -119,6 +121,9 @@ private void updateLogic(String cName) {
} else if (cName.contains("google.code.gson") && !hasGson) {
hasGson = true;
jsonParsing++;
} else if (cName.contains("squareup.moshi") && !hasMoshi) {
hasMoshi = true;
jsonParsing++;
} else if (cName.contains("google.common") && !hasGuava) {
hasGuava = true;
} else if (cName.contains("apache.http") && !hasDeprecatedHttp) {
Expand Down

0 comments on commit fd7cb38

Please sign in to comment.