Browse Source

Merge pull request #19 from jochenberger/dont-use-restricted-api

replace usage of restricted class sun.misc.IOUtils
pull/18/merge
kallestenflo 12 years ago
parent
commit
6377d41186
  1. 7
      json-path/pom.xml
  2. 2
      json-path/src/test/java/com/jayway/jsonpath/HttpProviderTest.java
  3. 7
      pom.xml

7
json-path/pom.xml

@ -60,6 +60,13 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

2
json-path/src/test/java/com/jayway/jsonpath/HttpProviderTest.java

@ -33,7 +33,7 @@ public class HttpProviderTest {
try {
inputStream = HttpProviderFactory.getProvider().get(url);
byte[] bytes = sun.misc.IOUtils.readFully(inputStream, -1, true);
byte[] bytes = org.apache.commons.io.IOUtils.toByteArray(inputStream);
String json = new String(bytes).trim();

7
pom.xml

@ -245,6 +245,13 @@
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
Loading…
Cancel
Save