The following document contains the results of PMD's CPD 4.1.
File | Line |
---|---|
net\sf\jpkgmk\PostinstallCreator.java | 31 |
net\sf\jpkgmk\RequestCreator.java | 41 |
requestEntryList.add(entry); } public void create(File target) throws IOException { String request = create(); BufferedWriter writer = new BufferedWriter(new FileWriter(target)); try { writer.write(request); } finally { StreamUtil.tryCloseStream(writer); } } public void create(Writer target) throws IOException { String request = create(); target.write(request); } private String create() { StringBuffer sb = new StringBuffer(); sb.append("#!/bin/sh").append(PkgInfo.LINE_SEPARATOR); sb.append("# bla bla bla").append(PkgInfo.LINE_SEPARATOR); |