bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,707 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,708 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,709 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,710 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,711 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,712 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,713 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,714 |
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... | 40,715 |
public boolean getScrollableTracksViewportHeight() { return false; } | public boolean getScrollableTracksViewportHeight() { /* Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); } | 40,716 |
public boolean getScrollableTracksViewportWidth() { return false; } | public boolean getScrollableTracksViewportWidth() { /*Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); } | 40,717 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 40,718 |
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ... | private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ... | 40,719 |
void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null ... | void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (eventTypeEnabled (e.id) && dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (contai... | 40,720 |
private void invalidateTree() { for (int i = 0; i < ncomponents; i++) { Component comp = component[i]; comp.invalidate(); if (comp instanceof Container) ((Container) comp).invalidateTree(); } } | void invalidateTree() { for (int i = 0; i < ncomponents; i++) { Component comp = component[i]; comp.invalidate(); if (comp instanceof Container) ((Container) comp).invalidateTree(); } } | 40,721 |
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && ! (peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp =... | protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && ! (peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } for (int i = 0; i < ncomponents; ++i) { Component comp = component[i... | 40,723 |
protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && ! (peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp =... | protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && ! (peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp =... | 40,724 |
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ... | voidacquireComponentForMouseEvent(MouseEventme){intx=me.getX();inty=me.getY();//Findthecandidatewhichshouldreceivethisevent.Componentparent=nativeContainer;Componentcandidate=null;Pointp=me.getPoint();while(candidate==null&&parent!=null){candidate=SwingUtilities.getDeepestComponentAt(parent,p.x,p.y);if(candidate==null|... | 40,725 |
boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null ... | boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null ... | 40,727 |
boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null ... | boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null ... | 40,728 |
public void layoutContainer(Container parent) { synchronized(container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkLayout(); Component[] children = container.getComponents(); Insets in = container.getInsets(); for (int i = 0; i... | public void layoutContainer(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkLayout(); Component[] children = container.getComponents(); Insets in = container.getInsets(); for (int i = 0; ... | 40,729 |
public GlyphRenderer(Shape shape) { final Raster master = createMaster(shape); this.sumAreaTable = new SummedAreaTable(master); } | public GlyphRenderer(Shape shape) { final Raster master = createMaster(shape); this.sumAreaTable = new SummedAreaTable(master); } | 40,730 |
private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | 40,731 |
private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | 40,732 |
private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | 40,733 |
private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... | 40,734 |
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); enableEvents(AWTEvent.ACTION_EVENT_MASK); } | public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); enableEvents(AWTEvent.ACTION_EVENT_MASK); } | 40,735 |
public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); enableEvents(AWTEvent.ACTION_EVENT_MASK); } | public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); enableEvents(AWTEvent.ACTION_EVENT_MASK); } | 40,736 |
public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextField(this)); } | public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextField(this)); } | 40,737 |
public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextField(this)); } | public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextField(this)); } | 40,738 |
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 40,739 |
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 40,740 |
public boolean echoCharIsSet() { if (echoChar == '\u0000') return (false); else return (true); } | public boolean echoCharIsSet() { if (echoChar == '\u0000') return (false); else return (true); } | 40,741 |
public boolean echoCharIsSet() { if (echoChar == '\u0000') return (false); else return (true); } | public boolean echoCharIsSet() { if (echoChar == '\u0000') return (false); else return (true); } | 40,742 |
public boolean echoCharIsSet() { if (echoChar == '\u0000') return (false); else return (true); } | public boolean echoCharIsSet() { if (echoChar == '\u0000') return (false); else return (true); } | 40,743 |
public int getColumns() { return (columns); } | public int getColumns() { return (columns); } | 40,744 |
public char getEchoChar() { return (echoChar); } | public char getEchoChar() { return (echoChar); } | 40,745 |
public Dimension getMinimumSize() { return (getMinimumSize(getColumns())); } | public Dimension getMinimumSize() { return (getMinimumSize(getColumns())); } | 40,746 |
public Dimension getPreferredSize() { return (getPreferredSize(getColumns())); } | public Dimension getPreferredSize() { return (getPreferredSize(getColumns())); } | 40,747 |
public Dimension minimumSize() { return (getMinimumSize(getColumns())); } | public Dimension minimumSize() { return (getMinimumSize(getColumns())); } | 40,748 |
protected String paramString() { return (getClass().getName() + "(columns=" + getColumns() + ",echoChar=" + getEchoChar()); } | protected String paramString() { return (getClass().getName() + "(columns=" + getColumns() + ",echoChar=" + getEchoChar()); } | 40,749 |
public Dimension preferredSize() { return (getPreferredSize(getColumns())); } | public Dimension preferredSize() { return (getPreferredSize(getColumns())); } | 40,750 |
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); } | protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); } | 40,751 |
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); } | protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); } | 40,752 |
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); } | protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); } | 40,753 |
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); } | protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); } | 40,754 |
protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); } | protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); } | 40,755 |
public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); } | public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); } | 40,756 |
public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); } | public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); } | 40,757 |
public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | 40,758 |
public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | 40,759 |
public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } | 40,760 |
public void setEchoCharacter(char echoChar) { setEchoChar(echoChar); } | public void setEchoCharacter(char echoChar) { setEchoChar(echoChar); } | 40,761 |
public void clean(ObjID[] ids, long sequenceNum, VMID vmid, boolean strong) throws RemoteException { // Not implemented} | public void clean(ObjID[] ids, long sequenceNum, VMID vmid, boolean strong) throws RemoteException { // Not implemented} | 40,763 |
public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { VMID vmid = lease.getVMID(); if (vmid == null) vmid = new VMID(); long leaseValue = LEASE_VALUE; //long leaseValue = lease.getValue(); lease = new Lease(vmid, leaseValue); synchronized(leaseCache){ ... | public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { VMID vmid = lease.getVMID(); if (vmid == null) vmid = new VMID(); long leaseValue = LEASE_VALUE; //long leaseValue = lease.getValue(); lease = new Lease(vmid, leaseValue); synchronized(leaseCache){ ... | 40,764 |
public static boolean isJavaIdentifierPart(char ch) { int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) ... | public static boolean isJavaIdentifierPart(char ch) { int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) ... | 40,765 |
protected Activatable(String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented");} | protected Activatable(String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented");} | 40,766 |
public static ActivationID exportObject(Remote obj, String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented");} | public static ActivationID exportObject(Remote obj, String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented");} | 40,767 |
protected ActivationID getID() { throw new Error("Not implemented");} | protected ActivationID getID() { throw new Error("Not implemented");} | 40,768 |
public static boolean inactive(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented");} | public static boolean inactive(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented");} | 40,769 |
public static Remote register(ActivationDesc desc) throws UnknownGroupException, ActivationException, RemoteException { throw new Error("Not implemented");} | public static Remote register(ActivationDesc desc) throws UnknownGroupException, ActivationException, RemoteException { throw new Error("Not implemented");} | 40,770 |
public static boolean unexportObject(Remote obj, boolean force) throws NoSuchObjectException { throw new Error("Not implemented");} | public static boolean unexportObject(Remote obj, boolean force) throws NoSuchObjectException { throw new Error("Not implemented");} | 40,771 |
public static void unregister(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented");} | public static void unregister(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented");} | 40,772 |
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs... | private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIs... | 40,774 |
public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if ("file".equals (url.getProtocol())) { File f = new File (url.getFile()); jf = new JarFile (f, true, ZipF... | public static synchronized JarFile get (URL url, boolean useCaches) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if ("file".equals (url.getProtocol())) { File f = new File (url.getFile()); jf = new Jar... | 40,775 |
public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if ("file".equals (url.getProtocol())) { File f = new File (url.getFile()); jf = new JarFile (f, true, ZipF... | public static synchronized JarFile get (URL url) throws IOException { JarFile jf; if (useCaches) { jf = (JarFile) cache.get (url); if (jf != null) return jf; if ("file".equals (url.getProtocol())) { File f = new File (url.getFile()); jf = new Ja... | 40,776 |
public synchronized void connect() throws IOException { // Call is ignored if already connected. if (connected) return; jar_url = getJarFileURL(); jar_file = JarFileCache.get (jar_url); String entry_name = getEntryName(); if (entry_name != null && !entry_name.equals ("")) { ... | public synchronized void connect() throws IOException { // Call is ignored if already connected. if (connected) return; jar_url = getJarFileURL(); jar_file = JarFileCache.get (jar_url, useCaches); String entry_name = getEntryName(); if (entry_name != null && !entry_name.equals (""))... | 40,778 |
public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferr... | public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = new Dimension(preferredSize); else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = s... | 40,779 |
public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferr... | public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferr... | 40,780 |
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); double extent = getAngleExtent(); if (w <= 0 || h <= 0 || extent == 0) return false; double mx = getX() + w / 2; double my = getY() + h / 2; double dx = (x - mx) * 2 / w; double dy = (y - my) * 2 / h... | public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); double extent = getAngleExtent(); if (w <= 0 || h <= 0 || extent == 0) return false; double mx = getX() + w / 2; double my = getY() + h / 2; double dx = (x - mx) * 2 / w; double dy = (y - my) * 2 / h... | 40,781 |
public boolean containsAngle(double a) { double start = getAngleStart(); double extent = getAngleExtent(); double end = start + extent; if (extent >= 360 || extent <= -360) return true; if (extent < 0) { end = start; start += extent; } start %= 360; while (start < 0) start +=... | public boolean containsAngle(double a) { double start = getAngleStart(); double extent = getAngleExtent(); double end = start + extent; if (extent >= 360 || extent <= -360) return true; if (extent < 0) { end = start; start += extent; } start %= 360; while (start < 0) start +=... | 40,782 |
public void setAngles(double x1, double y1, double x2, double y2) { // Normalize the points. double mx = getX(); double my = getY(); double mw = getWidth(); double mh = getHeight(); x1 = x1 - (mx + mw / 2); y1 = y1 - (my + mh / 2); x2 = x2 - (mx + mw / 2); y2 = y2 - (my + mh / 2); double start = ... | public void setAngles(double x1, double y1, double x2, double y2) { // Normalize the points. double mx = getX(); double my = getY(); double mw = getWidth(); double mh = getHeight(); x1 = x1 - (mx + mw / 2); y1 = y1 - (my + mh / 2); x2 = x2 - (mx + mw / 2); y2 = y2 - (my + mh / 2); double start = ... | 40,783 |
public void showDocument(URL url, String target) { try { PluginAppletViewer.write("url " + url + " " + target); } catch(IOException e) { System.err.println("showDocument failed: " + e); } } | public void showDocument(URL url, String target) { try { PluginAppletViewer.write("url " + url + " " + target); } catch(IOException e) { throw new RuntimeException("showDocument failed.", e); } } | 40,784 |
public void showStatus(String status) { try { PluginAppletViewer.write("status " + status); } catch(IOException e) { System.err.println("showDocument failed: " + e); } } | public void showStatus(String status) { try { PluginAppletViewer.write("status " + status); } catch(IOException e) { throw new RuntimeException("showStatus failed.", e); } } | 40,785 |
protected String getPropertyPrefix() { return null; } | protected String getPropertyPrefix() { return "Menu"; } | 40,786 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | 40,787 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | 40,788 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | 40,789 |
protected void writeUnlock() { synchronized (documentCV) { if (currentWriter.equals(Thread.currentThread())) { currentWriter = null; documentCV.notifyAll(); } } } | protected void writeUnlock() { synchronized (documentCV) { if (Thread.currentThread().equals(currentWriter)) { currentWriter = null; documentCV.notifyAll(); } } } | 40,791 |
public JWindow(Frame f) { super(f); } | public JWindow() { super(f); } | 40,792 |
public JWindow(Frame f) { super(f); } | public JWindow(Frame f) { this(null); } | 40,793 |
private final int d_code(int distance) { int code = 0; while (distance >= 4) { code += 2; distance >>= 1; } return code + distance; } | private int d_code(int distance) { int code = 0; while (distance >= 4) { code += 2; distance >>= 1; } return code + distance; } | 40,794 |
private final int l_code(int len) { if (len == 255) return 285; int code = 257; while (len >= 8) { code += 4; len >>= 1; } return code + len; } | private int l_code(int len) { if (len == 255) return 285; int code = 257; while (len >= 8) { code += 4; len >>= 1; } return code + len; } | 40,795 |
protected GraphicsEnvironment() { } | protected GraphicsEnvironment() { } | 40,796 |
public Point getCenterPoint() { Rectangle r = getMaximumWindowBounds(); return new Point(r.x + r.width / 2, r.y + r.height / 2); } | public Point getCenterPoint() { Rectangle r = getMaximumWindowBounds(); return new Point(r.x + r.width / 2, r.y + r.height / 2); } | 40,797 |
public static GraphicsEnvironment getLocalGraphicsEnvironment() { return localEnv; } | public static GraphicsEnvironment getLocalGraphicsEnvironment() { return localEnv; } | 40,798 |
public Rectangle getMaximumWindowBounds() { return getDefaultScreenDevice().getDefaultConfiguration().getBounds(); } | public Rectangle getMaximumWindowBounds() { return getDefaultScreenDevice().getDefaultConfiguration().getBounds(); } | 40,799 |
public static boolean isHeadless() { // XXX Should be: getLocalGraphicsEnvironment().isHeadlessInstance(); return false; } | public static boolean isHeadless() { // XXX Should be: getLocalGraphicsEnvironment().isHeadlessInstance(); return false; } | 40,800 |
public boolean isHeadlessInstance() { return false; } | public boolean isHeadlessInstance() { return false; } | 40,801 |
public TextScreenConsole(ConsoleManager mgr, String name, TextScreen screen, int options) { super(mgr, name); this.screen = screen; this.scrWidth = screen.getWidth(); this.scrHeight = screen.getHeight(); this.savedOut = this.out = new PrintStream(new ConsoleOutputStream(this, 0x07... | public TextScreenConsole(ConsoleManager mgr, String name, TextScreen screen, int options) { super(mgr, name); this.screen = screen; this.scrWidth = screen.getWidth(); this.scrHeight = screen.getHeight(); this.savedOut = this.out = new PrintStream(new ConsoleOutputStream(this, 0x07... | 40,802 |
public void clear() { final int size = screen.getWidth() * screen.getHeight(); screen.set(0, ' ', size, 0x07); syncScreen(); } | public void clear() { final int size = screen.getWidth() * screen.getHeight(); screen.set(0, ' ', size, 0x07); syncScreen(); } | 40,803 |
public void clearRow(int row) { final int size = screen.getWidth(); screen.set(screen.getOffset(0, row), ' ', size, 0x07); syncScreen(); } | public void clearRow(int row) { final int size = screen.getWidth(); screen.set(screen.getOffset(0, row), ' ', size, 0x07); syncScreen(); } | 40,804 |
public void ensureVisible(int row) { screen.ensureVisible(row); syncScreen(); } | public void ensureVisible(int row) { screen.ensureVisible(row); syncScreen(); } | 40,805 |
public void focusGained(FocusEvent event) { super.focusGained(event); syncScreen(); if (claimSystemOutErrIn) { System.setOut(savedOut); System.setErr(savedErr); } } | public void focusGained(FocusEvent event) { super.focusGained(event); syncScreen(); if (claimSystemOutErrIn) { System.setOut(savedOut); System.setErr(savedErr); } } | 40,806 |
public void focusLost(FocusEvent event) { if (claimSystemOutErrIn) { savedOut = System.out; savedErr = System.err; } super.focusLost(event); } | public void focusLost(FocusEvent event) { if (claimSystemOutErrIn) { savedOut = System.out; savedErr = System.err; } super.focusLost(event); } | 40,807 |
public char getChar(int x, int y) { return screen.getChar(screen.getOffset(x, y)); } | public char getChar(int x, int y) { return screen.getChar(screen.getOffset(x, y)); } | 40,808 |
public int getColor(int x, int y) { return screen.getColor(screen.getOffset(x, y)); } | public int getColor(int x, int y) { return screen.getColor(screen.getOffset(x, y)); } | 40,809 |
public int getCursorX() { return curX; } | public int getCursorX() { return curX; } | 40,810 |
public int getCursorY() { return curY; } | public int getCursorY() { return curY; } | 40,811 |
public PrintStream getErr() { return err; } | public PrintStream getErr() { return err; } | 40,812 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.