The following document contains the results of PMD's CPD 4.2.5.
File | Project | Line |
---|---|---|
org/apache/james/ai/classic/BayesianAnalyzer.java | Apache James Classic AI Mailets | 365 |
org/apache/james/ai/classic/BayesianAnalyzer.java | Apache James Classic AI Mailets | 412 |
String token; String header = ""; // Build a Map of tokens encountered. while ((token = nextToken(stream)) != null) { boolean endingLine = false; if (token.length() > 0 && token.charAt(token.length() - 1) == '\n') { endingLine = true; token = token.substring(0, token.length() - 1); } if (token.length() > 0 && header.length() + token.length() < 90 && !allDigits(token)) { if (token.equals("From:") || token.equals("Return-Path:") || token.equals("Subject:") || token.equals("To:")) { header = token; if (!endingLine) { continue; } } token = header + token; |