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: BasicRestInfoProvider refactor.
Date Thu, 02 Aug 2018 20:21:25 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 79d718d  BasicRestInfoProvider refactor.
79d718d is described below

commit 79d718d9396652d4ce385f6fa2876f693cdcce3f
Author: JamesBognar <jamesbognar@apache.org>
AuthorDate: Thu Aug 2 16:21:11 2018 -0400

    BasicRestInfoProvider refactor.
---
 .../src/main/java/org/apache/juneau/rest/SwaggerGenerator.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/SwaggerGenerator.java
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/SwaggerGenerator.java
index ba83119..3170923 100644
--- a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/SwaggerGenerator.java
+++ b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/SwaggerGenerator.java
@@ -53,7 +53,7 @@ import org.apache.juneau.utils.*;
  * 	<li class='link'><a class="doclink" href="../../../../overview-summary.html#juneau-rest-server.Swagger">Overview
&gt; juneau-rest-server &gt; OPTIONS Pages</a>
  * </ul>
  */
-public class SwaggerGenerator {
+final class SwaggerGenerator {
 
 	private final RestRequest req;
 	private final VarResolverSession vr;
@@ -198,7 +198,7 @@ public class SwaggerGenerator {
 
 		String s = mb.findFirstString(locale, "tags");
 		if (s != null) {
-			for (ObjectMap m : parseListOrCdl(vr, s, "Messages/tags on class {0}", c).elements(ObjectMap.class))
{
+			for (ObjectMap m : parseListOrCdl(s, "Messages/tags on class {0}", c).elements(ObjectMap.class))
{
 				String name = m.getString("name");
 				if (name == null)
 					throw new SwaggerException(null, "Tag definition found without name in resource bundle
on class {0}", c) ;


Mime
View raw message