hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1790480 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/VersionInfo.java
Date Thu, 06 Apr 2017 22:59:15 GMT
Author: ggregory
Date: Thu Apr  6 22:59:14 2017
New Revision: 1790480

URL: http://svn.apache.org/viewvc?rev=1790480&view=rev
Log:
Reformat method org.apache.hc.core5.util.VersionInfo.loadVersionInfo(String, ClassLoader).

Modified:
    httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/VersionInfo.java

Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/VersionInfo.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/VersionInfo.java?rev=1790480&r1=1790479&r2=1790480&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/VersionInfo.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/VersionInfo.java
Thu Apr  6 22:59:14 2017
@@ -221,17 +221,15 @@ public class VersionInfo {
      * @return  the version information for the argument package, or
      *          {@code null} if not available
      */
-    public static VersionInfo loadVersionInfo(final String pckg,
-                                              final ClassLoader clsldr) {
+    public static VersionInfo loadVersionInfo(final String pckg, final ClassLoader clsldr)
{
         Args.notNull(pckg, "Package identifier");
         final ClassLoader cl = clsldr != null ? clsldr : Thread.currentThread().getContextClassLoader();
 
         Properties vip = null; // version info properties, if available
         try {
-            // org.apache.http      becomes
+            // org.apache.http becomes
             // org/apache/http/version.properties
-            final InputStream is = cl.getResourceAsStream
-                (pckg.replace('.', '/') + "/" + VERSION_PROPERTY_FILE);
+            final InputStream is = cl.getResourceAsStream(pckg.replace('.', '/') + "/" +
VERSION_PROPERTY_FILE);
             if (is != null) {
                 try {
                     final Properties props = new Properties();
@@ -253,7 +251,6 @@ public class VersionInfo {
         return result;
     }
 
-
     /**
      * Instantiates version information from properties.
      *



Mime
View raw message