Skip to content

Commit

Permalink
Issues #5, #6: Second instance of getFirstLine() -> getLastLine().
Browse files Browse the repository at this point in the history
  • Loading branch information
runer112 committed Jan 11, 2016
1 parent 30cd30a commit 933c806
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,15 @@ public static void main(String[] args) throws Exception {
+ toComparisonComponentId(discovery.getDiscoveredComponentKey()) + ":"
+ discovery.getMatchingFileLocation().getFilePath());
for (RelatedSnippets similarity : similarities) {
System.out.println("\t" + similarity.getLeftSnippet().getFirstLine() + " to " + similarity.getLeftSnippet().getFirstLine()
System.out.println("\t" + similarity.getLeftSnippet().getFirstLine() + " to " + similarity.getLeftSnippet().getLastLine()
+ "\t" + similarity.getRightSnippet().getFirstLine() + " to " + similarity.getRightSnippet().getLastLine());
}

System.out.println("Differences between " + discovery.getFilePath() + " and "
+ toComparisonComponentId(discovery.getDiscoveredComponentKey()) + ":"
+ discovery.getMatchingFileLocation().getFilePath());
for (RelatedSnippets difference : differences) {
System.out.println("\t" + difference.getLeftSnippet().getFirstLine() + " to " + difference.getLeftSnippet().getFirstLine()
System.out.println("\t" + difference.getLeftSnippet().getFirstLine() + " to " + difference.getLeftSnippet().getLastLine()
+ "\t" + difference.getRightSnippet().getFirstLine() + " to " + difference.getRightSnippet().getLastLine());
}
} catch (SdkFault fault) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ public static void main(String[] args) throws Exception {
System.out.println("Similarities between " + projectFile.getFilePath() + " and " + matchedFile.getComponentOrProjectId() + ":"
+ matchedFile.getFilePath());
for (RelatedSnippets similarity : similarities) {
System.out.println("\t" + similarity.getLeftSnippet().getFirstLine() + " to " + similarity.getLeftSnippet().getFirstLine()
System.out.println("\t" + similarity.getLeftSnippet().getFirstLine() + " to " + similarity.getLeftSnippet().getLastLine()
+ "\t" + similarity.getRightSnippet().getFirstLine() + " to " + similarity.getRightSnippet().getLastLine());
}

System.out.println("Differences between " + projectFile.getFilePath() + " and " + matchedFile.getComponentOrProjectId() + ":"
+ matchedFile.getFilePath());
for (RelatedSnippets difference : differences) {
System.out.println("\t" + difference.getLeftSnippet().getFirstLine() + " to " + difference.getLeftSnippet().getFirstLine()
System.out.println("\t" + difference.getLeftSnippet().getFirstLine() + " to " + difference.getLeftSnippet().getLastLine()
+ "\t" + difference.getRightSnippet().getFirstLine() + " to " + difference.getRightSnippet().getLastLine());
}
} catch (SdkFault fault) {
Expand Down

0 comments on commit 933c806

Please sign in to comment.