提交 27fad3d8 编写于 作者: S serge-rider

Annotations

上级 2ffa1ec5
......@@ -16,6 +16,7 @@
*/
package org.jkiss.dbeaver.ext.postgresql.model.data;
import org.jkiss.code.NotNull;
import org.jkiss.dbeaver.Log;
import org.jkiss.dbeaver.ext.postgresql.PostgreConstants;
import org.jkiss.dbeaver.model.data.DBDDisplayFormat;
......@@ -70,8 +71,9 @@ public class PostgreIntervalValueHandler extends JDBCStringValueHandler {
}
}
@NotNull
@Override
public String getValueDisplayString(DBSTypedObject column, Object value, DBDDisplayFormat format) {
public String getValueDisplayString(@NotNull DBSTypedObject column, Object value, @NotNull DBDDisplayFormat format) {
if (value != null && value.getClass().getName().equals(PostgreConstants.PG_INTERVAL_CLASS)) {
try {
Number years = (Number) BeanUtils.readObjectProperty(value, "years");
......
......@@ -76,6 +76,7 @@ public class SQLiteValueHandler extends JDBCAbstractValueHandler {
return object;
}
@NotNull
public synchronized String getValueDisplayString(@NotNull DBSTypedObject column, @Nullable Object value, @NotNull DBDDisplayFormat format)
{
if (value instanceof Number) {
......
......@@ -40,7 +40,7 @@ public abstract class BaseValueHandler implements DBDValueHandler {
}
@Override
public Object createNewValueObject(DBCSession session, DBSTypedObject type) throws DBCException {
public Object createNewValueObject(@NotNull DBCSession session, @NotNull DBSTypedObject type) throws DBCException {
throw new DBCException("New '" + type.getTypeName() + "' object create not supported");
}
......
......@@ -70,7 +70,7 @@ public class JDBCArrayValueHandler extends JDBCComplexValueHandler {
}
@Override
public Object createNewValueObject(DBCSession session, DBSTypedObject type) throws DBCException {
public Object createNewValueObject(@NotNull DBCSession session, @NotNull DBSTypedObject type) throws DBCException {
DBSDataType dataType;
if (type instanceof DBSDataType) {
dataType = (DBSDataType) type;
......
......@@ -21,6 +21,7 @@ import org.jkiss.code.Nullable;
import org.jkiss.dbeaver.model.*;
import org.jkiss.dbeaver.model.data.DBDBinaryFormatter;
import org.jkiss.dbeaver.model.data.DBDDataFilter;
import org.jkiss.dbeaver.model.data.DBDValue;
import org.jkiss.dbeaver.model.impl.data.formatters.BinaryFormatterHexNative;
import org.jkiss.dbeaver.model.sql.*;
import org.jkiss.dbeaver.model.sql.parser.SQLSemanticProcessor;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册