Match #1: /src/megamek/client/ui/swing/TurretFacingDialog.java: line 144-146 /java/665406-665428-2: line 3-7 //To convert Image to BufferedImage. < BufferedImage toDraw = new BufferedImage(84, 72, BufferedImage.TYPE_INT_ARGB); < Graphics2D g2 = toDraw.createGraphics(); < g2.drawImage(hexImage, 0, 0, null); --- >BufferedImage dest = new BufferedImage( > imageWidth, imageHeight, > BufferedImage.TYPE_INT_ARGB); >Graphics2D g2 = dest.createGraphics(); >g2.drawImage(image, 0, 0, null); Match #2: /src/megamek/client/ui/swing/TurretFacingDialog.java: line 214-216 /java/665406-665428-2: line 3-7 //To convert Image to BufferedImage. < BufferedImage toDraw = new BufferedImage(84, 72, BufferedImage.TYPE_INT_ARGB); < Graphics2D g2 = toDraw.createGraphics(); < g2.drawImage(hexImage, 0, 0, null); --- >BufferedImage dest = new BufferedImage( > imageWidth, imageHeight, > BufferedImage.TYPE_INT_ARGB); >Graphics2D g2 = dest.createGraphics(); >g2.drawImage(image, 0, 0, null); Match #3: /src/megamek/server/victory/VictoryResult.java: line 151-156 /java/11332280-11332351-1: line 4-9 //Receive a stack trace. Use this method to capture the stacktrace in a String. < StringWriter sw = new StringWriter(); < PrintWriter pr = new PrintWriter(sw); < tr.printStackTrace(pr); < pr.flush(); < return sw.toString(); < } --- > StringWriter sw = new StringWriter(); > PrintWriter pw = new PrintWriter(sw); > t.printStackTrace(pw); > pw.flush(); > return sw.toString(); >} Match #4: /src/megamek/client/ui/swing/ChatLounge.java: line 397-399 /java/10854831-10855405-1: line 3-5 //Find on which row and column the mouse is. < java.awt.Point p = e.getPoint(); < int rowIndex = rowAtPoint(p); < int colIndex = columnAtPoint(p); --- >java.awt.Point p = e.getPoint(); >int rowIndex = rowAtPoint(p); >int colIndex = columnAtPoint(p);