Update of /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10990/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
ControlledMoveTool.java
Log Message:
some generics on slidemap method
Index: ControlledMoveTool.java
===================================================================
RCS file: /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool/ControlledMoveTool.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ControlledMoveTool.java 19 Feb 2007 15:50:21 -0000 1.8
--- ControlledMoveTool.java 27 Sep 2007 10:40:38 -0000 1.9
***************
*** 151,159 ****
* @return the map, or null if none could be found.
*/
! private Map createSlideMap(Surface surface) {
Collection verts = surface.getVertices();
Iterator it = verts.iterator();
boolean bound = false;
! Map map = new HashMap();
while (it.hasNext() && !bound) {
Vertex vertex = (Vertex)it.next();
--- 151,159 ----
* @return the map, or null if none could be found.
*/
! private Map<Vertex, Vertex> createSlideMap(Surface surface) {
Collection verts = surface.getVertices();
Iterator it = verts.iterator();
boolean bound = false;
! Map<Vertex, Vertex> map = new HashMap<Vertex, Vertex>();
while (it.hasNext() && !bound) {
Vertex vertex = (Vertex)it.next();
***************
*** 176,180 ****
it = holes.iterator();
while (it.hasNext() && !bound) {
! Map holeMap = createSlideMap((Surface)it.next());
if (holeMap != null) {
map.putAll(holeMap);
--- 176,180 ----
it = holes.iterator();
while (it.hasNext() && !bound) {
! Map<Vertex, Vertex> holeMap = createSlideMap((Surface)it.next());
if (holeMap != null) {
map.putAll(holeMap);
|