Skip to content

Commit a7a24a1

Browse files
committed
Fix documentation reporter identation
1 parent 467feaa commit a7a24a1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/main/java/io/github/utplsql/api/reporter/DocumentationReporter.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,52 @@
33
import io.github.utplsql.api.CustomTypes;
44

55
import java.sql.SQLException;
6+
import java.sql.SQLInput;
7+
import java.sql.SQLOutput;
68

79
public class DocumentationReporter extends Reporter {
810

11+
private int lvl;
12+
private int failed;
13+
14+
public DocumentationReporter() {
15+
this.lvl = 0;
16+
this.failed = 0;
17+
}
18+
19+
public int getLvl() {
20+
return lvl;
21+
}
22+
23+
public void setLvl(int lvl) {
24+
this.lvl = lvl;
25+
}
26+
27+
public int getFailed() {
28+
return failed;
29+
}
30+
31+
public void setFailed(int failed) {
32+
this.failed = failed;
33+
}
34+
935
@Override
1036
public String getSQLTypeName() throws SQLException {
1137
return CustomTypes.UT_DOCUMENTATION_REPORTER;
1238
}
1339

40+
@Override
41+
public void readSQL(SQLInput stream, String typeName) throws SQLException {
42+
super.readSQL(stream, typeName);
43+
setLvl(stream.readInt());
44+
setFailed(stream.readInt());
45+
}
46+
47+
@Override
48+
public void writeSQL(SQLOutput stream) throws SQLException {
49+
super.writeSQL(stream);
50+
stream.writeInt(getLvl());
51+
stream.writeInt(getFailed());
52+
}
53+
1454
}

0 commit comments

Comments
 (0)