mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
fix some potential bugs
This commit is contained in:
@@ -208,7 +208,11 @@ public class BindingExtensionProcessor implements ExtensionProcessor
|
||||
binder.bind(extensionClass);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (IllegalAccessException ex)
|
||||
{
|
||||
logger.error(ex.getMessage(), ex);
|
||||
}
|
||||
catch (InstantiationException ex)
|
||||
{
|
||||
logger.error(ex.getMessage(), ex);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ import com.google.inject.Singleton;
|
||||
import sonia.scm.plugin.DefaultPluginManager;
|
||||
import sonia.scm.plugin.OverviewPluginFilter;
|
||||
import sonia.scm.plugin.PluginInformation;
|
||||
import sonia.scm.util.Util;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -60,7 +60,6 @@ import java.io.IOException;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -167,8 +167,6 @@ public class AetherPluginHandler
|
||||
List<Dependency> dependencies = getInstalledDependencies(null);
|
||||
|
||||
collectDependencies(dependency, dependencies);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -364,13 +362,10 @@ public class AetherPluginHandler
|
||||
{
|
||||
String id = plugin.getId();
|
||||
|
||||
if ((skipId == null) ||!id.equals(skipId))
|
||||
if (Util.isNotEmpty(id) && ((skipId == null) ||!id.equals(skipId)))
|
||||
{
|
||||
if (Util.isNotEmpty(id))
|
||||
{
|
||||
dependencies.add(new Dependency(new DefaultArtifact(id),
|
||||
PLUGIN_SCOPE));
|
||||
}
|
||||
dependencies.add(new Dependency(new DefaultArtifact(id),
|
||||
PLUGIN_SCOPE));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,8 @@ public class OverviewPluginFilter implements PluginFilter
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
public static OverviewPluginFilter INSTANCE = new OverviewPluginFilter();
|
||||
public static final OverviewPluginFilter INSTANCE =
|
||||
new OverviewPluginFilter();
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user