Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORM-991] General cleanup of the generics. #683

Merged
merged 1 commit into from Sep 1, 2015
Merged

[STORM-991] General cleanup of the generics. #683

merged 1 commit into from Sep 1, 2015

Conversation

ddebree
Copy link
Contributor

@ddebree ddebree commented Aug 13, 2015

Generally added generics to classes within the storm.trident.spout package. This generally removes some of the casts that were in place, and simplifies the code slightly.
A typical example of what was done is

ITridentSpout _spout;

was converted to:

ITridentSpout<Object> _spout;

@@ -56,7 +56,7 @@ public RichSpoutBatchTriggerer(IRichSpout delegate, String streamName, String ba
@Override
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
_delegate.open(conf, context, new SpoutOutputCollector(new StreamOverrideCollector(collector)));
_outputTasks = new ArrayList<Integer>();
_outputTasks = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a different PR someone pointed out that this is syntax required Java 1.7 That seems ok to me since the top level pom.xml specifies 1.7 in the compile plugin, but I wanted to just point that fact out.

I support moving to the diamond notation since it makes the code much cleaner, in my opinion.

@ddebree
Copy link
Contributor Author

ddebree commented Aug 13, 2015

Issue raised on Jira: https://issues.apache.org/jira/browse/STORM-991

@ddebree ddebree changed the title General cleanup of the generics. STORM-991: General cleanup of the generics. Aug 14, 2015
@ddebree ddebree changed the title STORM-991: General cleanup of the generics. [STORM-991] General cleanup of the generics. Aug 14, 2015
@HeartSaVioR
Copy link
Contributor

+1

@asfgit asfgit merged commit 9e4c3df into apache:master Sep 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants