All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.tests.source.NullInference Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
public class NullInference {
    public static void main(String args[]) throws Throwable{
    	String s = null;
    	String s2 = null;
    	
        try{
        	try{
	        	s2 = args[0];
	        	
				if (args == null){
					throw (Exception)(Object)args;
				}	
				
				s = args[1];
			} catch (ArrayIndexOutOfBoundsException e){
			}			
							
		} catch (Throwable t){
			System.out.println(t instanceof NullPointerException);
			throw t;
		}      
		
		System.out.println(s2);
		System.out.println(s);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy