提交 a6c34373 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting / javadocs

上级 dd0d0e43
...@@ -440,7 +440,7 @@ public class LobStorageBackend implements LobStorageInterface { ...@@ -440,7 +440,7 @@ public class LobStorageBackend implements LobStorageInterface {
} }
} }
} }
@Override @Override
public boolean isReadOnly() { public boolean isReadOnly() {
return database.isReadOnly(); return database.isReadOnly();
......
...@@ -61,7 +61,7 @@ public class LobStorageFrontend implements LobStorageInterface { ...@@ -61,7 +61,7 @@ public class LobStorageFrontend implements LobStorageInterface {
return new BufferedInputStream(new LobStorageRemoteInputStream( return new BufferedInputStream(new LobStorageRemoteInputStream(
handler, lob, hmac, byteCount)); handler, lob, hmac, byteCount));
} }
@Override @Override
public boolean isReadOnly() { public boolean isReadOnly() {
return false; return false;
......
...@@ -84,7 +84,7 @@ public interface LobStorageInterface { ...@@ -84,7 +84,7 @@ public interface LobStorageInterface {
/** /**
* Whether the storage is read-only * Whether the storage is read-only
* *
* @return true if yes * @return true if yes
*/ */
boolean isReadOnly(); boolean isReadOnly();
......
...@@ -196,7 +196,7 @@ public class LobStorageMap implements LobStorageInterface { ...@@ -196,7 +196,7 @@ public class LobStorageMap implements LobStorageInterface {
return nextLobId++; return nextLobId++;
} }
} }
@Override @Override
public boolean isReadOnly() { public boolean isReadOnly() {
return database.isReadOnly(); return database.isReadOnly();
......
...@@ -493,7 +493,8 @@ public class RegularTable extends TableBase { ...@@ -493,7 +493,8 @@ public class RegularTable extends TableBase {
if (checkDeadlock) { if (checkDeadlock) {
ArrayList<Session> sessions = checkDeadlock(session, null, null); ArrayList<Session> sessions = checkDeadlock(session, null, null);
if (sessions != null) { if (sessions != null) {
throw DbException.get(ErrorCode.DEADLOCK_1, getDeadlockDetails(sessions, exclusive)); throw DbException.get(ErrorCode.DEADLOCK_1,
getDeadlockDetails(sessions, exclusive));
} }
} else { } else {
// check for deadlocks from now on // check for deadlocks from now on
......
...@@ -327,7 +327,8 @@ public class DateTimeUtils { ...@@ -327,7 +327,8 @@ public class DateTimeUtils {
* Calculate the milliseconds since 1970-01-01 (UTC) for the given date and * Calculate the milliseconds since 1970-01-01 (UTC) for the given date and
* time (in the specified timezone). * time (in the specified timezone).
* *
* @param tz the timezone of the parameters, or null for the default timezone * @param tz the timezone of the parameters,
* or null for the default timezone
* @param year the absolute year (positive or negative) * @param year the absolute year (positive or negative)
* @param month the month (1-12) * @param month the month (1-12)
* @param day the day (1-31) * @param day the day (1-31)
......
...@@ -12,7 +12,7 @@ package org.h2.util; ...@@ -12,7 +12,7 @@ package org.h2.util;
public abstract class HashBase { public abstract class HashBase {
/** /**
* The maximum load, in percent. * The maximum load, in percent.
* declared as long so we do long arithmetic so we don't overflow. * declared as long so we do long arithmetic so we don't overflow.
*/ */
private static final long MAX_LOAD = 90; private static final long MAX_LOAD = 90;
...@@ -100,7 +100,8 @@ public abstract class HashBase { ...@@ -100,7 +100,8 @@ public abstract class HashBase {
* @param newLevel the new level * @param newLevel the new level
*/ */
protected void reset(int newLevel) { protected void reset(int newLevel) {
// can't exceed 30 or we will generate a negative value for the "len" field // can't exceed 30 or we will generate a negative value
// for the "len" field
if (newLevel > 30) { if (newLevel > 30) {
throw new IllegalStateException("exceeded max size of hash table"); throw new IllegalStateException("exceeded max size of hash table");
} }
......
...@@ -47,7 +47,7 @@ public class IntIntHashMap extends HashBase { ...@@ -47,7 +47,7 @@ public class IntIntHashMap extends HashBase {
checkSizePut(); checkSizePut();
internalPut(key, value); internalPut(key, value);
} }
private void internalPut(int key, int value) { private void internalPut(int key, int value) {
int index = getIndex(key); int index = getIndex(key);
int plus = 1; int plus = 1;
...@@ -120,7 +120,8 @@ public class IntIntHashMap extends HashBase { ...@@ -120,7 +120,8 @@ public class IntIntHashMap extends HashBase {
for (int i = 0; i < oldKeys.length; i++) { for (int i = 0; i < oldKeys.length; i++) {
int k = oldKeys[i]; int k = oldKeys[i];
if (k != 0) { if (k != 0) {
// skip the checkSizePut so we don't end up accidentally recursing // skip the checkSizePut so we don't end up
// accidentally recursing
internalPut(k, oldValues[i]); internalPut(k, oldValues[i]);
} }
} }
......
...@@ -46,7 +46,8 @@ public class ValueHashMap<V> extends HashBase { ...@@ -46,7 +46,8 @@ public class ValueHashMap<V> extends HashBase {
for (int i = 0; i < len; i++) { for (int i = 0; i < len; i++) {
Value k = oldKeys[i]; Value k = oldKeys[i];
if (k != null && k != ValueNull.DELETED) { if (k != null && k != ValueNull.DELETED) {
// skip the checkSizePut so we don't end up accidentally recursing // skip the checkSizePut so we don't end up
// accidentally recursing
internalPut(k, oldValues[i]); internalPut(k, oldValues[i]);
} }
} }
...@@ -65,8 +66,8 @@ public class ValueHashMap<V> extends HashBase { ...@@ -65,8 +66,8 @@ public class ValueHashMap<V> extends HashBase {
public void put(Value key, V value) { public void put(Value key, V value) {
checkSizePut(); checkSizePut();
internalPut(key, value); internalPut(key, value);
} }
private void internalPut(Value key, V value) { private void internalPut(Value key, V value) {
int index = getIndex(key); int index = getIndex(key);
int plus = 1; int plus = 1;
......
...@@ -1129,7 +1129,7 @@ public abstract class Value { ...@@ -1129,7 +1129,7 @@ public abstract class Value {
/** /**
* Create an independent copy of this value if needed, that will be bound to * Create an independent copy of this value if needed, that will be bound to
* a result. If the original row is removed, this copy is still readable. * a result. If the original row is removed, this copy is still readable.
* *
* @return the value (this for small objects) * @return the value (this for small objects)
*/ */
public Value copyToResult() { public Value copyToResult() {
......
...@@ -491,7 +491,7 @@ public class ValueLobDb extends Value implements Value.ValueClob, ...@@ -491,7 +491,7 @@ public class ValueLobDb extends Value implements Value.ValueClob,
if (s.isReadOnly()) { if (s.isReadOnly()) {
return this; return this;
} }
return s.copyLob(this, LobStorageFrontend.TABLE_RESULT, return s.copyLob(this, LobStorageFrontend.TABLE_RESULT,
getPrecision()); getPrecision());
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论