private File assemblePidfile ( String pidfileParm ) { File pidfile = new File ( pidfileParm ) ; if ( ! pidfile . exists ( ) ) { throw new ValidatorProcessUsageException ( "-pidfile does not exist: '" + pidfileParm + "'" ) ; } if ( ! pidfile . canRead ( ) ) { throw new ValidatorProcessUsageException ( "-pidfile is not readable: '" + pidfileParm + "'" ) ; } return pidfile ; }
Is there a valid file out there for this parm? We already know that the parms is not null .