Skip to content

Commit

Permalink
[SPARK-30192][SQL][FOLLOWUP] Rename SINGLETON to INSTANCE
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

This PR renames a variable `SINGLETON` to `INSTANCE`.

### Why are the changes needed?

This is a minor change for consistency with the other parts.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

Pass the existing tests.

Closes #27409 from dongjoon-hyun/SPARK-30192.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
  • Loading branch information
dongjoon-hyun committed Jan 31, 2020
1 parent 1cd19ad commit 05be81d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public int hashCode() {
interface ColumnPosition {

static ColumnPosition first() {
return First.SINGLETON;
return First.INSTANCE;
}

static ColumnPosition after(String column) {
Expand All @@ -312,7 +312,7 @@ static ColumnPosition after(String column) {
* be the first one within the struct.
*/
final class First implements ColumnPosition {
private static final First SINGLETON = new First();
private static final First INSTANCE = new First();

private First() {}

Expand Down

0 comments on commit 05be81d

Please sign in to comment.