[Fb-contrib-commit] fb-contrib/src/com/mebigfatguy/fbcontrib/detect UnrelatedCollectionContents.java
Brought to you by:
dbrosius
|
From: Dave B. <dbr...@us...> - 2006-03-13 07:51:00
|
Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24430/src/com/mebigfatguy/fbcontrib/detect Modified Files: UnrelatedCollectionContents.java Log Message: simple cleanups Index: UnrelatedCollectionContents.java =================================================================== RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UnrelatedCollectionContents.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- UnrelatedCollectionContents.java 13 Mar 2006 06:13:42 -0000 1.16 +++ UnrelatedCollectionContents.java 13 Mar 2006 07:50:54 -0000 1.17 @@ -163,15 +163,13 @@ commonSupers = new HashSet<String>(); localCollections.put(new Integer(reg), commonSupers); addNewItem(commonSupers, addItm); - Integer scopeEnd = RegisterUtils.getLocalVariableEndRange(getMethod().getLocalVariableTable(), reg, getNextPC()); - if (scopeEnd != null) { - Set<Integer> regs = localScopeEnds.get(scopeEnd); - if (regs == null) { - regs = new HashSet<Integer>(); - localScopeEnds.put(scopeEnd, regs); - } - regs.add(new Integer(reg)); - } + Integer scopeEnd = new Integer(RegisterUtils.getLocalVariableEndRange(getMethod().getLocalVariableTable(), reg, getNextPC())); + Set<Integer> regs = localScopeEnds.get(scopeEnd); + if (regs == null) { + regs = new HashSet<Integer>(); + localScopeEnds.put(scopeEnd, regs); + } + regs.add(new Integer(reg)); } } else { FieldAnnotation fa = colItm.getField(); |