OpenJDK / valhalla / valhalla10-old / jdk
changeset 17780:2e4cdfc780cd
8183576: Synchronization in BufferedImage.setRGB(int x, int y, int rgb) is not necessary
Reviewed-by: prr, flar, pnarayanan
author | serb |
---|---|
date | Mon, 10 Jul 2017 14:41:54 -0700 |
parents | 87cfff8aeacb |
children | 72c480992841 |
files | src/java.desktop/share/classes/java/awt/image/BufferedImage.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/image/BufferedImage.java Mon Jul 10 14:55:29 2017 +0530 +++ b/src/java.desktop/share/classes/java/awt/image/BufferedImage.java Mon Jul 10 14:41:54 2017 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1012,7 +1012,7 @@ * @see #getRGB(int, int) * @see #getRGB(int, int, int, int, int[], int, int) */ - public synchronized void setRGB(int x, int y, int rgb) { + public void setRGB(int x, int y, int rgb) { raster.setDataElements(x, y, colorModel.getDataElements(rgb, null)); }