From 49cb924f5402c9d24379ae1af62def6fa5892649 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Fri, 4 Jun 2021 07:58:52 +0700 Subject: Upgrade license from CPLv1/EPLv1 to EPLv2 This was required by the Eclipse team as one precondition for the next release. Signed-off-by: Alexander Kriegisch --- .../src/main/java/org/aspectj/testing/util/TestUtil.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'testing-util/src/main/java/org/aspectj') diff --git a/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java b/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java index 51c940277..a6f8303ce 100644 --- a/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java +++ b/testing-util/src/main/java/org/aspectj/testing/util/TestUtil.java @@ -2,9 +2,9 @@ * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available - * under the terms of the Eclipse Public License v1.0 + * under the terms of the Eclipse Public License v 2.0 * which accompanies this distribution and is available at - * http://www.eclipse.org/legal/epl-v10.html + * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt * * Contributors: * Xerox/PARC initial implementation @@ -540,7 +540,7 @@ public final class TestUtil { File expectedFile = new File(expectedBaseDir, path); return doSameFile(handler, expectedBaseDir, actualBaseDir, expectedFile, actualFile); } - + public static String disassembleClass(File basedir, File file) { String basedirPath = FileUtil.normalizedPath(basedir); String name = FileUtil.fileToClassName(basedir, file); @@ -555,7 +555,7 @@ public final class TestUtil { throw new IllegalStateException(t); } } - + public static List toLines(String inputString) { List lines = new ArrayList<>(); try (BufferedReader br = new BufferedReader(new StringReader(inputString))) { @@ -568,11 +568,11 @@ public final class TestUtil { } return lines; } - + public static String toString(List lines) { return String.join("\n", lines); } - + private static int longestLine(List lines) { int longest = -1; for (String line: lines) { -- cgit v1.2.3