juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [juneau] branch master updated: Fix compilation warnings.
Date Sat, 15 Dec 2018 14:38:56 GMT
This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new a94c68e  Fix compilation warnings.
a94c68e is described below

commit a94c68e9d9c6aa332adb42f909d14d69150c75be
Author: JamesBognar <jamesbognar@apache.org>
AuthorDate: Sat Dec 15 09:38:45 2018 -0500

    Fix compilation warnings.
---
 .../src/main/java/org/apache/juneau/examples/core/dto/DtoExample.java  | 3 ++-
 .../java/org/apache/juneau/examples/core/json/JsonSimpleExample.java   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/dto/DtoExample.java
b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/dto/DtoExample.java
index 724f171..44d9232 100644
--- a/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/dto/DtoExample.java
+++ b/juneau-examples/juneau-examples-core/src/main/java/org/apache/juneau/examples/core/dto/DtoExample.java
@@ -14,7 +14,8 @@ import static org.apache.juneau.dto.swagger.SwaggerBuilder.*;
 
 public class DtoExample {
 
-    public static void main(String[] args) throws Exception {
+    @SuppressWarnings("unused")
+	public static void main(String[] args) throws Exception {
 
         //Produces
         /**
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 19eca12..8f0f85a 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
@@ -19,7 +19,6 @@
 
 package org.apache.juneau.examples.core.json;
 
-import org.apache.juneau.dto.atom.Person;
 import org.apache.juneau.examples.core.pojo.Pojo;
 import org.apache.juneau.json.JsonParser;
 import org.apache.juneau.json.JsonSerializer;
@@ -38,6 +37,7 @@ public class JsonSimpleExample {
 	 * @param args
 	 * @throws Exception
 	 */
+	@SuppressWarnings({ "unused", "rawtypes" })
 	public static void main(String[] args) throws Exception{
 		// Juneau provides static constants with the most commonly used configurations
 		// Get a reference to a serializer - converting POJO to flat format


Mime
View raw message