// Check for a JAR URL repository
try {
- new URL(repository);
+ @SuppressWarnings("unused")
+ URL url = new URL(repository);
repositories.add(
new Repository(repository, RepositoryType.URL));
continue;
/**
* Return the UserConfig listener with which we are associated.
*/
+ @Override
public UserConfig getUserConfig() {
return (this.userConfig);
*
* @param userConfig The new UserConfig listener
*/
+ @Override
public void setUserConfig(UserConfig userConfig) {
this.userConfig = userConfig;
*
* @param user User for which a home directory should be retrieved
*/
+ @Override
public String getHome(String user) {
return homes.get(user);
/**
* Return an enumeration of the usernames defined on this server.
*/
+ @Override
public Enumeration<String> getUsers() {
return (homes.keys());
*
* @param args Command line arguments to be processed
*/
+ @SuppressWarnings("null")
public static void main(String args[]) {
// Verify that "catalina.home" was passed.
System.exit(1);
}
- // Locate the static main() method of the application class
Method method = null;
String params[] = new String[args.length - index];
System.arraycopy(args, index, params, 0, params.length);
*
* @param event The lifecycle event that has occurred
*/
+ @Override
public void lifecycleEvent(LifecycleEvent event) {
// Identify the host we are associated with
if (bodyTextStack != null && !bodyTextStack.empty()) {
// what we do now is push one parameter onto the top set of parameters
Object parameters[] = (Object[]) digester.peekParams();
+ @SuppressWarnings("unchecked")
ArrayList<String> params = (ArrayList<String>) parameters[paramIndex];
if (params == null) {
params = new ArrayList<String>();