Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/390.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 不推荐使用SVNWCUtil.createDefaultAuthenticationManager_Java - Fatal编程技术网

Java 不推荐使用SVNWCUtil.createDefaultAuthenticationManager

Java 不推荐使用SVNWCUtil.createDefaultAuthenticationManager,java,Java,我正在写SVN代码,这个方法不推荐使用,但是我看到了api文档,没有推荐给我,有更好的api可以使用吗 SVNWCUtil.createDefaultAuthenticationManager已被弃用我也有同样的问题,但我查看了项目的源代码,发现还有另一种方法接受密码作为字符[] 然后您可以使用: authMgr = SVNWCUtil.createDefaultAuthenticationManager(name, password.toCharArray()); 您只需将第二个参数从St

我正在写SVN代码,这个方法不推荐使用,但是我看到了api文档,没有推荐给我,有更好的api可以使用吗


SVNWCUtil.createDefaultAuthenticationManager已被弃用

我也有同样的问题,但我查看了项目的源代码,发现还有另一种方法接受密码作为字符[]

然后您可以使用:

 authMgr = SVNWCUtil.createDefaultAuthenticationManager(name, password.toCharArray());

您只需将第二个参数从String更改为Char[]

而且SVNURL.parseURIDecoded已被取消分级。。。。