Skip to content

Commit f5c3f88

Browse files
authored
Fix commons-io signatures that fail in commons-io v2.7 (#169)
Commons-IO signatures fails to resolve in commons-io v2.7, as there was an incompatible change; This also adds signatures for version 2.7 (a new abstract class that caused this issue). In a later version of forbiddenapis there will be a more robust fix for this (resolving virtual methods during signatures parsing)
1 parent 0613f4d commit f5c3f88

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/main/resources/de/thetaphi/forbiddenapis/signatures/commons-io-unsafe-1.0.txt

+2
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ org.apache.commons.io.IOUtils#toByteArray(java.io.Reader)
2323
org.apache.commons.io.IOUtils#toByteArray(java.lang.String)
2424
org.apache.commons.io.IOUtils#toString(byte[])
2525
org.apache.commons.io.IOUtils#toString(java.io.InputStream)
26+
27+
@ignoreUnresolvable
2628
org.apache.commons.io.output.ByteArrayOutputStream#toString()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# (C) Copyright Uwe Schindler (Generics Policeman) and others.
2+
# Parts of this work are licensed to the Apache Software Foundation (ASF)
3+
# under one or more contributor license agreements.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
@includeBundled commons-io-unsafe-2.6
18+
19+
@defaultMessage Uses default charset
20+
org.apache.commons.io.output.AbstractByteArrayOutputStream#toString()

0 commit comments

Comments
 (0)