Skip to content

Commit

Permalink
[SQL] SPARK-1571 Mistake in java example code
Browse files Browse the repository at this point in the history
Author: Michael Armbrust <[email protected]>

Closes apache#496 from marmbrus/javaBeanBug and squashes the following commits:

644fedd [Michael Armbrust] Bean methods must be public.
  • Loading branch information
marmbrus authored and rxin committed Apr 23, 2014
1 parent 8e95081 commit 39f85e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/sql-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,19 @@ public static class Person implements Serializable {
private String name;
private int age;

String getName() {
public String getName() {
return name;
}

void setName(String name) {
public void setName(String name) {
this.name = name;
}

int getAge() {
public int getAge() {
return age;
}

void setAge(int age) {
public void setAge(int age) {
this.age = age;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ public static class Person implements Serializable {
private String name;
private int age;

String getName() {
public String getName() {
return name;
}

void setName(String name) {
public void setName(String name) {
this.name = name;
}

int getAge() {
public int getAge() {
return age;
}

void setAge(int age) {
public void setAge(int age) {
this.age = age;
}
}
Expand Down

0 comments on commit 39f85e0

Please sign in to comment.