提交 ac2ce3fd authored 作者: Noel Grandin's avatar Noel Grandin

javadoc cleanup

上级 ff7d9f9a
...@@ -8,6 +8,7 @@ package org.h2.engine; ...@@ -8,6 +8,7 @@ package org.h2.engine;
import java.io.Closeable; import java.io.Closeable;
import java.util.ArrayList; import java.util.ArrayList;
import org.h2.command.CommandInterface; import org.h2.command.CommandInterface;
import org.h2.jdbc.JdbcConnection;
import org.h2.message.Trace; import org.h2.message.Trace;
import org.h2.store.DataHandler; import org.h2.store.DataHandler;
import org.h2.value.Value; import org.h2.value.Value;
...@@ -141,7 +142,7 @@ public interface SessionInterface extends Closeable { ...@@ -141,7 +142,7 @@ public interface SessionInterface extends Closeable {
boolean isRemote(); boolean isRemote();
/** /**
* Set current schema as in {@link JdbcConnection#setSchema(String)}. * Set current schema as in {@link org.h2.jdbc.JdbcConnection#setSchema(String)}.
* *
* @param schema the schema name * @param schema the schema name
*/ */
......
...@@ -917,7 +917,7 @@ public class MVStore { ...@@ -917,7 +917,7 @@ public class MVStore {
/** /**
* Whether the chunk at the given position is live. * Whether the chunk at the given position is live.
* *
* @param the chunk id * @param chunkId the chunk id
* @return true if it is live * @return true if it is live
*/ */
boolean isChunkLive(int chunkId) { boolean isChunkLive(int chunkId) {
......
...@@ -329,7 +329,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex { ...@@ -329,7 +329,7 @@ public class MVSecondaryIndex extends BaseIndex implements MVIndex {
/** /**
* Convert array of values to a SearchRow. * Convert array of values to a SearchRow.
* *
* @param array the index key * @param key the index key
* @return the row * @return the row
*/ */
SearchRow convertToSearchRow(ValueArray key) { SearchRow convertToSearchRow(ValueArray key) {
......
...@@ -17,7 +17,6 @@ import java.util.LinkedHashMap; ...@@ -17,7 +17,6 @@ import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.TreeMap;
import org.h2.api.ErrorCode; import org.h2.api.ErrorCode;
import org.h2.compress.CompressLZF; import org.h2.compress.CompressLZF;
import org.h2.message.DbException; import org.h2.message.DbException;
...@@ -554,8 +553,8 @@ class FileMemData { ...@@ -554,8 +553,8 @@ class FileMemData {
/** /**
* Compress the data in a byte array. * Compress the data in a byte array.
* *
* @param data the page array
* @param page which page to compress * @param page which page to compress
* @param old the page array
*/ */
void compress(int page, byte[] old) { void compress(int page, byte[] old) {
byte[][] array = data; byte[][] array = data;
......
...@@ -14,7 +14,6 @@ import org.h2.message.DbException; ...@@ -14,7 +14,6 @@ import org.h2.message.DbException;
/** /**
* Single threaded lazy future. * Single threaded lazy future.
* *
* @param <T>
* @author Sergi Vladykin * @author Sergi Vladykin
*/ */
public abstract class LazyFuture<T> implements Future<T> { public abstract class LazyFuture<T> implements Future<T> {
......
...@@ -22,12 +22,6 @@ public class TestUsingIndex extends TestBase { ...@@ -22,12 +22,6 @@ public class TestUsingIndex extends TestBase {
private Connection conn; private Connection conn;
private Statement stat; private Statement stat;
/**
* Run just this test.
*
* @param a ignored
* @throws java.lang.Exception
*/
public static void main(String... a) throws Exception { public static void main(String... a) throws Exception {
TestBase.createCaller().init().test(); TestBase.createCaller().init().test();
} }
......
...@@ -11,12 +11,10 @@ import java.net.Socket; ...@@ -11,12 +11,10 @@ import java.net.Socket;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
import javax.net.ssl.SSLContext; import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLServerSocket; import javax.net.ssl.SSLServerSocket;
import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocket;
import org.h2.engine.SysProperties; import org.h2.engine.SysProperties;
import org.h2.test.TestBase; import org.h2.test.TestBase;
import org.h2.util.NetUtils; import org.h2.util.NetUtils;
...@@ -57,7 +55,6 @@ public class TestNetUtils extends TestBase { ...@@ -57,7 +55,6 @@ public class TestNetUtils extends TestBase {
* With default settings, H2 client SSL socket should be able to connect * With default settings, H2 client SSL socket should be able to connect
* to an H2 server SSL socket using an anonymous cipher suite * to an H2 server SSL socket using an anonymous cipher suite
* (no SSL certificate is needed). * (no SSL certificate is needed).
* @throws Exception
*/ */
private void testAnonymousTlsSession() throws Exception { private void testAnonymousTlsSession() throws Exception {
assertTrue("Failed assumption: the default value of ENABLE_ANONYMOUS_TLS" + assertTrue("Failed assumption: the default value of ENABLE_ANONYMOUS_TLS" +
...@@ -98,7 +95,6 @@ public class TestNetUtils extends TestBase { ...@@ -98,7 +95,6 @@ public class TestNetUtils extends TestBase {
* does not allow anonymous TLS. * does not allow anonymous TLS.
* The global property ENABLE_ANONYMOUS_TLS cannot be modified for the test; * The global property ENABLE_ANONYMOUS_TLS cannot be modified for the test;
* instead, the server socket is altered. * instead, the server socket is altered.
* @throws Exception
*/ */
private void testTlsSessionWithServerSideAnonymousDisabled() throws Exception { private void testTlsSessionWithServerSideAnonymousDisabled() throws Exception {
boolean ssl = true; boolean ssl = true;
......
...@@ -622,9 +622,10 @@ public class H2Database { ...@@ -622,9 +622,10 @@ public class H2Database {
/** /**
* TODO * TODO
* *
* @deprecated * @deprecated deprecated in API Level 3, use yieldIfContendedSafely
* @return TODO * @return TODO
*/ */
@Deprecated
public boolean yieldIfContended() { public boolean yieldIfContended() {
return false; return false;
} }
......
...@@ -1092,8 +1092,6 @@ public class ArchiveTool { ...@@ -1092,8 +1092,6 @@ public class ArchiveTool {
/** /**
* Print the progress. * Print the progress.
*
* @param current the current value
*/ */
void printProgress(long offset) { void printProgress(long offset) {
current += offset; current += offset;
......
...@@ -91,7 +91,6 @@ public class IntPerfectHash { ...@@ -91,7 +91,6 @@ public class IntPerfectHash {
* *
* @param pos the start position * @param pos the start position
* @param x the key * @param x the key
* @param isRoot whether this is the root of the tree
* @param level the level * @param level the level
* @return the hash value * @return the hash value
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论