portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r553019 - /portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
Date Tue, 03 Jul 2007 23:29:29 GMT
Author: ate
Date: Tue Jul  3 16:29:28 2007
New Revision: 553019

URL: http://svn.apache.org/viewvc?view=rev&rev=553019
Log:
JS2-727: Appy Findbugs patches
- cleanup of dead code
See: http://issues.apache.org/jira/browse/JS2-727

Modified:
    portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java

Modified: portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java?view=diff&rev=553019&r1=553018&r2=553019
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
(original)
+++ portals/jetspeed-2/trunk/applications/demo/src/java/org/apache/jetspeed/demo/simple/PickANumberPortlet.java
Tue Jul  3 16:29:28 2007
@@ -140,17 +140,9 @@
         PortletSession session = request.getPortletSession();
         Long guessCount = null;
         Long targetValue = null;
-        Long lastGuess = null;
         
         // get the current value in the prefs
         long range = getHighRange(request);
-        // Get target value
-        lastGuess = (Long)session.getAttribute(LAST_GUESS_NAME, PortletSession.APPLICATION_SCOPE);
-        if (lastGuess == null)
-        {
-            lastGuess = new Long(0);
-            session.setAttribute(LAST_GUESS_NAME, guessCount, PortletSession.APPLICATION_SCOPE);
           
-        }
 
         // Get target value
 



---------------------------------------------------------------------
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