You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metron.apache.org by justinleet <gi...@git.apache.org> on 2016/12/08 20:55:43 UTC

[GitHub] incubator-metron pull request #391: METRON-618 Eliminate Javac Warnings in m...

GitHub user justinleet opened a pull request:

    https://github.com/apache/incubator-metron/pull/391

    METRON-618 Eliminate Javac Warnings in metron-analytics

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/justinleet/incubator-metron METRON-618

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/391.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #391
    
----
commit c0f6f71924fb9795ebdeb717d431457e5366e204
Author: justinjleet <ju...@gmail.com>
Date:   2016-12-08T19:23:35Z

    Eliminating warnings from the analytics package

----


---
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.
---

[GitHub] incubator-metron issue #391: METRON-618 Eliminate Javac Warnings in metron-a...

Posted by justinleet <gi...@git.apache.org>.
Github user justinleet commented on the issue:

    https://github.com/apache/incubator-metron/pull/391
  
    Cleaned up most of the warnings that come from the compiler in metron-analytics.  What's left is a couple Error Prone issues (primarily related to Charset, which has a separate ticket), and multiline annotations is tied to Java 6 (and not something we can much do about, nor am I worried about given that it still works).
    
    - For the `toArgs()` methods, swapped out the `Utils` class for `Arrays.asList()`.  This itself is `@SafeVarargs`, and since we just iterate over it, out methods themselves should be fine as `@SafeVarargs`.
    - Said `Utils` class is deleted entirely now.
    - Variety of `@SuppressWarnings("unchecked")` added.  These are typically things derived from JSONObject or similar, because the JSON library we use only has raw types.  I tried to keep these at the minimum scope I could.
    - Couple of instances of code get generics applied to them appropriately, including one that was previously flagged to suppress raw types (once a couple other things that were warnings got fixed with types, that could carry through)
    
    Tested this by spinning up quickdev and running up MaaS and the profiler and making sure output came through both of them.


---
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.
---

[GitHub] incubator-metron issue #391: METRON-618 Eliminate Javac Warnings in metron-a...

Posted by ottobackwards <gi...@git.apache.org>.
Github user ottobackwards commented on the issue:

    https://github.com/apache/incubator-metron/pull/391
  
    +1 on inspection


---
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.
---

[GitHub] incubator-metron pull request #391: METRON-618 Eliminate Javac Warnings in m...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-metron/pull/391


---
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.
---