Skip to content

Commit

Permalink
regex suppress warnings of member interop.
Browse files Browse the repository at this point in the history
  • Loading branch information
entlicher committed Oct 18, 2024
1 parent 1c8161f commit 3f5b06f
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import com.oracle.truffle.regex.RegexObject;

@TruffleLanguage.Registration(name = TRegexTestDummyLanguage.NAME, id = TRegexTestDummyLanguage.ID, characterMimeTypes = TRegexTestDummyLanguage.MIME_TYPE, version = "0.1", dependentLanguages = RegexLanguage.ID)
@SuppressWarnings({"deprecated", "deprecation"}) // GR-58123
public class TRegexTestDummyLanguage extends TruffleLanguage<TRegexTestDummyLanguage.DummyLanguageContext> {

public static final String NAME = "REGEXDUMMYLANG";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import com.oracle.truffle.regex.util.TruffleReadOnlyKeysArray;

@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export", "deprecation"}) // GR-58123
public abstract class AbstractConstantKeysObject extends AbstractRegexObject {

public abstract TruffleReadOnlyKeysArray getKeys();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import com.oracle.truffle.regex.util.TruffleReadOnlyKeysArray;

@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export"}) // GR-58123
public final class RegexFlags extends AbstractConstantKeysObject implements JsonConvertible {

private static final String PROP_SOURCE = "source";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
* <p>
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export", "deprecation"}) // GR-58123
public final class RegexObject extends AbstractConstantKeysObject {

static final String PROP_EXEC = "exec";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
* </li>
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export", "deprecation"}) // GR-58123
public final class RegexResult extends AbstractConstantKeysObject {

static final String PROP_IS_MATCH = "isMatch";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
* {@code match_param} parameter).
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export"}) // GR-58123
public final class OracleDBFlags extends AbstractConstantKeysObject {

private static final String PROP_IGNORE_CASE = "i";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* An immutable representation of a set of Python regular expression flags.
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export"}) // GR-58123
public final class PythonFlags extends AbstractConstantKeysObject {

private static final String PROP_ASCII = "ASCII";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
* An immutable representation of a set of Ruby regular expression flags.
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export"}) // GR-58123
public final class RubyFlags extends AbstractConstantKeysObject {

private static final String PROP_EXTENDED = "EXTENDED";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* An immutable representation of a set of java.util.regex.Pattern regular expression flags.
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export"}) // GR-58123
public final class JavaFlags extends AbstractConstantKeysObject {

private static final String PROP_CANON_EQ = "CANON_EQ";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@
/**
* Represents an array of keys (members) of a TRegex TruffleObject. This ordered variant respects
* the order of the keys as passed to the constructor. This order is then observable when using
* {@link InteropLibrary#getMembers(Object)}.
* {@link InteropLibrary#getMemberObjects(Object)}.
*/
@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export"}) // GR-58123
public class TruffleOrderedReadOnlyKeysArray extends AbstractRegexObject {

@CompilationFinal(dimensions = 1) private final String[] keys;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import com.oracle.truffle.regex.AbstractRegexObject;

@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export", "deprecation"}) // GR-58123
public final class TruffleReadOnlyMap extends AbstractRegexObject {

private final Map<String, ?> map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import com.oracle.truffle.regex.AbstractRegexObject;

@ExportLibrary(InteropLibrary.class)
@SuppressWarnings({"truffle-abstract-export", "deprecation"}) // GR-58123
public final class TruffleSmallReadOnlyStringToIntMap extends AbstractRegexObject {

public static final int MAX_SIZE = 8;
Expand Down

0 comments on commit 3f5b06f

Please sign in to comment.