Skip to content

Commit e118824

Browse files
committed
Fix JavaDoc issues
1 parent 0fbac09 commit e118824

17 files changed

Lines changed: 26 additions & 17 deletions

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<sourceDirectory>src</sourceDirectory>
1313
<testSourceDirectory>test</testSourceDirectory>
1414
<plugins>
15-
<plugin>
15+
<plugin>
1616
<groupId>org.apache.maven.plugins</groupId>
1717
<artifactId>maven-javadoc-plugin</artifactId>
1818
<version>3.2.0</version>

src/sqlancer/DatabaseProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public interface DatabaseProvider<G extends GlobalState<O, ?, C>, O extends DBMS
2424
* @param globalState
2525
* the state created and is valid for this method call.
2626
*
27+
* @throws Exception
28+
* if creating the database fails.
29+
*
2730
*/
2831
void generateAndTestDatabase(G globalState) throws Exception;
2932

src/sqlancer/common/oracle/PivotedQuerySynthesisBase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public final void check() throws Exception {
6161
* @return true if at least one row is contained, false otherwise
6262
*
6363
* @throws Exception
64+
* if the query unexpectedly fails
6465
*/
6566
private boolean containsRows(Query<C> query) throws Exception {
6667
try (SQLancerResultSet result = query.executeAndGet(globalState)) {
@@ -108,6 +109,7 @@ protected void reportMissingPivotRow(Query<?> query) {
108109
* @return a query that checks whether the pivot row is contained in pivotRowQuery
109110
*
110111
* @throws Exception
112+
* if an unexpected error occurs
111113
*/
112114
protected abstract Query<C> getContainmentCheckQuery(Query<?> pivotRowQuery) throws Exception;
113115

@@ -118,6 +120,7 @@ protected void reportMissingPivotRow(Query<?> query) {
118120
* @return the rectified query
119121
*
120122
* @throws Exception
123+
* if an unexpected error occurs
121124
*/
122125
protected abstract Query<C> getRectifiedQuery() throws Exception;
123126

src/sqlancer/mysql/ast/MySQLComputableFunction.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public enum MySQLFunction {
3838
// }
3939
// },
4040
/**
41-
* @see https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#function_bit-count
41+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/bit-functions.html#function_bit-count">Bit Functions
42+
* and Operators</a>
4243
*/
4344
BIT_COUNT(1, "BIT_COUNT") {
4445

@@ -92,7 +93,8 @@ public boolean isVariadic() {
9293

9394
},
9495
/**
95-
* @see https://dev.mysql.com/doc/refman/8.0/en/control-flow-functions.html#function_if
96+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/control-flow-functions.html#function_if">Flow Control
97+
* Functions</a>
9698
*/
9799
IF(3, "IF") {
98100

@@ -113,7 +115,7 @@ public MySQLConstant apply(MySQLConstant[] args, MySQLExpression... origArgs) {
113115

114116
},
115117
/**
116-
* @see https://dev.mysql.com/doc/refman/8.0/en/control-flow-functions.html#function_ifnull
118+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/control-flow-functions.html#function_ifnull">IFNULL</a>
117119
*/
118120
IFNULL(2, "IFNULL") {
119121

src/sqlancer/mysql/ast/MySQLInOperation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import sqlancer.IgnoreMeException;
66

77
/**
8-
* @see https://dev.mysql.com/doc/refman/8.0/en/comparison-operators.html#operator_in
8+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/comparison-operators.html#operator_in">Comparison Functions and
9+
* Operators</a>
910
*/
1011
public class MySQLInOperation implements MySQLExpression {
1112

src/sqlancer/mysql/gen/MySQLDropIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import sqlancer.mysql.MySQLSchema.MySQLTable;
99

1010
/**
11-
* @see https://dev.mysql.com/doc/refman/8.0/en/drop-index.html
11+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/drop-index.html">DROP INDEX Statement</a>
1212
*/
1313
public final class MySQLDropIndex {
1414

src/sqlancer/mysql/gen/tblmaintenance/MySQLAnalyzeTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sqlancer.mysql.MySQLSchema.MySQLTable;
1111

1212
/**
13-
* @see https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html
13+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html">ANALYZE TABLE Statement</a>
1414
*/
1515
public class MySQLAnalyzeTable {
1616

src/sqlancer/mysql/gen/tblmaintenance/MySQLCheckTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import sqlancer.mysql.MySQLSchema.MySQLTable;
1010

1111
/**
12-
* @see https://dev.mysql.com/doc/refman/8.0/en/check-table.html
12+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/check-table.html">CHECK TABLE Statement</a>
1313
*/
1414
public class MySQLCheckTable {
1515

src/sqlancer/mysql/gen/tblmaintenance/MySQLChecksum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import sqlancer.mysql.MySQLSchema.MySQLTable;
1010

1111
/**
12-
* @see https://dev.mysql.com/doc/refman/8.0/en/checksum-table.html
12+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/checksum-table.html">CHECKSUM TABLE Statement</a>
1313
*/
1414
public class MySQLChecksum {
1515

src/sqlancer/mysql/gen/tblmaintenance/MySQLOptimize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import sqlancer.mysql.MySQLSchema.MySQLTable;
1010

1111
/**
12-
* @see https://dev.mysql.com/doc/refman/8.0/en/optimize-table.html
12+
* @see <a href="https://dev.mysql.com/doc/refman/8.0/en/optimize-table.html">OPTIMIZE TABLE Statement</a>
1313
*/
1414
public class MySQLOptimize {
1515

0 commit comments

Comments
 (0)