@@ -104,14 +104,14 @@ public ModeContribution(Base base, File folder,
104104 public void clearClassLoader (Base base ) {
105105 List <ModeContribution > contribModes = base .getModeContribs ();
106106 int botherToRemove = contribModes .indexOf (this );
107- if (botherToRemove != -1 ) { // The poor thing isn't even loaded, and we're trying to remove it...
107+ // The poor thing isn't even loaded, and we're trying to remove it...
108+ if (botherToRemove != -1 ) {
108109 contribModes .remove (botherToRemove );
109110
110111 try {
112+ // This cast should be safe, since the only case when loader is not a
113+ // URLClassLoader is when no archives were found in the first place.
111114 ((URLClassLoader ) loader ).close ();
112- // The typecast should be safe, since the only case when loader is not of
113- // type URLClassLoader is when no archives were found in the first
114- // place...
115115 } catch (IOException e ) {
116116 e .printStackTrace ();
117117 }
@@ -161,8 +161,8 @@ public String initLoader(Base base, String className) throws Exception {
161161
162162 ArrayList <URL > extraUrls = new ArrayList <>();
163163 if (imports != null && imports .size () > 0 ) {
164- // if the mode has any dependencies (defined as imports in mode.properties),
165- // add the dependencies to the classloader
164+ // if the mode has any dependencies (defined as imports in
165+ // mode.properties), add the dependencies to the classloader
166166
167167 HashMap <String , Mode > installedModes = new HashMap <>();
168168 for (Mode m : base .getModeList ()){
0 commit comments