Skip to content

Commit d1da1f5

Browse files
committed
Allow user to list projects without owner name
Change-Id: Ie03f0ca2e2e0c13335828073517d87f172215609
1 parent cd4d4f8 commit d1da1f5

File tree

1 file changed

+0
-8
lines changed
  • odps-sdk/odps-sdk-core/src/main/java/com/aliyun/odps

1 file changed

+0
-8
lines changed

odps-sdk/odps-sdk-core/src/main/java/com/aliyun/odps/Projects.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,21 +189,13 @@ private void updateProject(final String projectName, final Project.Status status
189189
*
190190
*/
191191
public Iterator<Project> iterator(String owner) {
192-
if (StringUtils.isNullOrEmpty(owner)) {
193-
throw new IllegalArgumentException("Owner cannot be null or empty.");
194-
}
195-
196192
return new ProjectListIterator(owner, null, null);
197193
}
198194

199195
/**
200196
* 获取 Project 列表的 iterable 接口
201197
*/
202198
public Iterable<Project> iterable(final String owner) {
203-
if (StringUtils.isNullOrEmpty(owner)) {
204-
throw new IllegalArgumentException("Owner cannot be null or empty.");
205-
}
206-
207199
return new Iterable<Project>() {
208200
@Override
209201
public Iterator<Project> iterator() {

0 commit comments

Comments
 (0)