Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7a24a1

Browse files
committed
Fix documentation reporter identation
1 parent467feaa commita7a24a1

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
importio.github.utplsql.api.CustomTypes;
44

55
importjava.sql.SQLException;
6+
importjava.sql.SQLInput;
7+
importjava.sql.SQLOutput;
68

79
publicclassDocumentationReporterextendsReporter {
810

11+
privateintlvl;
12+
privateintfailed;
13+
14+
publicDocumentationReporter() {
15+
this.lvl =0;
16+
this.failed =0;
17+
}
18+
19+
publicintgetLvl() {
20+
returnlvl;
21+
}
22+
23+
publicvoidsetLvl(intlvl) {
24+
this.lvl =lvl;
25+
}
26+
27+
publicintgetFailed() {
28+
returnfailed;
29+
}
30+
31+
publicvoidsetFailed(intfailed) {
32+
this.failed =failed;
33+
}
34+
935
@Override
1036
publicStringgetSQLTypeName()throwsSQLException {
1137
returnCustomTypes.UT_DOCUMENTATION_REPORTER;
1238
}
1339

40+
@Override
41+
publicvoidreadSQL(SQLInputstream,StringtypeName)throwsSQLException {
42+
super.readSQL(stream,typeName);
43+
setLvl(stream.readInt());
44+
setFailed(stream.readInt());
45+
}
46+
47+
@Override
48+
publicvoidwriteSQL(SQLOutputstream)throwsSQLException {
49+
super.writeSQL(stream);
50+
stream.writeInt(getLvl());
51+
stream.writeInt(getFailed());
52+
}
53+
1454
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp