Skip to content

Commit 128b886

Browse files
#99 Now handling generated sources gracefully
Creating a placeholder ScmLogInfo object when a source file has been generated.
1 parent 9cf5d34 commit 128b886

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cost-benefit-calculator/src/main/java/org/hjug/cbc/CostBenefitCalculator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ <T extends Disharmony> List<ScmLogInfo> getRankedChangeProneness(List<T> disharm
248248
} catch (GitAPIException | IOException e) {
249249
log.error("Error reading Git repository contents.", e);
250250
} catch (NullPointerException e) {
251-
log.error("Encountered nested class in a class containing a violation. Class: {}", path);
251+
log.info("Encountered nested class in a class containing a violation. Class: {}", path);
252+
scmLogInfo = new ScmLogInfo(path, 0,0,0);
252253
}
253254
return scmLogInfo;
254255
})

0 commit comments

Comments
 (0)