commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130659 - /commons/sandbox/digester3/trunk/src/examples/api/addressbook/src/main/java/org/apache/commons/digester3/examples/api/addressbook/Person.java
Date Thu, 02 Jun 2011 17:11:05 GMT
Author: simonetripodi
Date: Thu Jun  2 17:11:04 2011
New Revision: 1130659

URL: http://svn.apache.org/viewvc?rev=1130659&view=rev
Log:
internal collection can be final

Modified:
    commons/sandbox/digester3/trunk/src/examples/api/addressbook/src/main/java/org/apache/commons/digester3/examples/api/addressbook/Person.java

Modified: commons/sandbox/digester3/trunk/src/examples/api/addressbook/src/main/java/org/apache/commons/digester3/examples/api/addressbook/Person.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/api/addressbook/src/main/java/org/apache/commons/digester3/examples/api/addressbook/Person.java?rev=1130659&r1=1130658&r2=1130659&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/api/addressbook/src/main/java/org/apache/commons/digester3/examples/api/addressbook/Person.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/api/addressbook/src/main/java/org/apache/commons/digester3/examples/api/addressbook/Person.java
Thu Jun  2 17:11:04 2011
@@ -34,9 +34,9 @@ public class Person
 
     private String name;
 
-    private HashMap<String, String> emails = new HashMap<String, String>();
+    private final HashMap<String, String> emails = new HashMap<String, String>();
 
-    private List<Address> addresses = new ArrayList<Address>();
+    private final List<Address> addresses = new ArrayList<Address>();
 
     /**
      * A unique id for this person. Note that the Digester automatically converts the id
to an integer.



Mime
View raw message