Browse Source

default access precedent for testcase access

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@591341 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 17 years ago
parent
commit
bbcd8aea0d
2 changed files with 4 additions and 5 deletions
  1. +2
    -0
      build.xml
  2. +2
    -5
      src/main/org/apache/tools/ant/launch/Locator.java

+ 2
- 0
build.xml View File

@@ -1860,6 +1860,8 @@ see ${build.junit.reports} / ${antunit.reports}
unless="tests.and.ant.share.classloader"/>
<exclude name="${taskdefs.package}/ProtectedJarMethodsTest.java"
unless="tests.and.ant.share.classloader"/>
<exclude name="${ant.package}/launch/LocatorTest.java"
unless="tests.and.ant.share.classloader"/>

<!-- can only run if cvs is installed on your machine
enable by setting the property have.cvs


+ 2
- 5
src/main/org/apache/tools/ant/launch/Locator.java View File

@@ -51,11 +51,8 @@ public final class Locator {
private static final int NIBBLE = 4;
private static final int NIBBLE_MASK = 0xF;

private static final int ASCII = 7;
private static final int ASCII_SIZE = 128;

private static final int BYTE = 8;
private static final int BYTE_MASK = 0xFF;
private static final int BYTE_SIZE = 256;

private static final int WORD = 16;
@@ -242,12 +239,12 @@ public final class Locator {
}

/**
* This is only public for testing purposes, so its use is strongly discouraged.
* package-private for testing in same classloader
* @param uri uri to expand
* @return the decoded URI
* @since Ant1.7.1
*/
public static String fromURIJava13(String uri) {
static String fromURIJava13(String uri) {
// Fallback method for Java 1.3 or earlier.

URL url = null;


Loading…
Cancel
Save