[hg] main-silver: housekeeping

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: housekeeping
  • Date: Mon, 08 Apr 2013 12:45:17 -0700

changeset 73e63f749481 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/73e63f749481
description:
        housekeeping

diffstat:

 bugtracking/src/org/netbeans/modules/bugtracking/cache/IssueCache.java |  11 
+++------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (49 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/cache/IssueCache.java 
b/bugtracking/src/org/netbeans/modules/bugtracking/cache/IssueCache.java
--- a/bugtracking/src/org/netbeans/modules/bugtracking/cache/IssueCache.java
+++ b/bugtracking/src/org/netbeans/modules/bugtracking/cache/IssueCache.java
@@ -118,7 +118,7 @@
      * Provides access to the particular {@link Issue} implementations
      * kept in {@link IssueCache}
      *
-     * @param <T>
+     * @param <I>
      */
     public interface IssueAccessor<I> {
 
@@ -182,10 +182,6 @@
         IssueStorage.getInstance().cleanup(IssueCache.this.nameSpace);
     }
 
-    IssueAccessor<I> getIssueAccessor() {
-        return issueAccessor;
-    }
-
     /**
      * Sets new data into the given issue
      *
@@ -209,7 +205,7 @@
                 readIssue(entry);
                 Map<String, String> attr = entry.getSeenAttributes();
                 if(attr == null || attr.isEmpty()) {
-                    // firsttimer
+                    // first timer -> this means the issue was loaded for 
the first time in the IDE 
                     if(referenceTime >= 
issueAccessor.getLastModified(entry.issue)) {
                         setSeen(id, true);
                     } else if(referenceTime >= 
issueAccessor.getCreated(entry.issue)) {
@@ -281,6 +277,7 @@
                 if(entry.lastUnseenStatus != Status.ISSUE_STATUS_UNKNOWN) {
                     entry.status = entry.lastUnseenStatus;
                     if(entry.seenAttributes == null) {
+                        // no need to set the attributes once they have been 
set already
                         entry.seenAttributes = 
issueAccessor.getAttributes(entry.issue);
                     }
                 }
@@ -398,7 +395,7 @@
     /**
      * Returns the id-s stored for a query
      * @param name query name
-     * @return list od id-s
+     * @return list of id-s
      */
     public List<String> readQueryIssues(String name) {
         synchronized(CACHE_LOCK) {

[hg] main-silver: housekeeping

Tomas Stupka 04/08/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close