velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1753472 - /velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java
Date Wed, 20 Jul 2016 09:32:32 GMT
Author: cbrisson
Date: Wed Jul 20 09:32:32 2016
New Revision: 1753472

URL: http://svn.apache.org/viewvc?rev=1753472&view=rev
Log:
[engine] fix compilation warning (unreachable catch clause)

Modified:
    velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java

Modified: velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java?rev=1753472&r1=1753471&r2=1753472&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/resource/loader/StringResourceLoader.java
Wed Jul 20 09:32:32 2016
@@ -387,19 +387,6 @@ public class StringResourceLoader extend
             }
             throw new VelocityException("Could not convert String using encoding " + resource.getEncoding(),
ue);
         }
-        catch(IOException ioe)
-        {
-            if (rawStream != null)
-            {
-                try
-                {
-                    rawStream.close();
-                }
-                catch (IOException e) {}
-            }
-            throw new VelocityException("Exception while loading string resource", ioe);
-
-        }
     }
 
     /**



Mime
View raw message