-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Check for existence of CU befor getting comment, fix #134
- Loading branch information
Showing
9 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/test/resources/clean/both_modified/compilation_unit_comment/Base.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* This comment will be attached to the compilation unit. | ||
* We want to merge it textually, separately from all other merging. | ||
*/ | ||
package se.kth.spork; | ||
|
||
/** | ||
* And this is the normal Javadoc comment. | ||
*/ | ||
public class Cls { | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/test/resources/clean/both_modified/compilation_unit_comment/Expected.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Add some stuff in the left revision! | ||
* | ||
* This comment will be attached to the compilation unit. | ||
* We want to merge it textually, separately from all other merging. | ||
* | ||
* And add some stuff in the right revision! | ||
*/ | ||
package se.kth.spork; | ||
|
||
/** | ||
* And this is the normal Javadoc comment. | ||
*/ | ||
public class Cls { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/test/resources/clean/both_modified/compilation_unit_comment/Left.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Add some stuff in the left revision! | ||
* | ||
* This comment will be attached to the compilation unit. | ||
* We want to merge it textually, separately from all other merging. | ||
*/ | ||
package se.kth.spork; | ||
|
||
/** | ||
* And this is the normal Javadoc comment. | ||
*/ | ||
public class Cls { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/test/resources/clean/both_modified/compilation_unit_comment/Right.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* This comment will be attached to the compilation unit. | ||
* We want to merge it textually, separately from all other merging. | ||
* | ||
* And add some stuff in the right revision! | ||
*/ | ||
package se.kth.spork; | ||
|
||
/** | ||
* And this is the normal Javadoc comment. | ||
*/ | ||
public class Cls { | ||
|
||
} |
Empty file.
7 changes: 7 additions & 0 deletions
7
src/test/resources/clean/both_modified/two_way_merge/Expected.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Main { | ||
public static void main(String[] args) { | ||
int a = 2; | ||
int b = 2; | ||
System.out.println(a + b); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/clean/both_modified/two_way_merge/Left.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Main { | ||
public static void main(String[] args) { | ||
int a = 2; | ||
int b = 2; | ||
System.out.println(a + b); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/clean/both_modified/two_way_merge/Right.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Main { | ||
public static void main(String[] args) { | ||
int a = 2; | ||
int b = 2; | ||
System.out.println(a + b); | ||
} | ||
} |