Ignore:
Timestamp:
02/19/13 09:41:27 (11 years ago)
Author:
pharms
Message:
  • prevent logging of the same GUI elements several times
  • improved efficiency of hash code calculation
  • improved efficiency of reuse of GUI elements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlServer.java

    r1075 r1089  
    3535     
    3636    /** 
     37     * the hash code of this document 
     38     */ 
     39    private int hashCode; 
     40     
     41    /** 
    3742     * <p> 
    3843     * instantiates a new server element 
     
    5762        } 
    5863 
     64        this.hashCode = this.name.hashCode() + this.port; 
    5965    } 
    6066 
     
    113119    @Override 
    114120    public int hashCode() { 
    115         return name.hashCode() + port; 
     121        return hashCode; 
    116122    } 
    117123 
Note: See TracChangeset for help on using the changeset viewer.