portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwat...@apache.org
Subject svn commit: r801496 - /portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java
Date Thu, 06 Aug 2009 02:14:15 GMT
Author: rwatler
Date: Thu Aug  6 02:14:14 2009
New Revision: 801496

URL: http://svn.apache.org/viewvc?rev=801496&view=rev
Log:
cleanup unnecessary duplicate data member already available in base class implementation

Modified:
    portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java

Modified: portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java?rev=801496&r1=801495&r2=801496&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java
(original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java
Thu Aug  6 02:14:14 2009
@@ -54,8 +54,6 @@
     /** Logger. */
     private static final Log log = LogFactory.getLog(PreferencesImpl.class);
 
-    PreferencesImpl parent;
-    
     PreferencesProviderWrapper ppw;
 
     String nodeName;
@@ -78,7 +76,6 @@
     PreferencesImpl(PreferencesImpl parent, PreferencesProviderWrapper ppw, String nodeName,
int nodeType) throws IllegalStateException
     {
         super(parent, nodeName);
-        this.parent = parent;
         this.ppw = ppw;
         this.nodeName = nodeName;
         this.nodeType = nodeType;
@@ -284,9 +281,10 @@
         {
             try
             {
-                if (parent != null)
+                Preferences parent = parent();
+                if ((parent != null) && (parent instanceof PreferencesImpl))
                 {
-                    node = ppw.provider().createNode(parent.getNode(), nodeName, nodeType,
absolutePath());
+                    node = ppw.provider().createNode(((PreferencesImpl)parent).getNode(),
nodeName, nodeType, absolutePath());
                 }
                 else
                 {



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message