You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2010/05/22 19:54:13 UTC
svn commit: r947318 - in
/camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example:
model/Report.java service/Generator.java service/Reporting.java
Author: hadrian
Date: Sat May 22 17:54:13 2010
New Revision: 947318
URL: http://svn.apache.org/viewvc?rev=947318&view=rev
Log:
More checkstyle fixes
Modified:
camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/model/Report.java
camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Generator.java
camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Reporting.java
Modified: camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/model/Report.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/model/Report.java?rev=947318&r1=947317&r2=947318&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/model/Report.java (original)
+++ camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/model/Report.java Sat May 22 17:54:13 2010
@@ -18,76 +18,79 @@ package org.apache.camel.example.model;
import java.io.Serializable;
-import sun.tools.tree.ThisExpression;
-
public class Report implements Serializable {
- private static final long serialVersionUID = 1L;
-
- private Integer id;
- private String title;
- private String content;
- private String reply;
-
- /**
- * @return the id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * @return the title
- */
- public String getTitle() {
- return title;
- }
- /**
- * @param title the title to set
- */
- public void setTitle(String title) {
- this.title = title;
- }
- /**
- * @return the content
- */
- public String getContent() {
- return content;
- }
- /**
- * @param content the content to set
- */
- public void setContent(String content) {
- this.content = content;
- }
- /**
- * @return the reply
- */
- public String getReply() {
- return reply;
- }
- /**
- * @param reply the reply to set
- */
- public void setReply(String reply) {
- this.reply = reply;
- }
-
- public String toString() {
- StringBuilder result = new StringBuilder();
- result.append(">> ***********************************************" + "\n");
- result.append(">> Report id : " + this.id + "\n");
- result.append(">> Report title : " + this.title+ "\n");
- result.append(">> Report content : " + this.content+ "\n");
- result.append(">> Report reply : " + this.reply+ "\n");
- result.append(">> ***********************************************" + "\n");
- return result.toString();
-
- }
+ private static final long serialVersionUID = 1L;
+
+ private Integer id;
+ private String title;
+ private String content;
+ private String reply;
+
+ /**
+ * @return the id
+ */
+ public Integer getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the title
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * @param title the title to set
+ */
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ /**
+ * @return the content
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * @param content the content to set
+ */
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ /**
+ * @return the reply
+ */
+ public String getReply() {
+ return reply;
+ }
+
+ /**
+ * @param reply the reply to set
+ */
+ public void setReply(String reply) {
+ this.reply = reply;
+ }
+ public String toString() {
+ StringBuilder result = new StringBuilder();
+ result.append(">> ***********************************************" + "\n");
+ result.append(">> Report id : " + this.id + "\n");
+ result.append(">> Report title : " + this.title + "\n");
+ result.append(">> Report content : " + this.content + "\n");
+ result.append(">> Report reply : " + this.reply + "\n");
+ result.append(">> ***********************************************" + "\n");
+ return result.toString();
+ }
}
Modified: camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Generator.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Generator.java?rev=947318&r1=947317&r2=947318&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Generator.java (original)
+++ camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Generator.java Sat May 22 17:54:13 2010
@@ -19,23 +19,20 @@ package org.apache.camel.example.service
import org.apache.camel.example.model.Report;
public class Generator {
-
- private static int count = 0;
- public Report createReport() throws Exception {
-
- int counter = ++count;
-
- // Create a Report object
- Report report = new Report();
- report.setId(counter);
- report.setTitle("Report Title : " + counter);
- report.setContent("This is a dummy report");
-
- // Add the report to the Body
- return report;
- }
-
-
+ private static int count;
+ public Report createReport() throws Exception {
+
+ int counter = ++count;
+
+ // Create a Report object
+ Report report = new Report();
+ report.setId(counter);
+ report.setTitle("Report Title : " + counter);
+ report.setContent("This is a dummy report");
+
+ // Add the report to the Body
+ return report;
+ }
}
Modified: camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Reporting.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Reporting.java?rev=947318&r1=947317&r2=947318&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Reporting.java (original)
+++ camel/trunk/examples/camel-example-loadbalancing-mina/src/main/java/org/apache/camel/example/service/Reporting.java Sat May 22 17:54:13 2010
@@ -23,20 +23,16 @@ import org.apache.camel.Processor;
import org.apache.camel.example.model.Report;
public class Reporting implements Processor {
-
- private static Integer count;
- public void process(Exchange exchange) throws Exception {
- }
+ private static Integer count;
- public Report updateReport(@Body Report report, @Header("minaServer") String name) throws Exception {
-
- report.setReply("Report updated from MINA server running on : " + name);
-
- // send the report updated
- return report;
- }
-
-
+ public void process(Exchange exchange) throws Exception {
+ }
+ public Report updateReport(@Body Report report, @Header("minaServer") String name) throws Exception {
+ report.setReply("Report updated from MINA server running on : " + name);
+
+ // send the report updated
+ return report;
+ }
}