提交 f643c097 编写于 作者: A alexsch

8051838: [Findbugs] sun.awt.image.MultiResolutionCachedImage expose internal representation

Reviewed-by: serb, pchelko
上级 a44ced8a
...@@ -53,7 +53,7 @@ public class MultiResolutionCachedImage extends AbstractMultiResolutionImage { ...@@ -53,7 +53,7 @@ public class MultiResolutionCachedImage extends AbstractMultiResolutionImage {
Dimension2D[] sizes, BiFunction<Integer, Integer, Image> mapper) { Dimension2D[] sizes, BiFunction<Integer, Integer, Image> mapper) {
this.baseImageWidth = baseImageWidth; this.baseImageWidth = baseImageWidth;
this.baseImageHeight = baseImageHeight; this.baseImageHeight = baseImageHeight;
this.sizes = sizes; this.sizes = (sizes == null) ? null : Arrays.copyOf(sizes, sizes.length);
this.mapper = mapper; this.mapper = mapper;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册