CPD Results

The following document contains the results of PMD's CPD 6.53.0.

Duplications

File Line
io/guixer/logs/LogLoader.java 428
io/guixer/logs/LogLoader.java 454
} else if ("assertTrue".equals(command)) {

			final boolean success;

			if (args.endsWith(" -> SUCCESS")) {

				success = true;

			} else if (args.endsWith(" -> FAILURE")) {

				success = false;

			} else {

				throw new NotImplementedException("args: " + args);
			}

			final int end = args.lastIndexOf(" -> ");
			final int index = args.lastIndexOf(" ", end - 1);

			final String locator = args.substring(0, index);

			final String attribute = args.substring(index + 1, end);

			return new AssertTrueLogLine(timeMillis, rawText, LoggedBy.parse(locator), attribute, success);