Try to make javac 1.5 not complain by casting argument to Object[].
This commit is contained in:
		
							parent
							
								
									abaa492d2a
								
							
						
					
					
						commit
						0dd4dba0f7
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -342,7 +342,8 @@ public class ApplicationManager implements XmlRpcHandler {
 | 
			
		|||
                    Repository newRepository = null;
 | 
			
		||||
                    try {
 | 
			
		||||
                        newRepository = (Repository) Class.forName(repositoryImpl)
 | 
			
		||||
                                .getConstructor(parameters).newInstance(repositoryArgs);
 | 
			
		||||
                                .getConstructor(parameters)
 | 
			
		||||
                                .newInstance((Object[]) repositoryArgs);
 | 
			
		||||
                        repositoryList.add(newRepository);
 | 
			
		||||
                    } catch (Exception ex) {
 | 
			
		||||
                        System.out.println("Adding repository " + repositoryArgs + " failed. " +
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue