Skip to content

Conversation

@WangTaoTheTonic
Copy link
Contributor

In XORShiftRandom.scala, use val "million" instead of constant "1e6.toInt".
Delete vals that never used in other files.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@srowen
Copy link
Member

srowen commented Apr 26, 2014

I think this is a good change. It's pretty easy to run inspections over whole modules or the whole project to catch dead stores. I wonder if that's better than reviewing piecemeal changes?

@WangTaoTheTonic
Copy link
Contributor Author

Hi Owen, thanks for your suggestion.
I inspected the unused assignment, method parameters and symbol using Intellij IDEA, here is the results exclude test resources.
Please review.

@srowen
Copy link
Member

srowen commented Apr 26, 2014

Just my $0.02 here -- I think the "teenager" variables, while not used, are there as illustrative examples and should likely be left in. The "host" variable likewise might useful just for completeness. I agree with the other changes you found.

@WangTaoTheTonic
Copy link
Contributor Author

Thanks for that, i already fixed it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this get deleted? This is an example for expository purposes

@WangTaoTheTonic
Copy link
Contributor Author

You two guys differ about this, so what are we gonna do?

@rxin
Copy link
Contributor

rxin commented Apr 28, 2014

I don't think it is a big deal in this case. It could go either way so we probably shouldn't spend time arguing about this.

@rxin
Copy link
Contributor

rxin commented Apr 28, 2014

Jenkins, test this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14540/

@rxin
Copy link
Contributor

rxin commented Apr 30, 2014

Thanks. I've merged this.

asfgit pushed a commit that referenced this pull request Apr 30, 2014
In XORShiftRandom.scala, use val "million" instead of constant "1e6.toInt".
Delete vals that never used in other files.

Author: WangTao <[email protected]>

Closes #565 from WangTaoTheTonic/master and squashes the following commits:

17cacfc [WangTao] Handle the unused assignment, method parameters and symbol inspected by Intellij IDEA
37b4090 [WangTao] Handle the vals that never used

(cherry picked from commit 7025dda)
Signed-off-by: Reynold Xin <[email protected]>
@asfgit asfgit closed this in 7025dda Apr 30, 2014
pwendell added a commit to pwendell/spark that referenced this pull request May 12, 2014
…e#565.

SPARK-1066: Add developer scripts to repository.

These are some developer scripts I've been maintaining in a separate public repo. This patch adds them to the Spark repository so they can evolve here and are clearly accessible to all committers.

I may do some small additional clean-up in this PR, but wanted to put them here in case others want to review. There are a few types of scripts here:

1. A tool to merge pull requests.
2. A script for packaging releases.
3. A script for auditing release candidates.

Author: Patrick Wendell <[email protected]>

== Merge branch commits ==

commit 5d5d331d01f6fd59c2eb830f652955119b012173
Author: Patrick Wendell <[email protected]>
Date:   Sat Feb 8 22:11:47 2014 -0800

    SPARK-1066: Add developer scripts to repository.
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
In XORShiftRandom.scala, use val "million" instead of constant "1e6.toInt".
Delete vals that never used in other files.

Author: WangTao <[email protected]>

Closes apache#565 from WangTaoTheTonic/master and squashes the following commits:

17cacfc [WangTao] Handle the unused assignment, method parameters and symbol inspected by Intellij IDEA
37b4090 [WangTao] Handle the vals that never used
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
RolatZhang pushed a commit to RolatZhang/spark that referenced this pull request Dec 16, 2022
RolatZhang pushed a commit to RolatZhang/spark that referenced this pull request Feb 24, 2023
…e#591)

* Revert "Revert "[SPARK-37600][BUILD] Upgrade to Hadoop 3.3.2" (apache#565)"

This reverts commit 197dc34.

* Revert "minor fix ut"

This reverts commit 6ef82b4.
RolatZhang pushed a commit to RolatZhang/spark that referenced this pull request Dec 8, 2023
RolatZhang pushed a commit to RolatZhang/spark that referenced this pull request Dec 8, 2023
…e#591)

* Revert "Revert "[SPARK-37600][BUILD] Upgrade to Hadoop 3.3.2" (apache#565)"

This reverts commit 197dc34.

* Revert "minor fix ut"

This reverts commit 6ef82b4.
turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants