new FileInputStream(file)参数类型报错

大侠们,我new一个FileInputStream的时候,传了一个File类型,但是myeclipse一直让我把参数类型改成String,我看FileInputStream类里有传File的构造方法啊,请问这是为什么??还是说不管他0.0

 private void copy(File src,File dst){
        InputStream in = null;
        OutputStream out = null;
        try {
            in = new BufferedInputStream(new FileInputStream(src),BUFFER_SIZE);
            out = new BufferedOutputStream(new FileOutputStream(dst),BUFFER_SIZE);
            byte[] buffer = new byte[BUFFER_SIZE];
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

传文件的完整路径即可

没报错就可以不管,不过还是可以把myeclipse的“myeclipse一直让我把参数类型改成String”的提示贴出来看看,我也很好奇

文件的完整路径应该是一个字符串类型的数据吧