[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078791#comment-17078791 ] Zsolt Holman commented on NETBEANS-4133: public class JoinConsecutiveIfsIntoIfElse { public void method(boolean cond1, boolean cond2) { if(cond1) { } else { //Hint: Join nested if into the enclosing if > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078790#comment-17078790 ] Zsolt Holman commented on NETBEANS-4133: public class ExpandEnhancedForLoop { static { for (String value : System.getenv().values()) // HINT: Expand enhanced for loop { } } static { for (Object value : System.getenv().values().toArray()) // hint not supported for arrays? { } } } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078786#comment-17078786 ] Zsolt Holman commented on NETBEANS-4133: public class ConvertMemberReferenceToLambdaExpression { public int compare(String o1, String o2) { return 1; } public void method(String[] a) { Arrays.sort(a, 0, a.length, this::compare); //Hint: Convert to use lambda expression } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078785#comment-17078785 ] Zsolt Holman commented on NETBEANS-4133: public class ConvertLambdaExpressionToMemberReference { public int compare(String o1, String o2) { return 1; } public void method(String[] a) { Arrays.sort(a, 0, a.length, (o1, o2) -> this.compare(o1, o2)); //Hint: use member reference } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078782#comment-17078782 ] Zsolt Holman commented on NETBEANS-4133: public class AssignUnusedConstructorParameterToField { public AssignUnusedConstructorParameterToField(int unused) // HINT: Assign unused constructor parameter to field { } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078780#comment-17078780 ] Zsolt Holman commented on NETBEANS-4133: RawTypes public void method() { List l; //Hint: [rawtypes] found raw type: List } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078767#comment-17078767 ] Zsolt Holman commented on NETBEANS-4133: HelpCtxIssues public class HelpCtxIssues { public void method(Object o) { HelpCtx c = new HelpCtx(HelpCtxIssues.class); //Hint: Use constant corresponding to class name } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078766#comment-17078766 ] Zsolt Holman commented on NETBEANS-4133: EmptyCancelForCancelableTasks public class EmptyCancelForCancelableTasks implements CancellableTask { @Override public void cancel() { //Hint: Empty cancel() for cancelable tasks } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078765#comment-17078765 ] Zsolt Holman commented on NETBEANS-4133: NoLoggers: //Do not warn when cutsom loggers are found - enabled //Add logging.CustomLogger to custom loggers class CustomLogger { //NoHint: Create logger field in logging.CustomLogger class static final CustomLogger logger = null; } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078763#comment-17078763 ] Zsolt Holman commented on NETBEANS-4133: in "UseSpecificCatch" try { if (cond) throw new BindException(); else throw new NoRouteToHostException(); //Add java.io.IOException to Generic Exception Types } catch (IOException exception) { //Hint: Replace with multicatch catching specific exceptions } try { if (cond) throw new BindException(); else throw new NoRouteToHostException(); } catch (@SuppressWarnings("UseSpecificCatch")Exception exception) { //NoHint: Replace with multicatch catching specific exceptions } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078761#comment-17078761 ] Zsolt Holman commented on NETBEANS-4133: and also in "TooBroadCatchClause" try { if (cond) throw new BindException(); else throw new NoRouteToHostException(); //Report common superypes: enabled } catch (SocketException exception) { *//Hint: Replace with multicatch catching *specific exceptions Hint: Generate catch handlers for specific exceptions } > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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
[jira] [Commented] (NETBEANS-4133) Hint does not appear in some cases
[ https://issues.apache.org/jira/browse/NETBEANS-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17078752#comment-17078752 ] Zsolt Holman commented on NETBEANS-4133: In addition, missing hint: int x = 1_23456; //Hint: Change literal to: 123_456 > Hint does not appear in some cases > -- > > Key: NETBEANS-4133 > URL: https://issues.apache.org/jira/browse/NETBEANS-4133 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor >Affects Versions: 12.0 > Environment: Ubuntu 19.10 > 7,7 GiB > Intel® Core™ i5-5200U CPU @ 2.20GHz × 4 >Reporter: Zsolt Holman >Priority: Minor > Attachments: AddUnderscores.java, CreateJavadoc.java, > ErrorInJavadoc.java > > > Missing hints are in 'javadoc' package: > //Scope is private or package > void method3() {} //*Hint: create missing javadoc for method3* > > //Scope is private > private void method4() {} //*Hint: create missing javadoc for method4* > //Scope is private or package > /** > * > * @param x //*Hint: Remove @param tag* > */ > void method() {} > > //Scope is private > /** > * > */ > private String method4() {return "";} //*Hint: Add @return tag* -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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