CPD Results
The following document contains the results of PMD's CPD 7.12.0.
Duplications
File | Line |
---|---|
net\sourceforge\joceanus\coeus\data\fundingcircle\CoeusFundingCircleTotals.java | 289 |
net\sourceforge\joceanus\coeus\data\zopa\CoeusZopaTotals.java | 272 |
final CoeusFundingCircleTotals myPrevious = (CoeusFundingCircleTotals) getPrevious(); if (Objects.equals(theAssetValue, myPrevious.getAssetValue())) { theAssetValue = myPrevious.getAssetValue(); } if (Objects.equals(theHolding, myPrevious.getHolding())) { theHolding = myPrevious.getHolding(); } if (Objects.equals(theLoanBook, myPrevious.getLoanBook())) { theLoanBook = myPrevious.getLoanBook(); } if (Objects.equals(theSourceValue, myPrevious.getSourceValue())) { theSourceValue = myPrevious.getSourceValue(); } if (Objects.equals(theInvested, myPrevious.getInvested())) { theInvested = myPrevious.getInvested(); } if (Objects.equals(theEarnings, myPrevious.getEarnings())) { theEarnings = myPrevious.getEarnings(); } if (Objects.equals(theTaxableEarnings, myPrevious.getTaxableEarnings())) { theTaxableEarnings = myPrevious.getTaxableEarnings(); } if (Objects.equals(theInterest, myPrevious.getInterest())) { theInterest = myPrevious.getInterest(); } if (Objects.equals(theNettInterest, myPrevious.getNettInterest())) { theNettInterest = myPrevious.getNettInterest(); } if (Objects.equals(theBadDebtInterest, myPrevious.getBadDebtInterest())) { theBadDebtInterest = myPrevious.getBadDebtInterest(); } if (Objects.equals(theBadDebtCapital, myPrevious.getBadDebtCapital())) { theBadDebtCapital = myPrevious.getBadDebtCapital(); } if (Objects.equals(theFees, myPrevious.getFees())) { theFees = myPrevious.getFees(); } if (Objects.equals(theCashBack, myPrevious.getCashBack())) { theCashBack = myPrevious.getCashBack(); } if (Objects.equals(theXferPayment, myPrevious.getXferPayment())) { |
File | Line |
---|---|
net\sourceforge\joceanus\coeus\data\fundingcircle\CoeusFundingCircleTotals.java | 289 |
net\sourceforge\joceanus\coeus\data\lendingworks\CoeusLendingWorksTotals.java | 196 |
net\sourceforge\joceanus\coeus\data\ratesetter\CoeusRateSetterTotals.java | 191 |
net\sourceforge\joceanus\coeus\data\zopa\CoeusZopaTotals.java | 272 |
final CoeusFundingCircleTotals myPrevious = (CoeusFundingCircleTotals) getPrevious(); if (Objects.equals(theAssetValue, myPrevious.getAssetValue())) { theAssetValue = myPrevious.getAssetValue(); } if (Objects.equals(theHolding, myPrevious.getHolding())) { theHolding = myPrevious.getHolding(); } if (Objects.equals(theLoanBook, myPrevious.getLoanBook())) { theLoanBook = myPrevious.getLoanBook(); } if (Objects.equals(theSourceValue, myPrevious.getSourceValue())) { theSourceValue = myPrevious.getSourceValue(); } if (Objects.equals(theInvested, myPrevious.getInvested())) { theInvested = myPrevious.getInvested(); } if (Objects.equals(theEarnings, myPrevious.getEarnings())) { theEarnings = myPrevious.getEarnings(); } if (Objects.equals(theTaxableEarnings, myPrevious.getTaxableEarnings())) { |
File | Line |
---|---|
net\sourceforge\joceanus\coeus\data\fundingcircle\CoeusFundingCircleLoader.java | 103 |
net\sourceforge\joceanus\coeus\data\lendingworks\CoeusLendingWorksLoader.java | 83 |
theBasePath = mySystem.getPath(myPath); } /** * Obtain sorted list of statements. * @return the list of statements * @throws OceanusException on error */ private List<StatementRecord> listStatements() throws OceanusException { /* Create list and formatter */ final List<StatementRecord> myList = new ArrayList<>(); final DateTimeFormatter myFormatter = DateTimeFormatter.ofPattern(DATEPATTERN); /* Loop through statement file in the directory */ try (DirectoryStream<Path> myStream = Files.newDirectoryStream(theBasePath, MASK)) { for (final Path myFile : myStream) { /* Skip null entries */ final Path myFileName = myFile.getFileName(); if (myFileName == null) { continue; } /* Parse the file name */ final String myName = myFileName.toString(); String myBase = myName.substring(0, myName.length() - SUFFIX.length()); myBase = myBase.substring(PREFIX.length()); final TemporalAccessor myTA = myFormatter.parse(myBase); |
File | Line |
---|---|
net\sourceforge\joceanus\coeus\data\fundingcircle\CoeusFundingCircleLoader.java | 103 |
net\sourceforge\joceanus\coeus\data\zopa\CoeusZopaLoader.java | 93 |
theBasePath = mySystem.getPath(myPath); } /** * Obtain sorted list of statements. * @return the list of statements * @throws OceanusException on error */ private List<StatementRecord> listStatements() throws OceanusException { /* Create list and formatter */ final List<StatementRecord> myList = new ArrayList<>(); final DateTimeFormatter myFormatter = DateTimeFormatter.ofPattern(DATEPATTERN); /* Loop through statement file in the directory */ try (DirectoryStream<Path> myStream = Files.newDirectoryStream(theBasePath, MASK)) { for (final Path myFile : myStream) { /* Skip null entries */ final Path myFileName = myFile.getFileName(); if (myFileName == null) { continue; } /* Parse the file name */ final String myName = myFileName.toString(); String myBase = myName.substring(0, myName.length() - SUFFIX.length()); myBase = myBase.substring(PREFIX.length()); |