Skip to content
This repository was archived by the owner on Jun 12, 2022. It is now read-only.

Commit 677db51

Browse files
committed
Convert Java to Kotlin
1 parent aab8bdb commit 677db51

20 files changed

+613
-676
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trim_trailing_whitespace = true
1212
insert_final_newline = true
1313

1414
[**.{java,kt}]
15-
indent_size = 4
15+
indent_size = 2
1616

1717
[**.md]
1818
trim_trailing_whitespace = false

src/main/java/io/nthienan/phdiff/Configuration.java

-105
This file was deleted.

src/main/java/io/nthienan/phdiff/PhabricatorDifferentialPlugin.java

-54
This file was deleted.

src/main/java/io/nthienan/phdiff/PhabricatorDifferentialPostJob.java

-83
This file was deleted.

src/main/java/io/nthienan/phdiff/differential/Result.java

-11
This file was deleted.

src/main/java/io/nthienan/phdiff/issue/IssueComparator.java

-57
This file was deleted.

src/main/java/io/nthienan/phdiff/report/GlobalReportBuilder.java

+22-22
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@
44

55
public interface GlobalReportBuilder {
66

7-
/**
8-
* Append an object to the report, using its toString() method.
9-
*
10-
* @param o object to append
11-
* @return a reference to this object
12-
*/
13-
GlobalReportBuilder append(Object o);
7+
/**
8+
* Append an object to the report, using its toString() method.
9+
*
10+
* @param o object to append
11+
* @return a reference to this object
12+
*/
13+
GlobalReportBuilder append(Object o);
1414

15-
/**
16-
* Register an "extra issue" (not reported on a diff).
17-
* Note that extra issues are not always included in the final rendered report.
18-
*
19-
* @param issue the extra issue to append
20-
* @return a reference to this object
21-
*/
22-
GlobalReportBuilder add(PostJobIssue issue);
15+
/**
16+
* Register an "extra issue" (not reported on a diff).
17+
* Note that extra issues are not always included in the final rendered report.
18+
*
19+
* @param issue the extra issue to append
20+
* @return a reference to this object
21+
*/
22+
GlobalReportBuilder add(PostJobIssue issue);
2323

24-
/**
25-
* Get string that presents all issues in format
26-
*
27-
* @return String in format
28-
*/
29-
String build();
24+
/**
25+
* Get string that presents all issues in format
26+
*
27+
* @return String in format
28+
*/
29+
String build();
3030

31-
String summarize();
31+
String summarize();
3232

3333
}

src/main/java/io/nthienan/phdiff/report/InlineReportBuilder.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
import org.sonar.api.batch.postjob.issue.PostJobIssue;
44

5-
import java.util.List;
6-
75
/**
86
* Created on 12-Jul-17.
97
*
108
* @author nthienan
119
*/
1210
public interface InlineReportBuilder {
1311

14-
InlineReportBuilder issue(PostJobIssue issue);
12+
InlineReportBuilder issue(PostJobIssue issue);
1513

16-
String build();
14+
String build();
1715
}

0 commit comments

Comments
 (0)