Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/java.sql/share/classes/java/sql/ResultSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
package java.sql;

import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.checker.mustcall.qual.InheritableMustCall;
import org.checkerframework.framework.qual.AnnotatedFor;

import java.math.BigDecimal;
Expand Down Expand Up @@ -149,7 +150,8 @@
* @since 1.1
*/

@AnnotatedFor("nullness")
@AnnotatedFor({"nullness", "mustcall"})
@InheritableMustCall("close")
public interface ResultSet extends Wrapper, AutoCloseable {

/**
Expand Down
5 changes: 5 additions & 0 deletions src/java.sql/share/classes/java/sql/Statement.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
import org.checkerframework.checker.sqlquotes.qual.SqlEvenQuotes;
import org.checkerframework.checker.tainting.qual.Untainted;

import org.checkerframework.checker.mustcall.qual.InheritableMustCall;
import org.checkerframework.framework.qual.AnnotatedFor;

import java.util.regex.Pattern;
import static java.util.stream.Collectors.joining;

Expand All @@ -47,6 +50,8 @@
* @see ResultSet
* @since 1.1
*/
@AnnotatedFor({"mustcall"})
@InheritableMustCall("close")
public interface Statement extends Wrapper, AutoCloseable {

/**
Expand Down
Loading