8183576: Synchronization in BufferedImage.setRGB(int x, int y, int rgb) is not necessary
Reviewed-by: prr, flar, pnarayanan
This commit is contained in:
parent
57a0405d79
commit
0282e28829
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1012,7 +1012,7 @@ public class BufferedImage extends java.awt.Image
|
|||||||
* @see #getRGB(int, int)
|
* @see #getRGB(int, int)
|
||||||
* @see #getRGB(int, int, int, int, int[], 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));
|
raster.setDataElements(x, y, colorModel.getDataElements(rgb, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user