Return a new collection without any inner class names
( Collection col )
| 549 | Return a new collection without any inner class names |
| 550 | */ |
| 551 | public static Collection removeInnerClassNames( Collection col ) { |
| 552 | List list = new ArrayList(); |
| 553 | list.addAll(col); |
| 554 | Iterator it = list.iterator(); |
| 555 | while(it.hasNext()) { |
| 556 | String name =(String)it.next(); |
| 557 | if (name.indexOf("$") != -1 ) |
| 558 | it.remove(); |
| 559 | } |
| 560 | return list; |
| 561 | } |
| 562 | |
| 563 | /** |
| 564 | The user classpath from system property |
no test coverage detected