Match #1: /freecol-git/src/net/sf/freecol/client/gui/option/FreeColActionUI.java: line 111-115 /java/2755752-2755788-1: line 3-6 //Draw on the BufferedImage by calling BufferedImage.createGraphics to obtain a Graphics2D object, then perform some drawing. < BufferedImage bi = new BufferedImage(9, 9, BufferedImage.TYPE_INT_ARGB); < Graphics2D g = bi.createGraphics(); < /*g.fillRect(0, 0, 9, 9);*/ < g.setColor(Color.BLACK); < g.drawLine(1, 0, 8, 7); --- >BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB); > >Graphics2D g = img.createGraphics(); >g.drawLine(0, 0, 10, 10); // draw a line. Match #2: /freecol-git/src/net/sf/freecol/common/util/Xml.java: line 153-156 /java/10497946-10498256-1: line 3-6 //If the floating point values are stored as text within the String you can simply convert them number by number. < float[] output = new float[array.length]; < for (int i = 0; i < array.length ; i++) { < output[i] = Float.parseFloat(array[i]); < } --- >float[] floatValues = new float[floats.length] >for (int i=0; i< floats.length; i++) { > floatValues[i] = Float.parseFloat(floats[i]); >}