Skip to content

Commit 824dde0

Browse files
committed
fixes #837 PropertyTokenizer is not Iterable.
1 parent 71ebfc5 commit 824dde0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main/java/org/apache/ibatis/reflection/property/PropertyTokenizer.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2015 the original author or authors.
2+
* Copyright 2009-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
/**
2121
* @author Clinton Begin
2222
*/
23-
public class PropertyTokenizer implements Iterable<PropertyTokenizer>, Iterator<PropertyTokenizer> {
23+
public class PropertyTokenizer implements Iterator<PropertyTokenizer> {
2424
private String name;
2525
private String indexedName;
2626
private String index;
@@ -73,9 +73,4 @@ public PropertyTokenizer next() {
7373
public void remove() {
7474
throw new UnsupportedOperationException("Remove is not supported, as it has no meaning in the context of properties.");
7575
}
76-
77-
@Override
78-
public Iterator<PropertyTokenizer> iterator() {
79-
return this;
80-
}
8176
}

0 commit comments

Comments
 (0)