8190228: Remove redundant modifiers in java.desktop module

Reviewed-by: serb, prr
This commit is contained in:
Semyon Sadetsky 2017-11-22 14:04:51 -08:00
parent 48508135fe
commit 70329e0640
28 changed files with 65 additions and 65 deletions

View file

@ -10227,7 +10227,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
applyCompoundShape(getAppliedShape().getDifference(s));
}
private final void applyCurrentShapeBelowMe() {
private void applyCurrentShapeBelowMe() {
checkTreeLock();
Container parent = getContainer();
if (parent != null && parent.isShowing()) {

View file

@ -283,7 +283,7 @@ public class EventQueue {
* @param theEvent an instance of {@code java.awt.AWTEvent},
* or a subclass of it
*/
private final void postEventPrivate(AWTEvent theEvent) {
private void postEventPrivate(AWTEvent theEvent) {
theEvent.isPosted = true;
pushPopLock.lock();
try {

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 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
@ -410,7 +410,7 @@ public class MenuItem extends MenuComponent implements Accessible {
* Returns true if the item and all its ancestors are
* enabled, false otherwise
*/
private final boolean isItemEnabled() {
private boolean isItemEnabled() {
// Fix For 6185151: Menu shortcuts of all menuitems within a menu
// should be disabled when the menu itself is disabled
if (!isEnabled()) {

View file

@ -1354,7 +1354,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable {
/* SH | SC => */ APPLY_SHEAR | APPLY_SCALE,
/* SH | SC | TR => */ APPLY_SHEAR | APPLY_SCALE | APPLY_TRANSLATE,
};
private final void rotate90() {
private void rotate90() {
double M0 = m00;
m00 = m01;
m01 = -M0;
@ -1370,7 +1370,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable {
this.state = state;
type = TYPE_UNKNOWN;
}
private final void rotate180() {
private void rotate180() {
m00 = -m00;
m11 = -m11;
int state = this.state;
@ -1390,7 +1390,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable {
}
type = TYPE_UNKNOWN;
}
private final void rotate270() {
private void rotate270() {
double M0 = m00;
m00 = -m01;
m01 = M0;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2014, 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
@ -397,7 +397,7 @@ public class BufferedImageFilter extends ImageFilter implements Cloneable {
consumer.imageComplete(status);
}
private final WritableRaster createDCMraster() {
private WritableRaster createDCMraster() {
WritableRaster wr;
DirectColorModel dcm = (DirectColorModel) model;
boolean hasAlpha = model.hasAlpha();

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2013, 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
@ -295,7 +295,7 @@ public class ColorConvertOp implements BufferedImageOp, RasterOp {
}
}
private final BufferedImage ICCBIFilter(BufferedImage src,
private BufferedImage ICCBIFilter(BufferedImage src,
ColorSpace srcColorSpace,
BufferedImage dest,
ColorSpace destColorSpace) {
@ -753,7 +753,7 @@ public class ColorConvertOp implements BufferedImageOp, RasterOp {
return hints;
}
private final BufferedImage nonICCBIFilter(BufferedImage src,
private BufferedImage nonICCBIFilter(BufferedImage src,
ColorSpace srcColorSpace,
BufferedImage dst,
ColorSpace dstColorSpace) {
@ -947,7 +947,7 @@ public class ColorConvertOp implements BufferedImageOp, RasterOp {
/* color convert a Raster - handles byte, ushort, int, short, float,
or double transferTypes */
private final WritableRaster nonICCRasterFilter(Raster src,
private WritableRaster nonICCRasterFilter(Raster src,
WritableRaster dst) {
if (CSList.length != 2) {

View file

@ -755,7 +755,7 @@ public class IndexColorModel extends ColorModel {
* value is used to mask off the pixel parameters for methods such
* as getRed(), getGreen(), getBlue(), getAlpha(), and getRGB().
*/
private final void calculatePixelMask() {
private void calculatePixelMask() {
// Note that we adjust the mask so that our masking behavior here
// is consistent with that of our native rendering loops.
int maskbits = pixel_bits;

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 1997, 2016, 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
@ -472,7 +472,7 @@ public class LookupOp implements BufferedImageOp, RasterOp {
return hints;
}
private final void byteFilter(ByteLookupTable lookup, Raster src,
private void byteFilter(ByteLookupTable lookup, Raster src,
WritableRaster dst,
int width, int height, int numBands) {
int[] srcPix = null;
@ -519,7 +519,7 @@ public class LookupOp implements BufferedImageOp, RasterOp {
}
}
private final void shortFilter(ShortLookupTable lookup, Raster src,
private void shortFilter(ShortLookupTable lookup, Raster src,
WritableRaster dst,
int width, int height, int numBands) {
int band;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2000, 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
@ -43,7 +43,7 @@ package java.awt.image;
* @see ShortLookupTable
* @see LookupOp
*/
public abstract class LookupTable extends Object{
public abstract class LookupTable {
/**
* Constants