logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396246 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/net/DatagramOutputStream.java
Date Tue, 09 Oct 2012 19:53:07 GMT
Author: ggregory
Date: Tue Oct  9 19:53:07 2012
New Revision: 1396246

URL: http://svn.apache.org/viewvc?rev=1396246&view=rev
Log:
Make ivars final.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/net/DatagramOutputStream.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/net/DatagramOutputStream.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/net/DatagramOutputStream.java?rev=1396246&r1=1396245&r2=1396246&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/net/DatagramOutputStream.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/net/DatagramOutputStream.java
Tue Oct  9 19:53:07 2012
@@ -43,8 +43,8 @@ public class DatagramOutputStream extend
     private static final int SHIFT_3 = 24;
 
     private DatagramSocket ds;
-    private InetAddress address;
-    private int port;
+    private final InetAddress address;
+    private final int port;
 
     private byte[] data;
 



Mime
View raw message