Skip to content

Commit

Permalink
Removed unused canonicalLoaderDir
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Jan 15, 2023
1 parent de22c73 commit 7e78334
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ public final class WebappClassLoader extends GlassfishUrlClassLoader
/** Path where resources loaded from JARs will be extracted. */
private File loaderDir;

private String canonicalLoaderDir;

/** The PermissionCollection for each CodeSource for a web application context. */
private final ConcurrentHashMap<String, PermissionCollection> loaderPC = new ConcurrentHashMap<>();

Expand Down Expand Up @@ -434,14 +432,6 @@ public String getLibJarPath() {
public void setWorkDir(File workDir) {
checkStatus(LifeCycleStatus.NEW);
this.loaderDir = new File(workDir, "loader_" + this.hashCode());
try {
canonicalLoaderDir = this.loaderDir.getCanonicalPath();
if (!canonicalLoaderDir.endsWith(File.separator)) {
canonicalLoaderDir += File.separator;
}
} catch (IOException ioe) {
canonicalLoaderDir = null;
}
}


Expand Down

0 comments on commit 7e78334

Please sign in to comment.