bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
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");}
25,642
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...
25,644
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 J...
25,645
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 (""))...
25,647
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...
25,648
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...
25,649
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...
25,650
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 +=...
25,651
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 = ...
25,652
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); } }
25,653
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); } }
25,654
protected String getPropertyPrefix() { return null; }
protected String getPropertyPrefix() { return "Menu"; }
25,655
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...
25,656
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...
25,657
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...
25,658
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(); } } }
25,660
public JWindow(Frame f) { super(f); }
public JWindow() { super(f); }
25,661
public JWindow(Frame f) { super(f); }
public JWindow(Frame f) { this(null); }
25,662
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; }
25,663
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; }
25,664
public static GraphicsEnvironment getLocalGraphicsEnvironment() { return localEnv; }
public static GraphicsEnvironment getLocalGraphicsEnvironment() { return localEnv; }
25,665
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); } }
25,666
protected AccessibleJPasswordField(JPasswordField component) { super(component); // TODO } // AccessibleJPasswordField()
protected AccessibleJPasswordField(JPasswordField component) { super(component); // TODO } // AccessibleJPasswordField()
25,667
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJPasswordField(this); } // if return accessibleContext; } // getAccessibleContext()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJPasswordField(this); } // if return accessibleContext; } // getAccessibleContext()
25,668
public AccessibleStateSet getAccessibleStateSet() { return new AccessibleStateSet( );// return null; // TODO }
public AccessibleStateSet getAccessibleStateSet() { return null;// return null; // TODO }
25,669
public String getAfterIndex(int value0, int value1) { return "";// return null; // TODO }
public String getAfterIndex(int value0, int value1) { return null;// return null; // TODO }
25,670
public String getAtIndex(int value0, int value1) { return "";// return null; // TODO }
public String getAtIndex(int value0, int value1) { return null;// return null; // TODO }
25,671
public String getBeforeIndex(int value0, int value1) { return "";// return null; // TODO }
public String getBeforeIndex(int value0, int value1) { return null;// return null; // TODO }
25,672
public AttributeSet getCharacterAttribute(int value0) { return new SimpleAttributeSet( );// return null; // TODO }
public AttributeSet getCharacterAttribute(int value0) { return null;// return null; // TODO }
25,673
public Rectangle getCharacterBounds(int value0) { return new Rectangle( );// return null; // TODO }
public Rectangle getCharacterBounds(int value0) { return null;// return null; // TODO }
25,674
Rectangle getRootEditorRect() { return new Rectangle( );//todo fix// return null; }
Rectangle getRootEditorRect() { return null;//todo fix// return null; }
25,675
public void actionPerformed( ActionEvent ev ) { if( caret != null ) { caret.setVisible( !caret.isVisible() ); } }
public void actionPerformed( ActionEvent ev ) { if( caret != null ) { caret.setVisible( !caret.isVisible() ); } }
25,676
public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } }
public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } }
25,677
public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } }
public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } }
25,678
public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } }
public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } }
25,679
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ...
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ...
25,680
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ...
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ...
25,681
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ...
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ...
25,682
public void addPropertyChangeListener(PropertyChangeListener listener) { // TODO: Why is this overridden? super.addPropertyChangeListener(listener); }
public void addPropertyChangeListener(PropertyChangeListener listener) { // TODO: Why is this overridden? changeSupport.addPropertyChangeListener(listener); }
25,684
public Accessible getAccessibleChild(int value0) { return null; }
public Accessible getAccessibleChild(int i) { int index = 0; Component[] children = getComponents(); Accessible found = null; for (int j = 0; index != i; j++) { if (children[j] instanceof Accessible) index++; if (index == i) found = (Accessible) children[index]; } return found; }
25,685
public int getAccessibleChildrenCount() { return 0; }
public int getAccessibleChildrenCount() { int count = 0; Component[] children = getComponents(); for (int i = 0; i < children.length; ++i) { if (children[i] instanceof Accessible) count++; } return count; }
25,686
public AccessibleRole getAccessibleRole() { return null; }
public AccessibleRole getAccessibleRole() { return AccessibleRole.SWING_COMPONENT; }
25,687
protected String getBorderTitle(Border value0) { return null; }
protected String getBorderTitle(Border border) { String title = null; if (border instanceof CompoundBorder) { CompoundBorder compound = (CompoundBorder) border; Border inner = compound.getInsideBorder(); title = getBorderTitle(inner); if (title == null) { Border outer = compound.getOutsideBorder(); title = getBorde...
25,688
public String getTitledBorderText() { return null; }
public String getTitledBorderText() { return getBorderTitle(getBorder()); }
25,689
public String getToolTipText() { return null; }
public String getToolTipText() { return JComponent.this.getToolTipText(); }
25,690
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null) { Container newParent = parent.getParent(); if (newParent == null) break; // If the parent is optimizedDrawin...
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I...
25,692
private EventManager () { _requests = new Hashtable (); // Add lists for all the event types _requests.put (new Byte (EventRequest.EVENT_SINGLE_STEP), new Hashtable ()); _requests.put (new Byte (EventRequest.EVENT_BREAKPOINT), new Hashtable ()); _requests.put (new Byte (EventRequest.EVENT_FRAM...
private EventManager () { _requests = new Hashtable (); // Add lists for all the event types _requests.put (new Byte (EventRequest.EVENT_SINGLE_STEP), new Hashtable ()); _requests.put (new Byte (EventRequest.EVENT_BREAKPOINT), new Hashtable ()); _requests.put (new Byte (EventRequest.EVENT_FRAM...
25,693
public void requestEvent (EventRequest request) throws InvalidEventTypeException { // Add request to request list Hashtable requests; Byte kind = new Byte (request.getEventKind ()); requests = (Hashtable) _requests.get (kind); if (requests == null) { // Did not get a valid event type throw new...
public void requestEvent (EventRequest request) throws JdwpException { // Add request to request list Hashtable requests; Byte kind = new Byte (request.getEventKind ()); requests = (Hashtable) _requests.get (kind); if (requests == null) { // Did not get a valid event type throw new InvalidEven...
25,696
public void run() { running = true; try { sleep(initialDelay); while (running) { try { sleep(delay); } catch (InterruptedException e) { return; } queueEvent(); if (logTimers) System.out.println("...
public void run() { running = true; try { sleep(initialDelay); while (running) { try { sleep(delay); } catch (InterruptedException e) { return; } queueEvent(); if (logTimers) System.out.println("...
25,697
public static void setCurrentKeyboardFocusManager (KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission (new AWTPermission ("replaceKeyboardFocusManager")); ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); KeyboardFocusM...
public static void setCurrentKeyboardFocusManager (KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission (new AWTPermission ("replaceKeyboardFocusManager")); ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); KeyboardFocusM...
25,699
final void pop(Item item) { if (tos <= 0) { throw new Error("Stack is empty"); } if (stack[ --tos] != item) { int i = tos - 1; while ((i >= 0) && (stack[ i] != item)) i--; throw new StackException("OperandStack[" + tos + "] is not the ...
final void pop(Item item) { if (tos <= 0) { throw new Error("Stack is empty"); } if (stack[ --tos] != item) { int i = tos - 1; while ((i >= 0) && (stack[ i] != item)) i--; throw new StackException("OperandStack[" + tos + "] is not the ...
25,700
public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[ i].getType()); buf.append(','); buf.append(stack[...
public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[ i].getType()); buf.append(','); buf.append(stack[...
25,701
public BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src == dst) throw new IllegalArgumentException(); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); // Make sure source image is premultiplied BufferedImage src1 = src; if (!src.isPremul...
public final BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src == dst) throw new IllegalArgumentException(); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); // Make sure source image is premultiplied BufferedImage src1 = src; if (!src.is...
25,702
public Kernel getKernel() { return (Kernel) kernel.clone(); }
public final Kernel getKernel() { return (Kernel) kernel.clone(); }
25,703
public void connect(Remote a_target, Remote a_source) throws RemoteException { ORB orb = null; POA poa = null; boolean ok = false; try { if (a_source instanceof Servant) { Servant s = (Servant) a_source; orb = s._orb(); poa = s._poa(); o...
public void connect(Remote a_target, Remote a_source) throws RemoteException { ORB orb = null; POA poa = null; boolean ok = false; try { if (a_source instanceof Servant) { Servant s = (Servant) a_source; orb = s._orb(); poa = s._poa(); o...
25,704
public void connect(Remote a_target, Remote a_source) throws RemoteException { ORB orb = null; POA poa = null; boolean ok = false; try { if (a_source instanceof Servant) { Servant s = (Servant) a_source; orb = s._orb(); poa = s._poa(); o...
public void connect(Remote a_target, Remote a_source) throws RemoteException { ORB orb = null; POA poa = null; boolean ok = false; try { if (a_source instanceof Servant) { Servant s = (Servant) a_source; orb = s._orb(); poa = s._poa(); o...
25,705
private Object loadNextServiceProvider() { String line; Class klass; if (reader == null) advanceReader(); for (;;) { /* If we have reached the last provider list, we cannot * retrieve any further lines. */ if (reader == null) ...
private Object loadNextServiceProvider() { String line; if (reader == null) advanceReader(); for (;;) { /* If we have reached the last provider list, we cannot * retrieve any further lines. */ if (reader == null) return nul...
25,706
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
25,707
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator...
public static IKeyPairGenerator getInstance(String name) if (name == null) return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) result = new DSSKeyPairGenerator();...
25,708
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator...
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator(...
25,709
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator...
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator...
25,710
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator...
public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator...
25,711
public void updateUI() { setUI((SplitPaneUI) UIManager.getUI(this)); invalidate(); repaint(); }
public void updateUI() { setUI((SplitPaneUI) UIManager.getUI(this)); invalidate(); repaint(); }
25,712
public synchronized void setFullScreenWindow(Window w) { if (full_screen != null) ; // XXX Restore the previous window to normal mode. full_screen = w; // XXX If w != null, make it full-screen. throw new Error("not implemented"); }
public synchronized void setFullScreenWindow(Window w) { if (full_screen != null) { full_screen.setBounds(fullScreenOldBounds); } full_screen = null; if (w != null) { fullScreenOldBounds = w.getBounds(); // XXX Restore the previous window to normal mode. full_screen = w{ full_screen.setBounds(fullScree...
25,713
public synchronized void setFullScreenWindow(Window w) { if (full_screen != null) ; // XXX Restore the previous window to normal mode. full_screen = w; // XXX If w != null, make it full-screen. throw new Error("not implemented"); }
public synchronized void setFullScreenWindow(Window w) { if (full_screen != null) ; // XXX Restore the previous window to normal mode. full_screen = w; // XXX If w != null, make it full-screen. DisplayMode dMode = getDisplayMode(); full_screen.setBounds(0, 0, dMode.getWidth(), dMode.getHeight()); fu...
25,714
public AccessibleRelationSet getAccessibleRelationSet() { return null; }
public AccessibleRelationSet getAccessibleRelationSet() { return new AccessibleRelationSet(); }
25,716
ReadOnly(Object owner, RawData address, int capacity, int limit, int position) { super(owner, address, capacity, limit, position); }
ReadOnly(Object owner, Pointer address, int capacity, int limit, int position) { super(owner, address, capacity, limit, position); }
25,717
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
public BigInteger[] generateParameters() int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160; ...
25,721
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
25,722
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
25,723
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
25,724
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
public BigInteger[] generateParameters() { int counter, offset; BigInteger SEED, alpha, U, q, OFFSET, SEED_PLUS_OFFSET, W, X, p, c, g; byte[] a, u; byte[] kb = new byte[20]; // to hold 160 bits of randomness // Let L-1 = n*160 + b, where b and n are integers and 0 <= b < 160. int b = (L - 1) % 160;...
25,725
public DataBufferInt(int size) { super(TYPE_INT, size); data = new int[size]; }
public DataBufferInt(int size) { super(TYPE_INT, size, 1, 0); bankData = new int[1][]; data = new int[size]; }
25,726
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ...
25,728
void printTags() { if (verbose) { System.out.println("parsed applet tags:"); for (int i = 0; i < appletTags.size(); i++) { AppletTag tag = (AppletTag) appletTags.get(i); System.out.println(" tag " + i + ":"); System.out.println(tag); } } ...
void printTags() { if (verbose) { System.out.println (Messages.getString("StandaloneAppletViewer.ParsedAppletTags")); for (int i = 0; i < appletTags.size(); i++) { AppletTag tag = (AppletTag) appletTags.get(i); System.out.println(" tag " + i + ":"); Sys...
25,729
void printTags() { if (verbose) { System.out.println("parsed applet tags:"); for (int i = 0; i < appletTags.size(); i++) { AppletTag tag = (AppletTag) appletTags.get(i); System.out.println(" tag " + i + ":"); System.out.println(tag); } } ...
void printTags() { if (verbose) { System.out.println("parsed applet tags:"); for (int i = 0; i < appletTags.size(); i++) { AppletTag tag = (AppletTag) appletTags.get(i); System.out.println (" " + Messages.getString("StandaloneAppletViewer.Tag") + " " + i + ":"); ...
25,730
public BufferedImage filter (BufferedImage src, BufferedImage dst) { if (dst == src) throw new IllegalArgumentException ("src image cannot be the same as the dst image"); // If the destination image is null, then BufferedImage is // created with ColorModel of the source image if (dst ...
public final BufferedImage filter (BufferedImage src, BufferedImage dst) { if (dst == src) throw new IllegalArgumentException ("src image cannot be the same as the dst image"); // If the destination image is null, then BufferedImage is // created with ColorModel of the source image if...
25,731
public Rectangle2D getBounds2D (BufferedImage src) { return getBounds2D (src.getRaster()); }
public final Rectangle2D getBounds2D (BufferedImage src) { return getBounds2D (src.getRaster()); }
25,732
public int getInterpolationType () { if(hints.containsValue (RenderingHints.VALUE_INTERPOLATION_BILINEAR)) return TYPE_BILINEAR; else return TYPE_NEAREST_NEIGHBOR; }
public final int getInterpolationType () { if(hints.containsValue (RenderingHints.VALUE_INTERPOLATION_BILINEAR)) return TYPE_BILINEAR; else return TYPE_NEAREST_NEIGHBOR; }
25,733
public AffineTransform getTransform () { return transform; }
public final AffineTransform getTransform () { return transform; }
25,734
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) throws NotImplementedException { // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int) throw new Error("not implemented"); }
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) { // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int) throw new Error("not implemented"); }
25,736
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) throws NotImplementedException { // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int) throw new Error("not implemented"); }
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap) throws NotImplementedException { // FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int) return new ChannelWriter(ch, enc, minBufferCap); }
25,737
protected AccessibleContainerHandler(AccessibleJComponent component) {}
protected AccessibleContainerHandler() {}
25,738
protected AccessibleFocusHandler(AccessibleJComponent component){}
protected AccessibleFocusHandler(){}
25,739
public static int getNumericValue(char ch) { // Treat numValue as signed. return (short) numValue[readChar(ch) >> 7]; }
public static int getNumericValue(char ch) { // Treat numValue as signed. return (short) numValue[0][readCodePoint((int)ch) >> 7]; }
25,740
public static boolean isDefined(char ch) { return getType(ch) != UNASSIGNED; }
public static boolean isDefined(char ch) { return isDefined((int)ch); }
25,741
public static boolean isIdentifierIgnorable(char ch) { return (ch <= '\u009F' && (ch < '\t' || ch >= '\u007F' || (ch <= '\u001B' && ch >= '\u000E'))) || getType(ch) == FORMAT; }
public static boolean isIdentifierIgnorable(char ch) { return (ch <= '\u009F' && (ch < '\t' || ch >= '\u007F' || (ch <= '\u001B' && ch >= '\u000E'))) || getType(ch) == FORMAT; }
25,742
public static boolean isMirrored(char ch) { return (readChar(ch) & MIRROR_MASK) != 0; }
public static boolean isMirrored(char ch) { return (readCodePoint((int)ch) & MIRROR_MASK) != 0; }
25,743
public static boolean isSpaceChar(char ch) { return ((1 << getType(ch)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0; }
public static boolean isSpaceChar(char ch) { return ((1 << getType(ch)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0; }
25,744
public static boolean isTitleCase(char ch) { return getType(ch) == TITLECASE_LETTER; }
public static boolean isTitleCase(char ch) { return isTitleCase((int)ch); }
25,745
void setup() throws Exception { setOutputStreamParam(null); // use stdout setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); all = _alias == null; if (! all) setAliasParam(_alias); if (verbose & rfc) { log.warning("Both -v and -rfc options were found on the command l...
void setup() throws Exception { setOutputStreamParam(null); // use stdout setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); all = _alias == null; if (! all) setAliasParam(_alias); if (verbose & rfc) { if (Configuration.DEBUG) log.fine("Both -v and -rfc options were ...
25,748
void setup() throws Exception { setOutputStreamParam(null); // use stdout setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); all = _alias == null; if (! all) setAliasParam(_alias); if (verbose & rfc) { log.warning("Both -v and -rfc options were found on the command l...
void setup() throws Exception { setOutputStreamParam(null); // use stdout setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); all = _alias == null; if (! all) setAliasParam(_alias); if (verbose & rfc) { log.warning("Both -v and -rfc options were found on the command l...
25,749
void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ PrintWriter writer = new PrintWriter(outStream, true); writer.println(Messages.getFormattedString("ListCmd.21", store.getType())); //$NON-NLS-1$ writer.p...
void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ PrintWriter writer = new PrintWriter(outStream, true); writer.println(Messages.getFormattedString("ListCmd.21", store.getType())); //$NON-NLS-1$ writer.p...
25,750
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
25,752
private Encoder (Charset cs) { // According to // http://www-106.ibm.com/developerworks/unicode/library/utfencodingforms/index.html // On average, English takes slightly over one unit per code point. // Most Latin-script languages take about 1.1 bytes. Greek, Russian, // Arabic and...
Encoder (Charset cs) { // According to // http://www-106.ibm.com/developerworks/unicode/library/utfencodingforms/index.html // On average, English takes slightly over one unit per code point. // Most Latin-script languages take about 1.1 bytes. Greek, Russian, // Arabic and Hebrew ...
25,754
void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener listeners[] = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) { listeners...
protected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener listeners[] = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) { ...
25,755
void init() { dragEnabled = false; fixedCellHeight = -1; fixedCellWidth = -1; layoutOrientation = VERTICAL; opaque = true; valueIsAdjusting = false; visibleRowCount = 8; cellRenderer = new DefaultListCellRenderer(); listListener = new ListListener(); setModel(new DefaultListModel()); ...
void init() { dragEnabled = false; fixedCellHeight = -1; fixedCellWidth = -1; layoutOrientation = VERTICAL; opaque = true; valueIsAdjusting = false; visibleRowCount = 8; cellRenderer = new DefaultListCellRenderer(); listListener = new ListListener(); setModel(new DefaultListModel()); ...
25,756
public void setCellRenderer(ListCellRenderer cr) { ListCellRenderer old = cellRenderer; cellRenderer = cr; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, cr); revalidate(); repaint(); }
public void setCellRenderer(ListCellRenderer renderer) { ListCellRenderer old = cellRenderer; cellRenderer = cr; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, cr); revalidate(); repaint(); }
25,757
public void setCellRenderer(ListCellRenderer cr) { ListCellRenderer old = cellRenderer; cellRenderer = cr; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, cr); revalidate(); repaint(); }
public void setCellRenderer(ListCellRenderer cr) { ListCellRenderer old = cellRenderer; cellRenderer = cr; firePropertyChange(CELL_RENDERER_PROPERTY_CHANGED, old, cr); revalidate(); repaint(); }
25,758
public void setModel(ListModel m) { ListModel old = model; if (old != null) old.removeListDataListener(listListener); model = m; if (model != null) model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, m); revalidate(); repaint(); }
public void setModel(ListModel model) { ListModel old = model; if (old != null) old.removeListDataListener(listListener); model = m; if (model != null) model.addListDataListener(listListener); firePropertyChange(MODEL_PROPERTY_CHANGED, old, m); revalidate(); repaint(); }
25,759