Skip to content

Commit 7266adb

Browse files
committed
refactor(common-test): Removed license headers and applied formatter to all files in the /common-test module.
1 parent 9b3a9e5 commit 7266adb

File tree

1 file changed

+3
-10
lines changed
  • common-test/src/main/java/com/synopsys/integration/detect/commontest

1 file changed

+3
-10
lines changed

Diff for: common-test/src/main/java/com/synopsys/integration/detect/commontest/FileUtil.java

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/*
2-
* common-test
3-
*
4-
* Copyright (c) 2021 Synopsys, Inc.
5-
*
6-
* Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
7-
*/
81
package com.synopsys.integration.detect.commontest;
92

103
import java.io.File;
@@ -14,10 +7,10 @@
147
import org.junit.jupiter.api.Assertions;
158

169
public class FileUtil {
17-
public static File asFile(Class<?> resourceLoadingClass, final String relativeResourcePath, final String prefix) {
18-
final URL resource = resourceLoadingClass.getResource(prefix + relativeResourcePath);
10+
public static File asFile(Class<?> resourceLoadingClass, String relativeResourcePath, String prefix) {
11+
URL resource = resourceLoadingClass.getResource(prefix + relativeResourcePath);
1912
Assertions.assertNotNull(resource, "Could not find resource path: " + prefix + relativeResourcePath);
20-
final File file;
13+
File file;
2114
try {
2215
file = new File(resource.toURI().getPath());
2316
} catch (URISyntaxException e) {

0 commit comments

Comments
 (0)