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 Original file line number Diff line number Diff line change 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
- */
8
1
package com .synopsys .integration .detect .commontest ;
9
2
10
3
import java .io .File ;
14
7
import org .junit .jupiter .api .Assertions ;
15
8
16
9
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 );
19
12
Assertions .assertNotNull (resource , "Could not find resource path: " + prefix + relativeResourcePath );
20
- final File file ;
13
+ File file ;
21
14
try {
22
15
file = new File (resource .toURI ().getPath ());
23
16
} catch (URISyntaxException e ) {
You can’t perform that action at this time.
0 commit comments