FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Oops! This revision actually contains the bug fix mentioned in the pr… · chmodawk/drjava@dcb0647 · GitHub

Repository navigation

Commit dcb0647

Browse files
committed
Oops! This revision actually contains the bug fix mentioned in the previous commit and nothing else.
The following file was modified: modified: src/edu/rice/cs/drjava/model/definitions/DefinitionsDocument.java
1 parent 385f969 commit dcb0647

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocument.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,10 +1204,11 @@ public WeakHashMap<WrappedPosition, Integer> getWrappedPositionOffsets() {
12041204
WeakHashMap<WrappedPosition, Integer> ret = new WeakHashMap<WrappedPosition, Integer>(_wrappedPosList.size());
12051205

12061206
for (WeakReference<WrappedPosition> wr: _wrappedPosList) {
1207-
if (wr.get() != null) {
1207+
WrappedPosition ref = wr.get();
1208+
if (ref != null) {
12081209
// hasn't been garbage-collected yet
12091210
newList.add(wr);
1210-
ret.put(wr.get(), wr.get().getOffset());
1211+
ret.put(ref, ref.getOffset());
12111212
}
12121213
}
12131214
_wrappedPosList.clear();

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL