hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject svn commit: r1659179 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/VersionInfo.java
Date Thu, 12 Feb 2015 09:31:11 GMT
Author: michaelo
Date: Thu Feb 12 09:31:11 2015
New Revision: 1659179

URL: http://svn.apache.org/r1659179
Log:
HTTPCORE-395: VersionInfo#getUserAgent reports incorrect Java version

Format if clause according to project convention

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/VersionInfo.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/VersionInfo.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/VersionInfo.java?rev=1659179&r1=1659178&r2=1659179&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/VersionInfo.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/VersionInfo.java
Thu Feb 12 09:31:11 2015
@@ -322,8 +322,9 @@ public class VersionInfo {
         final String javaVersion = System.getProperty("java.version");
 
         String nameAndRelease = name;
-        if (!UNAVAILABLE.equals(release))
+        if (!UNAVAILABLE.equals(release)) {
             nameAndRelease += "/" + release;
+        }
 
         return String.format("%s (Java/%s)", nameAndRelease, javaVersion);
     }



Mime
View raw message