bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
public void setVisible(final boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
31,232
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
31,233
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
31,234
public abstract int getCaretPosition();
public abstract int getCaretPosition();
31,235
public abstract int getSelectionEnd();
public abstract int getSelectionEnd();
31,236
public abstract int getSelectionStart();
public abstract int getSelectionStart();
31,237
public abstract void select(int start_pos, int end_pos);
public abstract void select(int start_pos, int end_pos);
31,238
public abstract void setCaretPosition(int pos);
public abstract void setCaretPosition(int pos);
31,239
public abstract void setEditable(boolean editable);
public abstract void setEditable(boolean editable);
31,240
public abstract void setText(String text);
public abstract void setText(String text);
31,241
public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue) { Object value = Toolkit.getDefaultToolkit().getDesktopProperty(systemPropertyName); return value != null ? value : fallbackValue; }
public static Object getDesktopPropertyValue(String systemPropertyName, Object fallbackValue) { Object value = Toolkit.getDefaultToolkit().getDesktopProperty( systemPropertyName); return value != null ? value : fallbackValue; }
31,242
public static JTextComponent.KeyBinding[] makeKeyBindings(Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[i] i...
public static JTextComponent.KeyBinding[] makeKeyBindings( Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[i] ...
31,243
public static JTextComponent.KeyBinding[] makeKeyBindings(Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[i] i...
public static JTextComponent.KeyBinding[] makeKeyBindings(Object[] keyBindingList) { JTextComponent.KeyBinding[] retBindings = new JTextComponent.KeyBinding[keyBindingList.length / 2]; for (int i = 0; i < keyBindingList.length - 1; i+= 2) { KeyStroke stroke; if (keyBindingList[i] i...
31,244
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
publicvoidpaint(GlyphViewview,Graphicsg,Shapea,intp0,intp1){intheight=(int)getHeight(view);Segmenttxt=view.getText(p0,p1);Rectanglebounds=a.getBounds();TabExpandertabEx=null;Viewparent=view.getParent();if(parentinstanceofTabExpander)tabEx=(TabExpander)parent;//Fillthebackgroundofthetextrun.Colorbackground=view.getBackg...
31,245
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
31,246
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
} } } } public} void} paint(GlyphView} view,} Graphics} g,} Shape} a,} int} p0,} } } } } } } } } } } } } } } } } } } } } } int} p1)} } } } {} } } } } } int} height} =} (int)} getHeight(view);} } } } } } Segment} txt} =} view.getText(p0,} p1);} } } } } } Rectangle} bounds} =} a.getBounds();} } } } } } TabExpander} tabEx...
31,247
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
31,248
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
31,249
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
31,250
public GlyphView(Element element) { super(element); startOffset = element.getStartOffset(); endOffset = element.getEndOffset(); }
public GlyphView(Element element) { super(element); startOffset = element.getStartOffset(); endOffset = element.getEndOffset(); }
31,252
public Color getBackground() { Element el = getElement(); AttributeSet atts = el.getAttributes(); return StyleConstants.getBackground(atts); }
public Color getBackground() { Element el = getElement(); AttributeSet atts = el.getAttributes(); return (Color) atts.getAttribute(StyleConstants.Background); }
31,254
public int getBreakWeight(int axis, float pos, float len) { int weight; if (axis == Y_AXIS) weight = super.getBreakWeight(axis, pos, len); else { // Determine the model locations at pos and pos + len. int spanX = (int) getPreferredSpan(X_AXIS); int spanY = (int) getPreferredSp...
public int getBreakWeight(int axis, float pos, float len) { int weight; if (axis == Y_AXIS) weight = super.getBreakWeight(axis, pos, len); else { // Determine the model locations at pos and pos + len. int spanX = (int) getPreferredSpan(X_AXIS); int spanY = (int) getPreferredSp...
31,255
public int getEndOffset() { return endOffset; }
public int getEndOffset() { int end = endOffset; if (end < 0) end = super.getEndOffset(); return end; }
31,256
public int getStartOffset() { return startOffset; }
public int getStartOffset() { int start = startOffset; if (start < 0) start = super.getStartOffset(); return start; }
31,257
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory vf) { getParent().preferenceChanged(this, true, false); }
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory vf) { preferenceChanged(this, true, false); }
31,258
private boolean isNameCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB...
public static boolean isNameCharacter(int c, boolean xml11) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | ...
31,259
private boolean isNameCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB...
private boolean isNameCharacter(int c) { if (xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB7 | ...
31,260
private boolean isNameStartCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || (c >= 0xF8 && c ...
public static boolean isNameStartCharacter(int c, boolean xml11) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || ...
31,261
private boolean isNameStartCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || (c >= 0xF8 && c ...
private boolean isNameStartCharacter(int c) { if (xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || (c >= 0xF8 && c <= 0x2...
31,262
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0], input.xml11)) return false; } else { ...
31,263
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
31,264
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
31,265
private boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFD) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); }
public static boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFD) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); }
31,266
private boolean isXML11RestrictedChar(int c) { return ((c >= 0x0001 && c <= 0x0008) || (c >= 0x000B && c <= 0x000C) || (c >= 0x000E && c <= 0x001F) || (c >= 0x007F && c <= 0x0084) || (c >= 0x0086 && c <= 0x009F)); }
public static boolean isXML11RestrictedChar(int c) { return ((c >= 0x0001 && c <= 0x0008) || (c >= 0x000B && c <= 0x000C) || (c >= 0x000E && c <= 0x001F) || (c >= 0x007F && c <= 0x0084) || (c >= 0x0086 && c <= 0x009F)); }
31,267
private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ...
private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ...
31,268
private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ...
private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ...
31,269
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
public X500DistinguishedName() { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
31,271
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
31,272
public boolean equals(Object o) { return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) &&...
public boolean equals(Object o) { return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) &&...
31,273
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
31,274
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
31,275
public String getApproveButtonText() { if (approveButtonText == null) return getUI().getApproveButtonText(this); else return approveButtonText; }
public String getApproveButtonText() { if (approveButtonText == null) return getUI().getApproveButtonText(this); else return approveButtonText; }
31,278
public String getDescription(File f) { return getFileView().getDescription(f); }
public String getDescription(File f) { String result = null; if (fv != null) result = fv.getDescription(f); if (result == null) result = getUI().getFileView(this).getDescription(f); return result; }
31,279
public String getDialogTitle() { if (dialogTitle == null) return getUI().getDialogTitle(this); else return dialogTitle; }
public String getDialogTitle() { if (dialogTitle == null) return getUI().getDialogTitle(this); else return dialogTitle; }
31,280
public FileView getFileView() { if (fv == null) return getUI().getFileView(this); else return fv; }
public FileView getFileView() { if (fv == null) return getUI().getFileView(this); else return fv; }
31,281
public Icon getIcon(File f) { return getFileView().getIcon(f); }
public Icon getIcon(File f) { Icon result = null; if (fv != null) result = fv.getIcon(f); if (result == null) result = getUI().getFileView(this).getIcon(f); return result; }
31,282
public String getName(File f) { return getFileView().getName(f); }
public String getName(File f) { String name = null; if (fv != null) name = fv.getName(f); if (name == null) name = getUI().getFileView(this).getName(f); return name; }
31,283
public String getTypeDescription(File f) { return getFileView().getTypeDescription(f); }
public String getTypeDescription(File f) { String result = null; if (fv != null) result = getFileView().getTypeDescription(f); if (result == null) result = getUI().getFileView(this).getTypeDescription(f); return result; }
31,284
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } }
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } }
31,286
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } }
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } }
31,287
private void help(PrintStream out) { out.println("Usage:"); out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Al...
private void help(PrintStream out) { out.println("Usage:"); out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Al...
31,288
private void reset() { threads = null; threadIterator = null; }
private void reset() { threads = null; threadIterator = null; }
31,289
public Object run() { final PrintStream out = VmSystem.getOut(); switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w'...
public Object run() { final PrintStream out = VmSystem.getOut(); switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w'...
31,290
protected Rectangle getBox(Rectangle r) { if (!progressBar.isIndeterminate()) return null; if (r == null) r = new Rectangle(); Rectangle vr = new Rectangle(); SwingUtilities.calculateInnerArea(progressBar, vr); // Recalculate the metrics only when size of the progressbar has changed. if (...
protectedRectanglegetBox(Rectangler){if(!progressBar.isIndeterminate())returnnull;if(r==null)r=newRectangle();Rectanglevr=newRectangle();SwingUtilities.calculateInnerArea(progressBar,vr);//Recalculatethemetricsonlywhensizeoftheprogressbarhaschanged.if(incr==-1||boxDependent==-1||boxIndependent==-1){//numFrameshastobean...
31,292
public int[] getRowsForPaths(TreePath[] path);
public int[] getRowsForPaths(TreePath[] path);
31,293
protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; }
protected boolean accept (Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; }
31,294
protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; }
protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; }
31,295
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { StreamBasedRequest sr = (StreamBasedRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.co...
31,296
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
31,297
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
31,298
public InvokeHandler getHandler(String operation, CookieHolder cookie, boolean forwarding_allowed ) throws gnuForwardRequest { if (servant != null) return servantToHandler(servant); else { // Use servant...
public InvokeHandler getHandler(String operation, CookieHolder cookie, boolean forwarding_allowed ) throws gnuForwardRequest { if (servant != null) return servantToHandler(servant); else { // Use servant...
31,300
public InvokeHandler getHandler(String operation, CookieHolder cookie, boolean forwarding_allowed ) throws gnuForwardRequest { if (servant != null) return servantToHandler(servant); else { // Use servant...
public InvokeHandler getHandler(String operation, CookieHolder cookie, boolean forwarding_allowed ) throws gnuForwardRequest { if (servant != null) return servantToHandler(servant); else { // Use servant...
31,301
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) serverRequest = new LocalServerRequest(this); try ...
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) serverRequest = new LocalServerRequest(this); try ...
31,303
public void setServant(Servant a_servant) { if (a_servant != null && !(a_servant instanceof InvokeHandler) && !(a_servant instanceof DynamicImplementation) ) throw new BAD_PARAM("Must be either InvokeHandler or " + "DynamicImplementation, but is " + a_servant ...
public void setServant(Servant a_servant) { if (a_servant != null && !(a_servant instanceof InvokeHandler) && !(a_servant instanceof DynamicImplementation) ) throw new BAD_PARAM("Must be either InvokeHandler or " + "DynamicImplementation, but is " + a_servant ...
31,306
public void setServant(Servant a_servant) { if (a_servant != null && !(a_servant instanceof InvokeHandler) && !(a_servant instanceof DynamicImplementation) ) throw new BAD_PARAM("Must be either InvokeHandler or " + "DynamicImplementation, but is " + a_servant ...
{ { public{ void{ setServant(Servant{ a_servant){ { {{ { { { if{ (a_servant{ !={ null{ &&{ !(a_servant{ instanceof{ InvokeHandler){ &&{ { { { { { { { !(a_servant{ instanceof{ DynamicImplementation){ { { { { { { ){ { { { { { throw{ new{ BAD_PARAM("Must{ be{ either{ InvokeHandler{ or{ "{ +{ { { { { { { { { { { { { { { { ...
31,307
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); }
public static void setProperty(String key, String datum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); }
31,309
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); }
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); if (datum == null) secprops.remove(key); else secprops.put(key, datum); }
31,310
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
public Object decodeSignature(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) throw new IllegalArgumentException("mag...
31,311
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
31,312
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
public Object decodeSignature(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) throw new IllegalArgumentException("mag...
31,313
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
31,314
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
publicObjectdecodeSignature(byte[]k){//magicif(k[0]!=Registry.MAGIC_RAW_DSS_SIGNATURE[0]||k[1]!=Registry.MAGIC_RAW_DSS_SIGNATURE[1]||k[2]!=Registry.MAGIC_RAW_DSS_SIGNATURE[2]||k[3]!=Registry.MAGIC_RAW_DSS_SIGNATURE[3]){thrownewIllegalArgumentException("magic");}//versionif(k[4]!=0x01){thrownewIllegalArgumentException("...
31,315
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
31,316
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
publicObjectdecodeSignature(byte[]k){//magicif(k[0]!=Registry.MAGIC_RAW_DSS_SIGNATURE[0]||k[1]!=Registry.MAGIC_RAW_DSS_SIGNATURE[1]||k[2]!=Registry.MAGIC_RAW_DSS_SIGNATURE[2]||k[3]!=Registry.MAGIC_RAW_DSS_SIGNATURE[3]){thrownewIllegalArgumentException("magic");}//versionif(k[4]!=0x01){thrownewIllegalArgumentException("...
31,317
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
31,318
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(...
publicObjectdecodeSignature(byte[]k){//magicif(k[0]!=Registry.MAGIC_RAW_DSS_SIGNATURE[0]||k[1]!=Registry.MAGIC_RAW_DSS_SIGNATURE[1]||k[2]!=Registry.MAGIC_RAW_DSS_SIGNATURE[2]||k[3]!=Registry.MAGIC_RAW_DSS_SIGNATURE[3]){thrownewIllegalArgumentException("magic");}//versionif(k[4]!=0x01){thrownewIllegalArgumentException("...
31,319
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("signature"); } ByteArrayOutputStream baos = new ByteArr...
31,320
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
publicbyte[]encodeSignature(Objectsignature){BigIntegerr,s;try{BigInteger[]sig=(BigInteger[])signature;r=sig[0];s=sig[1];}catch(Exceptionx){thrownewIllegalArgumentException("key");}ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_DSS_SIGNATURE[0]);baos.write(Registry.MAGIC_RAW_D...
31,321
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
publicbyte[]encodeSignature(Objectsignature){BigIntegerr,s;try{BigInteger[]sig=(BigInteger[])signature;r=sig[0];s=sig[1];}catch(Exceptionx){thrownewIllegalArgumentException("key");}ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_DSS_SIGNATURE[0]);baos.write(Registry.MAGIC_RAW_D...
31,322
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
publicbyte[]encodeSignature(Objectsignature){BigIntegerr,s;try{BigInteger[]sig=(BigInteger[])signature;r=sig[0];s=sig[1];}catch(Exceptionx){thrownewIllegalArgumentException("key");}ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_DSS_SIGNATURE[0]);baos.write(Registry.MAGIC_RAW_D...
31,323
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
publicbyte[]encodeSignature(Objectsignature){BigIntegerr,s;try{BigInteger[]sig=(BigInteger[])signature;r=sig[0];s=sig[1];}catch(Exceptionx){thrownewIllegalArgumentException("key");}ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_DSS_SIGNATURE[0]);baos.write(Registry.MAGIC_RAW_D...
31,324
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
31,325
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
publicbyte[]encodeSignature(Objectsignature){BigIntegerr,s;try{BigInteger[]sig=(BigInteger[])signature;r=sig[0];s=sig[1];}catch(Exceptionx){thrownewIllegalArgumentException("key");}ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_DSS_SIGNATURE[0]);baos.write(Registry.MAGIC_RAW_D...
31,326
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
31,327
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp...
publicbyte[]encodeSignature(Objectsignature){BigIntegerr,s;try{BigInteger[]sig=(BigInteger[])signature;r=sig[0];s=sig[1];}catch(Exceptionx){thrownewIllegalArgumentException("key");}ByteArrayOutputStreambaos=newByteArrayOutputStream();//magicbaos.write(Registry.MAGIC_RAW_DSS_SIGNATURE[0]);baos.write(Registry.MAGIC_RAW_D...
31,328
public Color getBackground() { return bg; }
public Color getBackground() { Color background; if (bg == null) background = JTabbedPane.this.getBackground(); else background = bg; return background; }
31,329
public Color getForeground() { return fg; }
public Color getForeground() { Color foreground; if (fg == null) foreground = JTabbedPane.this.getForeground(); else foreground = fg; return foreground; }
31,330
public Component getSelectedComponent() { return getComponentAt(getSelectedIndex()); }
public Component getSelectedComponent() { int selectedIndex = getSelectedIndex(); Component selected = null; if (selectedIndex >= 0) selected = getComponentAt(selectedIndex); return selected; }
31,331
protected Class findClass(String name) throws ClassNotFoundException { for (int i = 0; i < loaders.length; i++) { try { return findClass(name); } catch (ClassNotFoundException e) { // try another. } } return super.findClass(name)...
protected Class findClass(String name) throws ClassNotFoundException { for (int i = 0; i < loaders.length; i++) { try { return loaders[i].loadClass(name); } catch (ClassNotFoundException e) { // try another. } } return super.find...
31,332
protected URL findResource(String name) { for (int i = 0; i < loaders.length; i++) { URL resource = findResource(name); if (resource != null) return resource; } return super.findResource(name); }
protected URL findResource(String name) { for (int i = 0; i < loaders.length; i++) { URL resource = loaders[i].getResource(name); if (resource != null) return resource; } return super.findResource(name); }
31,333
protected Enumeration findResources(String name) throws IOException { for (int i = 0; i < loaders.length; i++) { Enumeration resource = findResources(name); if (resource != null) return resource; } return super.findResources(name); }
protected Enumeration findResources(String name) throws IOException { for (int i = 0; i < loaders.length; i++) { Enumeration resource = loaders[i].getResources(name); if (resource != null) return resource; } return super.findResources(name); }
31,334
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JProgressBar) { progressBar = (JProgressBar) c; animationTimer = new Timer(); animationTimer.setRepeats(true); installDefaults(); installListeners(); } }
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JProgressBar) { progressBar = (JProgressBar) c; animationTimer = new Timer(); animationTimer.setRepeats(true); installDefaults(); installListeners(); } }
31,335
public void addItem(MenuItem item) { item.addNotify(); jComponent.add(((SwingMenuItemPeer)item.getPeer()).jComponent); }
public void addItem(MenuItem item) { item.addNotify(); jComponent.add(((SwingBaseMenuItemPeer)item.getPeer()).jComponent); }
31,336
public abstract void addItem (MenuItem item);
public abstract void addItem (MenuItem item);
31,337
public abstract void delItem (int index);
public abstract void delItem (int index);
31,338
public abstract void invoke(ServerRequest request);
public abstract void invoke(ServerRequest request);
31,339
public TypeCode type() { if (typecode != null) return typecode; else if (xKind >= 0) { typecode = new primitiveTypeCode(TCKind.from_int(xKind)); return typecode; } else return has != null ? has._type() : nullType; }
public TypeCode type() { if (typecode != null) return typecode; else if (xKind >= 0) { typecode = new PrimitiveTypeCode(TCKind.from_int(xKind)); return typecode; } else return has != null ? has._type() : nullType; }
31,340
private final void applyPatternWithSymbols (String pattern, DecimalFormatSymbols syms) { // Initialize to the state the parser expects. negativePrefix = ""; negativeSuffix = ""; positivePrefix = ""; positiveSuffix = ""; decimalSeparatorAlwaysShown = false; groupingSize = 0; minExponentDigits = 0; ...
private final void applyPatternWithSymbols (String pattern, DecimalFormatSymbols syms) { // Initialize to the state the parser expects. negativePrefix = ""; negativeSuffix = ""; positivePrefix = ""; positiveSuffix = ""; decimalSeparatorAlwaysShown = false; groupingSize = 0; minExponentDigits = 0; ...
31,341
private final String computePattern (DecimalFormatSymbols syms) { StringBuffer mainPattern = new StringBuffer (); // We have to at least emit a zero for the minimum number of // digits. Past that we need hash marks up to the grouping // separator (and one beyond). int total_digits = Math.max(minimumInteger...
private String computePattern(DecimalFormatSymbols syms) { StringBuffer mainPattern = new StringBuffer (); // We have to at least emit a zero for the minimum number of // digits. Past that we need hash marks up to the grouping // separator (and one beyond). int total_digits = Math.max(minimumIntegerDigits,...
31,342
private final boolean equals (String s1, String s2) { if (s1 == null || s2 == null) return s1 == s2; return s1.equals(s2); }
private boolean equals(String s1, String s2) { if (s1 == null || s2 == null) return s1 == s2; return s1.equals(s2); }
31,343