Skip to content

Commit 49fe912

Browse files
committed
Adding SuppressWarnings.
1 parent 8d52d9d commit 49fe912

File tree

1 file changed

+2
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str/StringBuiltins.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,7 @@ public String create(String self, long width, String fill) {
16891689
}
16901690

16911691
@Specialization(guards = "fill.codePointCount(0, fill.length()) != 1")
1692+
@SuppressWarnings("unused")
16921693
public String createError(String self, long width, String fill) {
16931694
throw raise(TypeError, "The fill character must be exactly one character long");
16941695
}
@@ -1704,6 +1705,7 @@ public String create(String self, PInt width, String fill) {
17041705
}
17051706

17061707
@Specialization(guards = "fill.codePointCount(0, fill.length()) != 1")
1708+
@SuppressWarnings("unused")
17071709
public String createError(String self, PInt width, String fill) {
17081710
throw raise(TypeError, "The fill character must be exactly one character long");
17091711
}

0 commit comments

Comments
 (0)