Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix documentation reporter identation
  • Loading branch information
viniciusam committed Jun 9, 2017
commit a7a24a1fb2ee3caacea2820609257506f2ced0cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,52 @@
import io.github.utplsql.api.CustomTypes;

import java.sql.SQLException;
import java.sql.SQLInput;
import java.sql.SQLOutput;

public class DocumentationReporter extends Reporter {

private int lvl;
private int failed;

public DocumentationReporter() {
this.lvl = 0;
this.failed = 0;
}

public int getLvl() {
return lvl;
}

public void setLvl(int lvl) {
this.lvl = lvl;
}

public int getFailed() {
return failed;
}

public void setFailed(int failed) {
this.failed = failed;
}

@Override
public String getSQLTypeName() throws SQLException {
return CustomTypes.UT_DOCUMENTATION_REPORTER;
}

@Override
public void readSQL(SQLInput stream, String typeName) throws SQLException {
super.readSQL(stream, typeName);
setLvl(stream.readInt());
setFailed(stream.readInt());
}

@Override
public void writeSQL(SQLOutput stream) throws SQLException {
super.writeSQL(stream);
stream.writeInt(getLvl());
stream.writeInt(getFailed());
}

}