Skip to content

Commit 84d7c32

Browse files
committed
DynamicClassLoader - weird indentation
1 parent cd73a1b commit 84d7c32

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

lib/file-compiler/src/com/sandwich/util/io/classloader/DynamicClassLoader.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ public DynamicClassLoader(String binDir, String sourceDir, String[] classPath){
2929
}
3030

3131
public DynamicClassLoader(String binDir, String sourceDir, String[] classPath, ClassLoader parent) {
32-
this(binDir, sourceDir, classPath, parent, 5000l);
33-
}
32+
this(binDir, sourceDir, classPath, parent, 5000l);
33+
}
3434

3535
public DynamicClassLoader(String binDir, String sourceDir,
3636
String[] classPath, ClassLoader parent,
3737
long timeout) {
3838
super(parent);
39-
this.binDir = binDir;
40-
this.sourceDir = sourceDir;
41-
this.classPath = classPath;
42-
this.timeout = timeout;
39+
this.binDir = binDir;
40+
this.sourceDir = sourceDir;
41+
this.classPath = classPath;
42+
this.timeout = timeout;
4343
}
4444

4545
public abstract boolean isFileModifiedSinceLastPoll(String sourcePath, long lastModified);
@@ -69,14 +69,14 @@ public static void remove(Class<?> clas){
6969
}
7070

7171
public Class<?> loadClass(String className){
72-
return loadClass(className, FileCompilerAction.LOGGING_HANDLER);
72+
return loadClass(className, FileCompilerAction.LOGGING_HANDLER);
7373
}
7474

7575
public Class<?> loadClass(String className, CompilationListener listener){
7676
String fileSeparator = System.getProperty("file.separator");
7777
String fileName = binDir + fileSeparator
78-
+ className.replace(".", fileSeparator)
79-
+ FileCompiler.CLASS_SUFFIX;
78+
+ className.replace(".", fileSeparator)
79+
+ FileCompiler.CLASS_SUFFIX;
8080
File classFile = new File(fileName);
8181
try {
8282
// file may have never been compiled, go ahead and compile it now
@@ -128,11 +128,11 @@ public Class<?> loadClass(URL url, String className){
128128
e.printStackTrace();
129129
}
130130

131-
byte[] classData = buffer.toByteArray();
132-
clazz = defineClass(className, classData, 0, classData.length);
133-
classesByLocation.put(url, clazz);
134-
locationByClass.put(clazz, url);
135-
return clazz;
131+
byte[] classData = buffer.toByteArray();
132+
clazz = defineClass(className, classData, 0, classData.length);
133+
classesByLocation.put(url, clazz);
134+
locationByClass.put(clazz, url);
135+
return clazz;
136136
}
137137

138138
public long getTimeout() {

0 commit comments

Comments
 (0)