The following document contains the results of PMD's CPD 5.6.1.
File | Line |
---|---|
org/eclipse/jgit/lfs/server/TransferHandler.java | 79 |
org/eclipse/jgit/lfs/server/TransferHandler.java | 117 |
Upload(LargeFileRepository repository, List<LfsObject> objects) { super(repository, objects); } @Override Body process() throws IOException { Response.Body body = new Response.Body(); if (objects.size() > 0) { body.objects = new ArrayList<>(); for (LfsObject o : objects) { addObjectInfo(body, o); } } return body; } private void addObjectInfo(Response.Body body, LfsObject o) throws IOException { Response.ObjectInfo info = new Response.ObjectInfo(); body.objects.add(info); info.oid = o.oid; info.size = o.size; LongObjectId oid = LongObjectId.fromString(o.oid); if (repository.getSize(oid) == -1) { |