jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kev Jackson <foamd...@gmail.com>
Subject [patch] BSFManager see contents...
Date Thu, 31 Aug 2006 08:06:54 GMT
Hi,

A small amount of refactoring to conform to the Java coding conventions:
- } catch () {
- use Iterator interface instead of get(i)
- use :
  for(Enumeration e = vector.enumeration(); e.hasMoreElements();) 

instead of
  Enumeration e = vector.enumeration();
  while(e.hasMoreElements()) {
[reduces scope of enumeration variable to the site where it is used]
- remove extraneous newlines
- don't create a StringTokenizer to extract to strings, use substring +
indexOf

patch file included

Kev

Mime
View raw message