Browse Source

Modified 'backslash' to be public static final so that the test case can access it. This method is standalone, so having it static is fine.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270373 13f79535-47bb-0310-9956-ffa450edef68
master
Erik Hatcher 23 years ago
parent
commit
8958eef718
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Change.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4Change.java View File

@@ -144,7 +144,7 @@ public class P4Change extends P4Base {
* @return the backslashed string * @return the backslashed string
* @see < a href="http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/Perl5Util.html#substitute(java.lang.String,%20java.lang.String)">Oro</a> * @see < a href="http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/Perl5Util.html#substitute(java.lang.String,%20java.lang.String)">Oro</a>
*/ */
protected String backslash(String value){
public static final String backslash(String value){
final StringBuffer buf = new StringBuffer(value.length()); final StringBuffer buf = new StringBuffer(value.length());
final int len = value.length(); final int len = value.length();
for (int i = 0; i < len; i++){ for (int i = 0; i < len; i++){


Loading…
Cancel
Save