Skip to content

Commit

Permalink
EDIT: Added additional logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaglam committed Apr 7, 2017
1 parent cceec82 commit d23d406
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/eme/extractor/JavaTypeExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ public void extractExternalTypes(Set<String> externalTypes) throws JavaModelExce
logger.info("Parsing external types...");
for (String typeName : externalTypes) { // for every potential external type
if (!model.contains(typeName)) { // if is not a model type:
IType iType = project.findType(typeName); // try to find IType
if (iType != null) { // if IType was found:
model.addExternal(extractType(iType)); // add to model.
IType type = project.findType(typeName); // try to find IType
if (type != null) { // if IType was found:
ExtractedType extractedType = extractType(type);
logger.info("Resolved external " + extractedType.toString());
model.addExternal(extractedType); // add to model.
}
}
}
Expand Down

0 comments on commit d23d406

Please sign in to comment.