src/share/classes/java/awt/SequencedEvent.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2000, 2010, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2000, 2014, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 158,168 ****
// getFirstWithContext can dispose this
return this == getFirstWithContext() || disposed;
}
private final synchronized static SequencedEvent getFirst() {
! return (SequencedEvent)list.getFirst();
}
/* Disposes all events from disposed AppContext
* return first valid event
*/
--- 158,168 ----
// getFirstWithContext can dispose this
return this == getFirstWithContext() || disposed;
}
private final synchronized static SequencedEvent getFirst() {
! return list.getFirst();
}
/* Disposes all events from disposed AppContext
* return first valid event
*/
*** 209,219 ****
if (list.getFirst() == this) {
list.removeFirst();
if (!list.isEmpty()) {
! next = (SequencedEvent)list.getFirst();
}
} else {
list.remove(this);
}
}
--- 209,219 ----
if (list.getFirst() == this) {
list.removeFirst();
if (!list.isEmpty()) {
! next = list.getFirst();
}
} else {
list.remove(this);
}
}