Skip to content

Commit

Permalink
Resolve some javadoc errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdvm committed Feb 1, 2024
1 parent c9bfe08 commit f73daac
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/monetdb/jdbc/MonetConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -1516,8 +1516,8 @@ public int getNetworkTimeout() throws SQLException {
/**
* Construct a Properties object holding all connection parameters such
* as host, port, TLS configuration, autocommit, etc.
* Passing this to {@link DriverManager.getConnection()} together
* with the URL "jdbc:monetdb:" will create a new connection identical to
* Passing this to {@link java.sql.DriverManager#getConnection(String,java.util.Properties)}
* together with the URL "jdbc:monetdb:" will create a new connection identical to
* the current one.
*
* @return a Properties object
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/monetdb/jdbc/MonetPreparedStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ public void setByte(final int parameterIndex, final byte x) throws SQLException
setValue(parameterIndex, Byte.toString(x));
}

static final char[] HEXES = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
private static final char[] HEXES = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
/**
* Sets the designated parameter to the given Java array of bytes. The
* driver converts this to an SQL VARBINARY or LONGVARBINARY (depending
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/monetdb/mcl/io/BufferedMCLReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public String getLine() {
/**
* Return a substring of the current line, or null if we're at the end or before the beginning.
*
* @param start beginIndex
* @return the current line or null
*/
public String getLine(int start) {
Expand Down
12 changes: 8 additions & 4 deletions src/main/java/org/monetdb/mcl/net/MapiSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
* geared towards the format of the data.
*
* @author Fabian Groffen
* @version 4.3
* @version 4.4
* @see org.monetdb.mcl.io.BufferedMCLReader
* @see org.monetdb.mcl.io.BufferedMCLWriter
*/
Expand Down Expand Up @@ -771,6 +771,7 @@ public boolean isDebug() {
return target.isDebug();
}


/**
* Inner class that is used to write data on a normal stream as a
* blocked stream. A call to the flush() method will write a
Expand Down Expand Up @@ -1552,8 +1553,8 @@ public static abstract class OptionsCallback {

/**
* Pass option=value during the handshake
* @param field
* @param value
* @param field name
* @param value int value
*/
protected void contribute(String field, int value) {
if (buffer.length() > 0)
Expand All @@ -1563,7 +1564,10 @@ protected void contribute(String field, int value) {
buffer.append(value);
}


/**
* Set the buffer
* @param buf a non null StringBuilder object
*/
void setBuffer(StringBuilder buf) {
buffer = buf;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/monetdb/mcl/net/Parameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static boolean isIgnored(String name) {
* Note that the value returned for TIMEZONE may change if the system time zone
* is changed or if Daylight Saving Time starts or ends.
*
* @return
* @return default value for the given setting, as an Object of the appropriate type
*/
public Object getDefault() {
switch (this) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/monetdb/mcl/net/ParameterType.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public enum ParameterType {
*/
Bool,
/**
* Functionally the same as {@link ParameterType.Str } but
* Functionally the same as {@link ParameterType#Str} but
* indicates the value is to be interpreted as a path on the
* client's file system.
*/
Expand Down

0 comments on commit f73daac

Please sign in to comment.