Browse Source

remove the final keyword

pull/545/head
Finn Reißmann 8 months ago
parent
commit
c92dd66385
No account linked to committer's email address

+ 1
- 1
pf4j/src/main/java/org/pf4j/AbstractPluginManager.java View File

@@ -289,7 +289,7 @@ public abstract class AbstractPluginManager implements PluginManager {
}

log.info("Unload plugin '{}'", getPluginLabel(pluginWrapper.getDescriptor()));
} catch (final Exception e) {
} catch (Exception e) {
if (pluginWrapper == null) {
return false;
}

+ 3
- 3
pf4j/src/test/java/org/pf4j/JarPluginManagerTest.java View File

@@ -110,17 +110,17 @@ public class JarPluginManagerTest {
.build();

pluginManager.loadPlugins();
final Path pluginPath = pluginManager.getPlugin(pluginZip.pluginId()).getPluginPath();
Path pluginPath = pluginManager.getPlugin(pluginZip.pluginId()).getPluginPath();

try {
pluginManager.startPlugin(pluginZip.pluginId());
} catch (final Exception exceptionStartPlugin) {
} catch (Exception exceptionStartPlugin) {
Assertions.assertThrows(FileSystemException.class, () -> Files.delete(pluginPath));

// Try to remove the plugin if it cannot be started
try {
pluginManager.unloadPlugin(pluginZip.pluginId());
} catch (final Exception ignored2) {
} catch (Exception ignored2) {
}
Assertions.assertDoesNotThrow(() -> Files.delete(pluginPath));
}

Loading…
Cancel
Save