Skip to content

Commit

Permalink
Remove java.net.http.HttpResponse$BodySubscribers#ofFile(**) from Jav…
Browse files Browse the repository at this point in the history
…a 21 signatures by restructure loading of files

This closes #225
  • Loading branch information
uschindler committed Oct 1, 2023
1 parent c32bcc7 commit 088f031
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# (C) Copyright Uwe Schindler (Generics Policeman) and others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

java.net.http.HttpResponse$BodySubscribers#ofFile(**) @ Method is buggy in all Java versions till 20 (does not write all bytes)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# (C) Copyright Uwe Schindler (Generics Policeman) and others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

@defaultMessage Uses default locale
java.text.NumberFormat#getCompactNumberInstance()
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# (C) Copyright Uwe Schindler (Generics Policeman) and others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

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

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

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

java.net.http.HttpResponse$BodySubscribers#ofFile(**) @ Method is buggy in all Java versions till 20 (does not write all bytes)
@includeBundled incr-jdk-unsafe-11-till-20
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# These methods and classes should not be used by server classes (unsafe, no charset, no locale,...):

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

@defaultMessage Uses default locale
java.text.NumberFormat#getCompactNumberInstance()
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

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

# We only include 12 for now.
# TODO: Scan Java 13 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-12
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

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

# We only include 13 for now.
# TODO: Scan Java 14 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-13
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# These methods and classes should not be used by server classes (unsafe, no charset, no locale,...):

# 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[])
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
@includeBundled incr-jdk-unsafe-15
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 15 for now.
# TODO: Scan Java 16 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-15
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
@includeBundled incr-jdk-unsafe-15
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 16 for now.
# TODO: Scan Java 17 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-16
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
@includeBundled incr-jdk-unsafe-15
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 17 for now.
# TODO: Scan Java 18 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-17
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
@includeBundled incr-jdk-unsafe-15
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 18 for now.
# TODO: Scan Java 19 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-18
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
@includeBundled incr-jdk-unsafe-15
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 19 for now.
# TODO: Scan Java 20 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-19
@includeBundled jdk-unsafe-10
@includeBundled incr-jdk-unsafe-11-till-20
@includeBundled incr-jdk-unsafe-12
@includeBundled incr-jdk-unsafe-15
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 20 for now.
# TODO: Scan Java 21 API for additional locale/charset/... violations!
@includeBundled jdk-unsafe-20
@includeBundled jdk-unsafe-10
# 11-20 removed (see https://github.com/policeman-tools/forbidden-apis/issues/214)
@includeBundled incr-jdk-unsafe-12
@includeBundled incr-jdk-unsafe-15

0 comments on commit 088f031

Please sign in to comment.