Task Cancellation

Task Cancellation
Yes, you can make it final

On Friday, June 6, 2014, Nithin VR <notifications@github.com> wrote:

> In
> concourse-shell/src/main/java/org/cinchapi/concourse/shell/ConcourseShell.java:
>
> > +
> > +		ConsoleReader console = new ConsoleReader();
> > +		Options opts = new Options();
> > +		JCommander parser = new JCommander(opts, args);
> > +		parser.setProgramName("concourse-shell");
> > +		if (opts.help) {
> > +			parser.usage();
> > +			System.exit(1);
> > +		}
> > +		if (Strings.isNullOrEmpty(opts.password)) {
> > +			opts.password = console.readLine("Password: ", '*');
> > +		}
> > +		try {
> > +			Concourse concourse = Concourse.connect(opts.host, opts.port,
> > +					opts.username, opts.password);
> > +			ShutdownHookThread shutdownHookthread = new ShutdownHookThread(
>
> when i tried shutdown hook with anonymous class "Cannot refer to a
> non-final variable concourse inside an inner class defined in a different
> method " Error is showing.
> So can i change concourse object in to Final ?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cinchapi/concourse/pull/17/files#r13480275>.
>


-- 
Sent from my iPhone