You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by garydgregory <gi...@git.apache.org> on 2017/07/28 19:03:08 UTC

[GitHub] logging-log4j2 issue #101: LOG4J2-Fix type warnings and remove deprecated me...

Github user garydgregory commented on the issue:

    https://github.com/apache/logging-log4j2/pull/101
  
    Thank you for the patch.
    
    In the future, please do not use redundant type arguments. 
    
    For example:
    
    HashSet<String> foo = new HashSet<String>();
    
    can simply be:
    
    HashSet<String> foo = new HashSet<>()



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Re: [GitHub] logging-log4j2 issue #101: LOG4J2-Fix type warnings and remove deprecated me...

Posted by kenneth mcfarland <ke...@gmail.com>.
Thank you for the corrections, stupid mistakes and you just schooled me
about type inference 🤕

On Jul 28, 2017 12:03 PM, "garydgregory" <gi...@git.apache.org> wrote:

> Github user garydgregory commented on the issue:
>
>     https://github.com/apache/logging-log4j2/pull/101
>
>     Thank you for the patch.
>
>     In the future, please do not use redundant type arguments.
>
>     For example:
>
>     HashSet<String> foo = new HashSet<String>();
>
>     can simply be:
>
>     HashSet<String> foo = new HashSet<>()
>
>
>
> ---
> If your project is set up for it, you can reply to this email and have your
> reply appear on GitHub as well. If your project does not have this feature
> enabled and wishes so, or if the feature is enabled but not working, please
> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
> with INFRA.
> ---
>