tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1743116 - /tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java
Date Tue, 10 May 2016 07:41:47 GMT
Author: markt
Date: Tue May 10 07:41:47 2016
New Revision: 1743116

URL: http://svn.apache.org/viewvc?rev=1743116&view=rev
Log:
Suppress IDE warning

Modified:
    tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java

Modified: tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java?rev=1743116&r1=1743115&r2=1743116&view=diff
==============================================================================
--- tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java (original)
+++ tomcat/tc8.5.x/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java Tue May 10
07:41:47 2016
@@ -182,7 +182,11 @@ class TagLibraryInfoImpl extends TagLibr
             }
 
             // Populate the TagLibraryInfo attributes
-            this.jspversion = taglibXml.getJspVersion();
+            // Never null. jspError always throws an Exception
+            // Slightly convoluted so the @SuppressWarnings has minimal scope
+            @SuppressWarnings("null")
+            String v = taglibXml.getJspVersion();
+            this.jspversion = v;
             this.tlibversion = taglibXml.getTlibVersion();
             this.shortname = taglibXml.getShortName();
             this.urn = taglibXml.getUri();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message