-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8267521: Post JEP 411 refactoring: maximum covering > 50K #4138
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,7 +214,6 @@ | |
* @author Arthur van Hoff | ||
* @author Sami Shaio | ||
*/ | ||
@SuppressWarnings("removal") | ||
public abstract class Component implements ImageObserver, MenuContainer, | ||
Serializable | ||
{ | ||
|
@@ -506,6 +505,7 @@ static class AWTTreeLock {} | |
/* | ||
* The component's AccessControlContext. | ||
*/ | ||
@SuppressWarnings("removal") | ||
private transient volatile AccessControlContext acc = | ||
AccessController.getContext(); | ||
|
||
|
@@ -627,13 +627,15 @@ static class AWTTreeLock {} | |
initIDs(); | ||
} | ||
|
||
@SuppressWarnings("removal") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm confused. I thought the reason this wasn't done in the JEP implementation PR is because of refactoring There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a tiny refactoring here: a new variable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. But I will quote you So the way you explained this before made it sound like any time there was any SM API usage in a static block, the entire class needed to be annotated. Why has the explanation changed ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I should have been more precise. An annotation can only be added on a declaration, whether it's a variable, a method, or a class. Static block is not a declaration and the only one covers it is the class. But then if it's on a local variable declaration inside a static block, we certainly can annotate on that variable. |
||
String s = java.security.AccessController.doPrivileged( | ||
new GetPropertyAction("awt.image.incrementaldraw")); | ||
isInc = (s == null || s.equals("true")); | ||
|
||
s = java.security.AccessController.doPrivileged( | ||
@SuppressWarnings("removal") | ||
String s2 = java.security.AccessController.doPrivileged( | ||
new GetPropertyAction("awt.image.redrawrate")); | ||
incRate = (s != null) ? Integer.parseInt(s) : 100; | ||
incRate = (s2 != null) ? Integer.parseInt(s2) : 100; | ||
} | ||
|
||
/** | ||
|
@@ -712,6 +714,7 @@ Object getObjectLock() { | |
/* | ||
* Returns the acc this component was constructed with. | ||
*/ | ||
@SuppressWarnings("removal") | ||
final AccessControlContext getAccessControlContext() { | ||
if (acc == null) { | ||
throw new SecurityException("Component is missing AccessControlContext"); | ||
|
@@ -974,6 +977,7 @@ public void processEvent(Component comp, AWTEvent e) { | |
comp.processEvent(e); | ||
} | ||
|
||
@SuppressWarnings("removal") | ||
public AccessControlContext getAccessControlContext(Component comp) { | ||
return comp.getAccessControlContext(); | ||
} | ||
|
@@ -1427,6 +1431,7 @@ public Point getMousePosition() throws HeadlessException { | |
throw new HeadlessException(); | ||
} | ||
|
||
@SuppressWarnings("removal") | ||
PointerInfo pi = java.security.AccessController.doPrivileged( | ||
new java.security.PrivilegedAction<PointerInfo>() { | ||
public PointerInfo run() { | ||
|
@@ -6253,6 +6258,7 @@ private boolean checkCoalescing() { | |
} | ||
|
||
// Need to check non-bootstraps. | ||
@SuppressWarnings("removal") | ||
Boolean enabled = java.security.AccessController.doPrivileged( | ||
new java.security.PrivilegedAction<Boolean>() { | ||
public Boolean run() { | ||
|
@@ -8988,6 +8994,7 @@ private void writeObject(ObjectOutputStream s) | |
* @throws IOException if an I/O error occurs | ||
* @see #writeObject(ObjectOutputStream) | ||
*/ | ||
@SuppressWarnings("removal") | ||
@Serial | ||
private void readObject(ObjectInputStream s) | ||
throws ClassNotFoundException, IOException | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a bit strange that "file.encoding" seem to get a special treatment - but I guess that's OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might say we thus avoid wasting the return value, as much as possible.