juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] jamesbognar closed pull request #29: Modifying comments on core samples
Date Sun, 09 Dec 2018 14:35:49 GMT
jamesbognar closed pull request #29: Modifying comments on core samples 
URL: https://github.com/apache/juneau/pull/29
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonComplexExample.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonComplexExample.java
index 1a4c17e7b..63a4015bb 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonComplexExample.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonComplexExample.java
@@ -4,19 +4,17 @@
 import org.apache.juneau.json.JsonParser;
 import org.apache.juneau.json.JsonSerializer;
 
-import java.io.ByteArrayOutputStream;
-import java.io.PrintStream;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 
 /**
- * TODO
+ * Sample class which shows the complex usage of JsonSerializer.
  */
 public class JsonComplexExample {
     /**
-     * TODO
-     *
+     * Serializing PojoComplex bean into Json type
+     * and Deserialize back to PojoComplex instance type.
      * @param args
      * @throws Exception
      */
diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonSimpleExample.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonSimpleExample.java
index 107054069..be90efd12 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonSimpleExample.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/json/JsonSimpleExample.java
@@ -29,8 +29,8 @@
 public class JsonSimpleExample {
 
 	/**
-	 * TODO
-	 *
+	 * Serializing Pojo bean into Json format
+     * and Deserialize back to Pojo instance type.
 	 * @param args
 	 * @throws Exception
 	 */
diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/Pojo.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/Pojo.java
index 46e9308ad..cc6def81e 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/Pojo.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/Pojo.java
@@ -22,7 +22,7 @@
 import org.apache.juneau.annotation.BeanConstructor;
 
 /**
- * TODO
+ * Sample pojo class.
  */
 public class Pojo {
 	private final String id;
diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/PojoComplex.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/PojoComplex.java
index 5beb24d0c..051a53104 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/PojoComplex.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/pojo/PojoComplex.java
@@ -17,8 +17,7 @@
 import org.apache.juneau.annotation.*;
 
 /**
- * TODO
- * 
+ * Complex Pojo class.
  */
 public class PojoComplex {
 
diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfComplexExample.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfComplexExample.java
index 3cfb0923f..9deebabcb 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfComplexExample.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfComplexExample.java
@@ -9,10 +9,13 @@
 import java.util.HashMap;
 import java.util.List;
 
+/**
+ * Sample class which shows the complex usage of RdfXmlSerializer.
+ */
 public class RdfComplexExample {
 
     /**
-     * TODO
+     * Serializing PojoComplex bean into RDF XML format.
      *
      * @param args
      * @throws Exception
diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfExample.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfExample.java
index 8cc031d4a..2838cf1c1 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfExample.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/rdf/RdfExample.java
@@ -23,13 +23,12 @@
 import org.apache.juneau.jena.*;
 
 /**
- * TODO
+ *	Sample class which shows the simple usage of RdfXmlSerializer.
  */
 public class RdfExample {
 
 	/**
-	 * TODO
-	 *
+	 * Serializing Pojo bean into RDF XML format.
 	 * @param args
 	 * @throws Exception
 	 */
diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlComplexExample.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlComplexExample.java
index ea58e7489..ebd2bc448 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlComplexExample.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlComplexExample.java
@@ -20,13 +20,12 @@
 import org.apache.juneau.xml.*;
 
 /**
- * TODO
- * 
+ * Sample class which shows the complex usage of XmlSerializer.
  */
 public class XmlComplexExample {
 	/**
-	 * TODO
-	 * 
+	 * Serializing PojoComplex bean into human readable XML
+	 * and Deserialize back to PojoComplex instance type.
 	 * @param args
 	 * @throws SerializeException 
 	 * @throws ParseException 
diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlSimpleExample.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlSimpleExample.java
index cb2df87e0..59a401cb9 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlSimpleExample.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/xml/XmlSimpleExample.java
@@ -12,12 +12,12 @@
 
 
 /**
- * TODO
+ * Sample class which shows the simple usage of XmlSerializer.
  */
 public class XmlSimpleExample {
     /**
-     * TODO
-     *
+     * Serializing SimplePojo bean into human readable XML
+     * and Deserialize back to Pojo instance type.
      * @param args
      * @throws SerializeException
      * @throws ParseException
@@ -31,7 +31,7 @@ public static void main(String[] args) throws SerializeException, ParseException
         String serial = XmlSerializer.DEFAULT_SQ_READABLE.serialize(pojo);
         System.out.println(serial);
 
-        // Deserialize back to PojoComplex instance
+        // Deserialize back to Pojo instance
         Pojo obj = XmlParser.DEFAULT.parse(serial, Pojo.class);
 
         assert obj.getId().equals(pojo.getId());


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message