View Javadoc
1   package org.kuali.common.devops.jenkins.scan.function;
2   
3   import static org.kuali.common.util.base.Precondition.checkNotNull;
4   
5   import java.io.File;
6   
7   import org.kuali.common.util.file.CanonicalFile;
8   
9   import com.google.common.base.Function;
10  
11  public enum CanonicalFileFunction implements Function<File, File> {
12  	INSTANCE;
13  
14  	@Override
15  	public File apply(File file) {
16  		return new File(new CanonicalFile(checkNotNull(file, "file")).getPath());
17  	}
18  }