My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 23 attachment: RecordEnumerationImpl.java.patch (913 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: microemu-midp/src/main/java/org/microemu/util/RecordEnumerationImpl.java
===================================================================
--- microemu-midp/src/main/java/org/microemu/util/RecordEnumerationImpl.java (revision 2239)
+++ microemu-midp/src/main/java/org/microemu/util/RecordEnumerationImpl.java (working copy)
@@ -188,16 +188,16 @@
int recordId = 1;
int i = 0;
while (i < recordStoreImpl.getNumRecords()) {
+ recordId++;
+ i++;
try {
byte[] data = recordStoreImpl.getRecord(recordId);
- i++;
if (filter != null && !filter.matches(data)) {
continue;
}
enumerationRecords.add(new EnumerationRecord(recordId, data));
} catch (InvalidRecordIDException e) {
}
- recordId++;
}
} catch (RecordStoreException e) {
e.printStackTrace();
Powered by Google Project Hosting