[ https://issues.apache.org/jira/browse/NETBEANS-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ARUNAVA SINHA updated NETBEANS-479: ----------------------------------- Description: The IDE will include a prompt to replace the explicit types with ‘var’, when the type can be inferred from the context. e.g.., String str = new String("Hello"); can be replaced with var str = new String("hello"); *Preconditions for the hint:* 1. hint should be enabled only for JDK10 or higher 2. hint should work only for local variable 3. hint should be disabled is var type is already present. was: The IDE will include a prompt to replace the explicit types with ‘var’, when the type can be inferred from the context. e.g.., String str = new String("Hello"); can be replaced with var str = new String("hello"); *Preconditions for the hint:* 1. hint should be enabled only for JDK10 or higher 2. hint should work only inside block scope 3. hint should be disabled is var type is already present. > New Java Hint to replace explicit type of variable with var > ----------------------------------------------------------- > > Key: NETBEANS-479 > URL: https://issues.apache.org/jira/browse/NETBEANS-479 > Project: NetBeans > Issue Type: Improvement > Reporter: ARUNAVA SINHA > Assignee: ARUNAVA SINHA > Priority: Trivial > Labels: JDK10-LVTI > > The IDE will include a prompt to replace the explicit types with ‘var’, when > the type can be inferred from the context. > e.g.., String str = new String("Hello"); > can be replaced with var str = new String("hello"); > *Preconditions for the hint:* > 1. hint should be enabled only for JDK10 or higher > 2. hint should work only for local variable > 3. hint should be disabled is var type is already present. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists