From f483b3ccd4dc7c11c6d2d9102230714c3781244d Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Fri, 8 Mar 2024 08:06:24 +0100 Subject: [PATCH] Remove redundant SuppressWarnings(deprecation) --- src/main/java/io/github/spannm/jackcess/impl/ColumnImpl.java | 1 - src/main/java/io/github/spannm/jackcess/impl/RowImpl.java | 1 - .../spannm/jackcess/impl/complex/AttachmentColumnInfoImpl.java | 2 +- .../jackcess/impl/complex/ComplexValueForeignKeyImpl.java | 1 - .../jackcess/impl/complex/VersionHistoryColumnInfoImpl.java | 1 - .../github/spannm/jackcess/impl/expr/DefaultTextFunctions.java | 1 - 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/io/github/spannm/jackcess/impl/ColumnImpl.java b/src/main/java/io/github/spannm/jackcess/impl/ColumnImpl.java index 47df715..c736287 100644 --- a/src/main/java/io/github/spannm/jackcess/impl/ColumnImpl.java +++ b/src/main/java/io/github/spannm/jackcess/impl/ColumnImpl.java @@ -2110,7 +2110,6 @@ private static String withErrorContext( * Date subclass which stashes the original date bits, in case we attempt to re-write the value (will not lose * precision). Also, this implementation is immutable. */ - @SuppressWarnings("deprecation") private static final class DateExt extends Date { private static final long serialVersionUID = 0L; diff --git a/src/main/java/io/github/spannm/jackcess/impl/RowImpl.java b/src/main/java/io/github/spannm/jackcess/impl/RowImpl.java index 991ac89..012190c 100644 --- a/src/main/java/io/github/spannm/jackcess/impl/RowImpl.java +++ b/src/main/java/io/github/spannm/jackcess/impl/RowImpl.java @@ -99,7 +99,6 @@ public Double getDouble(String name) { } @Override - @SuppressWarnings("deprecation") public Date getDate(String name) { return (Date) get(name); } diff --git a/src/main/java/io/github/spannm/jackcess/impl/complex/AttachmentColumnInfoImpl.java b/src/main/java/io/github/spannm/jackcess/impl/complex/AttachmentColumnInfoImpl.java index 1050e78..4a8d8c2 100644 --- a/src/main/java/io/github/spannm/jackcess/impl/complex/AttachmentColumnInfoImpl.java +++ b/src/main/java/io/github/spannm/jackcess/impl/complex/AttachmentColumnInfoImpl.java @@ -217,7 +217,6 @@ public static Attachment newEncodedAttachment( null, timeStamp, flags, encodedData); } - @SuppressWarnings("deprecation") private static class AttachmentImpl extends ComplexValueImpl implements Attachment { private String _url; private String _name; @@ -230,6 +229,7 @@ private static class AttachmentImpl extends ComplexValueImpl implements Attachme private AttachmentImpl(Id id, ComplexValueForeignKey complexValueFk, String url, String name, String type, byte[] data, Object timeStamp, Integer flags, byte[] encodedData) { + super(id, complexValueFk); _url = url; _name = name; diff --git a/src/main/java/io/github/spannm/jackcess/impl/complex/ComplexValueForeignKeyImpl.java b/src/main/java/io/github/spannm/jackcess/impl/complex/ComplexValueForeignKeyImpl.java index a815c7d..2ba7402 100644 --- a/src/main/java/io/github/spannm/jackcess/impl/complex/ComplexValueForeignKeyImpl.java +++ b/src/main/java/io/github/spannm/jackcess/impl/complex/ComplexValueForeignKeyImpl.java @@ -40,7 +40,6 @@ * * @author James Ahlborn */ -@SuppressWarnings("deprecation") public class ComplexValueForeignKeyImpl extends ComplexValueForeignKey { private static final long serialVersionUID = 20110805L; diff --git a/src/main/java/io/github/spannm/jackcess/impl/complex/VersionHistoryColumnInfoImpl.java b/src/main/java/io/github/spannm/jackcess/impl/complex/VersionHistoryColumnInfoImpl.java index 88dd5e8..d18ca7c 100644 --- a/src/main/java/io/github/spannm/jackcess/impl/complex/VersionHistoryColumnInfoImpl.java +++ b/src/main/java/io/github/spannm/jackcess/impl/complex/VersionHistoryColumnInfoImpl.java @@ -145,7 +145,6 @@ public static Version newVersion(ComplexValueForeignKey complexValueFk, return new VersionImpl(INVALID_ID, complexValueFk, value, modifiedDate); } - @SuppressWarnings("deprecation") private static class VersionImpl extends ComplexValueImpl implements Version { private final String _value; private final Object _modifiedDate; diff --git a/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultTextFunctions.java b/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultTextFunctions.java index b6fcbac..9ff8ae2 100644 --- a/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultTextFunctions.java +++ b/src/main/java/io/github/spannm/jackcess/impl/expr/DefaultTextFunctions.java @@ -358,7 +358,6 @@ protected Value evalVar(EvalContext ctx, Value[] params) { } }); - @SuppressWarnings("deprecation") public static final Function STRCONV = registerStringFunc(new FuncVar("StrConv", 2, 3) { @Override protected Value evalVar(EvalContext ctx, Value[] params) {