Skip to content

Commit 6befb0a

Browse files
committed
Minor fixes for Introduction to Apache CXF
1 parent 800da1b commit 6befb0a

7 files changed

Lines changed: 10 additions & 13 deletions

File tree

‎apache-cxf/cxf-introduction/pom.xml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
</dependencies>
2727
<build>
2828
<plugins>
29-
<plugin>
30-
<artifactId>maven-compiler-plugin</artifactId>
31-
</plugin>
3229
<plugin>
3330
<groupId>org.codehaus.mojo</groupId>
3431
<artifactId>exec-maven-plugin</artifactId>

‎apache-cxf/cxf-introduction/src/main/java/com/baeldung/cxf/introduction/Baeldung.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
@WebService
99
public interface Baeldung {
10-
String hello(String name);
10+
public String hello(String name);
1111

12-
String helloStudent(Student student);
12+
public String helloStudent(Student student);
1313

1414
@XmlJavaTypeAdapter(StudentMapAdapter.class)
15-
Map<Integer, Student> getStudents();
15+
public Map<Integer, Student> getStudents();
1616
}

‎apache-cxf/cxf-introduction/src/main/java/com/baeldung/cxf/introduction/BaeldungImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@WebService(endpointInterface = "com.baeldung.cxf.introduction.Baeldung")
99
public class BaeldungImpl implements Baeldung {
10-
Map<Integer, Student> students = new LinkedHashMap<Integer, Student>();
10+
private Map<Integer, Student> students = new LinkedHashMap<Integer, Student>();
1111

1212
public String hello(String name) {
1313
return "Hello " + name;

‎apache-cxf/cxf-introduction/src/main/java/com/baeldung/cxf/introduction/Student.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
@XmlJavaTypeAdapter(StudentAdapter.class)
66
public interface Student {
7-
String getName();
7+
public String getName();
88
}

‎apache-cxf/cxf-introduction/src/main/java/com/baeldung/cxf/introduction/StudentImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@XmlType(name = "Student")
66
public class StudentImpl implements Student {
7-
String name;
7+
private String name;
88

99
StudentImpl() {
1010
}

‎apache-cxf/cxf-introduction/src/main/java/com/baeldung/cxf/introduction/StudentMap.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public List<StudentEntry> getEntries() {
1616
}
1717

1818
@XmlType(name = "StudentEntry")
19-
static class StudentEntry {
19+
public static class StudentEntry {
2020
private Integer id;
2121
private Student student;
2222

‎apache-cxf/cxf-introduction/src/test/java/com/baeldung/cxf/introduction/StudentTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public class StudentTest {
1919
private static QName SERVICE_NAME = new QName("http://introduction.cxf.baeldung.com/", "Baeldung");
2020
private static QName PORT_NAME = new QName("http://introduction.cxf.baeldung.com/", "BaeldungPort");
2121

22-
Service service;
23-
Baeldung baeldungProxy;
24-
Baeldung baeldungImpl;
22+
private Service service;
23+
private Baeldung baeldungProxy;
24+
private Baeldung baeldungImpl;
2525

2626
{
2727
service = Service.create(SERVICE_NAME);

0 commit comments

Comments
 (0)