History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-11809
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Sergey Zhukov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

IDEA removes pieces of code on Alt-Enter

Created: 10 Nov 06 20:50   Updated: 13 Nov 06 14:50
Component/s: Editor. Error Highlighting
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows

Severity: High


 Description  « Hide
I'm using "org.apache.commons.cli.*" library.
IDEA highlights code about OptionBuilder with "Static member accessed via instance interface".
When I press Alt-Enter, IDEA removes code .withArgName(), .hasArg(), etc ... and I can't Undo this.

private static Options getHelpOptions() { Option help = new Option( "help", "print this message" ); Option version = new Option( "version", "print the version information and exit" ); Option urlparam = OptionBuilder.withArgName("urlparam") .hasArg() .withDescription( "to search only records like ?<urlparam>xxxx" ) .create( "urlparam"); Option hostname = OptionBuilder.withArgName( "hostname" ) .hasArg() .withDescription( "hostname to print to report" ) .create( "hostname"); Options options = new Options(); options.addOption(help); options.addOption(version); options.addOption(urlparam); options.addOption(hostname); return options; }



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.