Skip to content

Commit 0323cc8

Browse files
author
emmanue1
committed
Cleanup
1 parent b147bb8 commit 0323cc8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

services/src/main/java/org/jd/gui/service/preferencespanel/MavenOrgSourceLoaderPreferencesProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class MavenOrgSourceLoaderPreferencesProvider extends JPanel implements P
2323
public static final String FILTERS = "MavenOrgSourceLoaderPreferencesProvider.filters";
2424

2525
public static final String DEFAULT_FILTERS_VALUE =
26-
"+org +com.google +com.ibm +com.jcraft +com.springsource +com.sun -com +java +javax +sun +sunw " +
26+
"+org +com.google +com.springsource +com.sun -com +java +javax +sun +sunw " +
2727
"+spring +springframework +springmodules +tomcat +maven";
2828

2929
protected static final Pattern CONTROL_PATTERN = Pattern.compile("([+-][a-zA-Z_0-9$_.]+(\\s+[+-][a-zA-Z_0-9$_.]+)*)?\\s*");

services/src/main/java/org/jd/gui/view/component/DynamicPage.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class DynamicPage
3232
protected Container.Entry entry;
3333
protected TypePage page;
3434
protected URI lastOpenedUri;
35-
protected Collection<Future<Indexes>> collectionOfFutureIndexes;
35+
protected Collection<Future<Indexes>> lastCollectionOfFutureIndexes;
3636

3737
public DynamicPage(API api, Container.Entry entry) {
3838
super(new BorderLayout());
@@ -75,8 +75,7 @@ public DynamicPage(API api, Container.Entry entry) {
7575

7676
// --- IndexesChangeListener --- //
7777
@Override public void indexesChanged(Collection<Future<Indexes>> collectionOfFutureIndexes) {
78-
this.collectionOfFutureIndexes = collectionOfFutureIndexes;
79-
page.indexesChanged(collectionOfFutureIndexes);
78+
page.indexesChanged(lastCollectionOfFutureIndexes = collectionOfFutureIndexes);
8079
}
8180

8281
// --- LineNumberNavigable --- //
@@ -107,8 +106,8 @@ public DynamicPage(API api, Container.Entry entry) {
107106
page.openUri(lastOpenedUri);
108107
}
109108

110-
if (collectionOfFutureIndexes != null) {
111-
page.indexesChanged(collectionOfFutureIndexes);
109+
if (lastCollectionOfFutureIndexes != null) {
110+
page.indexesChanged(lastCollectionOfFutureIndexes);
112111
}
113112
});
114113
}

0 commit comments

Comments
 (0)