Skip to content

Commit

Permalink
Add some missing unsafe signatures for Java 1.7 and new ones for 9, 1…
Browse files Browse the repository at this point in the history
…2, 15 (#195)
  • Loading branch information
uschindler authored Mar 25, 2022
1 parent b95dc27 commit d9cb5c6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ java.util.Scanner#<init>(java.nio.channels.ReadableByteChannel)
java.util.Scanner#<init>(java.nio.file.Path)

@defaultMessage Uses default locale
java.beans.beancontext.BeanContextSupport#<init>()
java.beans.beancontext.BeanContextSupport#<init>(java.beans.beancontext.BeanContext)
java.io.PrintStream#format(java.lang.String,java.lang.Object[])
java.io.PrintStream#printf(java.lang.String,java.lang.Object[])
java.io.PrintWriter#format(java.lang.String,java.lang.Object[])
Expand Down Expand Up @@ -102,6 +104,8 @@ java.util.ResourceBundle#getBundle(java.lang.String)
java.util.ResourceBundle#getBundle(java.lang.String,java.util.ResourceBundle$Control)
java.util.TimeZone#getDisplayName()
java.util.TimeZone#getDisplayName(boolean,int)
javax.imageio.ImageWriteParam#<init>()
javax.imageio.plugins.bmp.BMPImageWriteParam#<init>()

@defaultMessage Uses default locale or time zone
java.util.Calendar#<init>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

# These methods and classes should not be used by server classes (unsafe, no charset, no locale,...):

# We only include 11 for now.
# TODO: Scan Java 12 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-11

@defaultMessage Uses default locale
java.text.NumberFormat#getCompactNumberInstance()
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

# These methods and classes should not be used by server classes (unsafe, no charset, no locale,...):

# We only include 14 for now.
# TODO: Scan Java 15 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-14

@defaultMessage Uses default locale
java.lang.String#formatted(java.lang.Object[])
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

# These methods and classes should not be used by server classes (unsafe, no charset, no locale,...):

# We only include 1.8 for now.
# TODO: Scan Java 9 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-1.8

@defaultMessage Uses default locale
java.util.ResourceBundle#getBundle(java.lang.String,java.lang.Module)

0 comments on commit d9cb5c6

Please sign in to comment.