Skip to content
Snippets Groups Projects
Commit 39f85e03 authored by Michael Armbrust's avatar Michael Armbrust Committed by Reynold Xin
Browse files

[SQL] SPARK-1571 Mistake in java example code

Author: Michael Armbrust <michael@databricks.com>

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

644fedd [Michael Armbrust] Bean methods must be public.
parent 8e950813
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
......@@ -34,19 +34,19 @@ public class JavaSparkSQL {
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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment