Skip to content

Commit

Permalink
MIME4J-215: Make MboxIterator compatible with target.jdk=1.5
Browse files Browse the repository at this point in the history
Eclipse's .settings, .project and .classpath added to svn:ignore

git-svn-id: https://svn.apache.org/repos/asf/james/mime4j/trunk@1353129 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Gazda committed Jun 23, 2012
1 parent 16eb70f commit 0ddf3aa
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -110,19 +110,16 @@ private void saveFindPositions(Matcher lineMatcher) {
findEnd = lineMatcher.end();
}

@Override
public Iterator<CharBufferWrapper> iterator() {
return new MessageIterator();
}

@Override
public void close() throws IOException {
theFile.close();
}

private class MessageIterator implements Iterator<CharBufferWrapper> {

@Override
public boolean hasNext() {
if (!fromLineFound) {
try {
Expand All @@ -140,7 +137,6 @@ public boolean hasNext() {
*
* @return CharBuffer instance
*/
@Override
public CharBufferWrapper next() {
final CharBuffer message;
fromLineFound = fromLineMathcer.find();
Expand Down Expand Up @@ -188,7 +184,6 @@ public CharBufferWrapper next() {
return new CharBufferWrapper(message);
}

@Override
public void remove() {
throw new UnsupportedOperationException("Not supported yet.");
}
Expand Down

0 comments on commit 0ddf3aa

Please sign in to comment.