bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public synchronized void setSoTimeout(int timeout) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
public synchronized void setSoTimeout(int timeout) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
18,185
public void adjustDesktopSize(int width, int height) { setSize(width, height); doLayout(); repaint(); setVisible(false); show(); }
public void adjustDesktopSize(int width, int height) { setSize(width, height); doLayout(); repaint(); setVisible(false); show(); }
18,189
public JFrame(String title) { super(title); frameInit(); }
public JFrame() { super(title); frameInit(); }
18,190
public JFrame(String title) { super(title); frameInit(); }
public JFrame(String title) { super("JFrame"); frameInit(); }
18,191
public JDesktopPane() { // TODO } // JDesktopPane()
public JDesktopPane() { // TODO } // JDesktopPane()
18,192
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
18,193
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
18,194
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
18,195
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
18,196
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
18,197
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...
18,198
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...
18,199
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...
18,200
final List parseWithParams(Node node) throws TransformerConfigurationException, XPathExpressionException { List ret = new LinkedList(); while (node != null) { String namespaceUri = node.getNamespaceURI(); if (Stylesheet.XSL_NS.equals(namespaceUri) && Node.ELEMENT_NODE == node.g...
final List parseWithParams(Node node) throws TransformerConfigurationException, XPathExpressionException { List ret = new LinkedList(); while (node != null) { String namespaceUri = node.getNamespaceURI(); if (Stylesheet.XSL_NS.equals(namespaceUri) && Node.ELEMENT_NODE == node.g...
18,201
Bindings(Stylesheet stylesheet) { this.stylesheet = stylesheet; variables = new LinkedList(); parameters = new LinkedList(); push(true); push(false); }
Bindings(Stylesheet stylesheet) { this.stylesheet = stylesheet; variables = new LinkedList(); parameters = new LinkedList(); push(true); push(false); }
18,202
Template clone(Stylesheet stylesheet) { // FIXME by cloning we lose the imports() functionality, so // apply-imports will be broken. return new Template(stylesheet, name, (match == null) ? null : (Pattern) match.clone(stylesheet), ...
Template clone(Stylesheet stylesheet) { // FIXME by cloning we lose the imports() functionality, so // apply-imports will be broken. return new Template(stylesheet, name, (match == null) ? null : (Pattern) match.clone(stylesheet), ...
18,203
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), global); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = n...
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), type); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = nex...
18,204
ParameterNode(String name, Expr select, boolean global) { this.name = name; this.select = select; this.global = global; }
ParameterNode(QName name, Expr select, int type) { this.name = name; this.select = select; this.global = global; }
18,205
ParameterNode(String name, Expr select, boolean global) { this.name = name; this.select = select; this.global = global; }
ParameterNode(String name, Expr select, boolean global) { this.name = name; this.select = select; this.type = type; }
18,206
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, String priorityAttr, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test...
18,207
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
18,208
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
18,209
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
18,210
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
18,211
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
18,212
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
Template(Stylesheet stylesheet, QName name, Pattern match, TemplateNode node, int precedence, double priority, QName mode) { this.stylesheet = stylesheet; this.name = name; this.match = match; this.node = node; // adjust priority if necessary // see XSLT section 5.5 Test tes...
18,213
WithParam(String name, Expr select) { this.name = name; this.select = select; content = null; }
WithParam(QName name, Expr select) { this.name = name; this.select = select; content = null; }
18,214
public abstract void setColorModel(ColorModel model);
void setColorModel(ColorModel model);
18,215
public abstract void setDimensions(int width, int height);
void setDimensions(int width, int height);
18,216
public abstract void setHints(int flags);
void setHints(int flags);
18,217
public abstract void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize);
void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize);
18,218
public abstract void setProperties(Hashtable props);
void setProperties(Hashtable props);
18,219
public PrivateKeyUsagePeriod(final byte[] encoded) throws IOException { super(encoded); DERReader der = new DERReader(encoded); DERValue val = der.read(); if (!val.isConstructed()) throw new IOException("malformed PrivateKeyUsagePeriod"); if (val.getLength() > 0) val = der.read(); if (val...
public PrivateKeyUsagePeriod(final byte[] encoded) throws IOException { super(encoded); DERReader der = new DERReader(encoded); DERValue val = der.read(); if (!val.isConstructed()) throw new IOException("malformed PrivateKeyUsagePeriod"); if (val.getLength() > 0) val = der.read(); if (val...
18,220
public PrivateKeyUsagePeriod(final byte[] encoded) throws IOException { super(encoded); DERReader der = new DERReader(encoded); DERValue val = der.read(); if (!val.isConstructed()) throw new IOException("malformed PrivateKeyUsagePeriod"); if (val.getLength() > 0) val = der.read(); if (val...
public PrivateKeyUsagePeriod(final byte[] encoded) throws IOException { super(encoded); DERReader der = new DERReader(encoded); DERValue val = der.read(); if (!val.isConstructed()) throw new IOException("malformed PrivateKeyUsagePeriod"); if (val.getLength() > 0) val = der.read(); if (val...
18,221
public void setCellRenderer(TableCellRenderer renderer) { if (cellRenderer == renderer) return; TableCellRenderer oldRenderer = cellRenderer; cellRenderer = renderer; firePropertyChange(CELL_RENDERER_PROPERTY, oldRenderer, cellRenderer); }
public void setCellRenderer(TableCellRenderer renderer) { if (cellRenderer == renderer) return; TableCellRenderer oldRenderer = cellRenderer; cellRenderer = renderer; firePropertyChange(CELL_RENDERER_PROPERTY, oldRenderer, cellRenderer); }
18,223
public void setHeaderRenderer(TableCellRenderer renderer) { if (headerRenderer == renderer) return; TableCellRenderer oldRenderer = headerRenderer; headerRenderer = renderer; firePropertyChange(HEADER_RENDERER_PROPERTY, oldRenderer, headerRenderer); }
public void setHeaderRenderer(TableCellRenderer renderer) { if (headerRenderer == renderer) return; TableCellRenderer oldRenderer = headerRenderer; headerRenderer = renderer; firePropertyChange(HEADER_RENDERER_PROPERTY, oldRenderer, headerRenderer); }
18,224
public void setHeaderValue(Object headerValue) { if (this.headerValue == headerValue) return; Object oldValue = this.headerValue; this.headerValue = headerValue; firePropertyChange(HEADER_VALUE_PROPERTY, oldValue, headerValue); }
public void setHeaderValue(Object headerValue) { if (this.headerValue == headerValue) return; Object oldValue = this.headerValue; this.headerValue = headerValue; changeSupport.firePropertyChange(HEADER_VALUE_PROPERTY, oldValue, headerValue); }
18,225
public void setMaxWidth(int maxWidth) { this.maxWidth = maxWidth; setWidth(getWidth()); setPreferredWidth(getPreferredWidth()); }
public void setMaxWidth(int maxWidth) { this.maxWidth = maxWidth; setWidth(getWidth()); setPreferredWidth(getPreferredWidth()); }
18,227
public void setMinWidth(int minWidth) { this.minWidth = minWidth; setWidth(getWidth()); setPreferredWidth(getPreferredWidth()); }
public void setMinWidth(int minWidth) { this.minWidth = minWidth; setWidth(getWidth()); setPreferredWidth(getPreferredWidth()); }
18,228
public void setPreferredWidth(int preferredWidth) { int oldPrefWidth = this.preferredWidth; if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; firePropertyChange("p...
public void setPreferredWidth(int preferredWidth) { int oldPrefWidth = this.preferredWidth; if (preferredWidth < minWidth) this.preferredWidth = minWidth; else if (preferredWidth > maxWidth) this.preferredWidth = maxWidth; else this.preferredWidth = preferredWidth; changeSupport.firePro...
18,230
public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; // We do have a constant field COLUMN_WIDTH_PROPERTY, // however, tests ...
public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; // We do have a constant field COLUMN_WIDTH_PROPERTY, // however, tests ...
18,232
protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { super(component); // TODO }
protected AccessibleJRadioButtonMenuItem() { super(component); // TODO }
18,234
protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { super(component); // TODO }
protected AccessibleJRadioButtonMenuItem(JRadioButtonMenuItem component) { // TODO }
18,235
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJRadioButtonMenuItem(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJRadioButtonMenuItem(); return accessibleContext; }
18,236
AccessibleJMenuItem(JMenuItem component) { super(component); // TODO }
AccessibleJMenuItem() { super(component); // TODO }
18,237
AccessibleJMenuItem(JMenuItem component) { super(component); // TODO }
AccessibleJMenuItem(JMenuItem component) { // TODO }
18,238
public ColorSelectionModel getColorSelectionModel() { return null; // TODO } // getColorSelectionModel()
public ColorSelectionModel getColorSelectionModel() { return null; // TODO } // getColorSelectionModel()
18,239
public SpinnerNumberModel(int value, int minimum, int maximum, int stepSize) { this(new Integer(value), new Integer(minimum), new Integer(maximum), new Integer(stepSize)); }
public SpinnerNumberModel() { this(new Integer(value), new Integer(minimum), new Integer(maximum), new Integer(stepSize)); }
18,240
public SpinnerNumberModel(int value, int minimum, int maximum, int stepSize) { this(new Integer(value), new Integer(minimum), new Integer(maximum), new Integer(stepSize)); }
public SpinnerNumberModel(int value, int minimum, int maximum, int stepSize) { this(new Integer(value), new Integer(minimum), new Integer(maximum), new Integer(stepSize)); }
18,241
public void paint(Graphics graphics) { // TODO } // paint()
public void paint(Graphics graphics) { super.paint(graphics); // TODO } // paint()
18,242
protected Color getColorFromModel() { return null; // TODO } // getColorFromModel()
protected Color getColorFromModel() { return null; // TODO } // getColorFromModel()
18,243
public static Integer getInteger(String nm, Integer def) { if (nm == null || "".equals(nm)) return def; nm = System.getProperty(nm); if (nm == null) return def; try { return decode(nm); } catch (NumberFormatException e) { return def; } }
public static Integer getInteger(String nm) { if (nm == null || "".equals(nm)) return def; nm = System.getProperty(nm); if (nm == null) return def; try { return decode(nm); } catch (NumberFormatException e) { return def; } }
18,244
public static Integer getInteger(String nm, Integer def) { if (nm == null || "".equals(nm)) return def; nm = System.getProperty(nm); if (nm == null) return def; try { return decode(nm); } catch (NumberFormatException e) { return def; } }
public static Integer getInteger(String nm, Integer def) { if (nm == null || "".equals(nm)) return def; nm = System.getProperty(nm); if (nm == null) return def; try { return decode(nm); } catch (NumberFormatException e) { return def; } }
18,245
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset() - 1); //...
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { // FIXME: Selected text are not drawn yet. Element line = getElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset() - 1); //drawSelectedText(g, , , , ); ...
18,246
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset() - 1); //...
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { metrics = g.getFontMetrics(); // FIXME: Selected text are not drawn yet. Element line = getElement().getElement(lineIndex); drawUnselectedText(g, x, y, line.getStartOffset(), line.getEndOffset() - 1); //...
18,247
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(selectedColor); Segment segment = getLineBuffer(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0); }
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(selectedColor); Segment segment = getLineBuffer(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, segment.offset); }
18,248
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.ge...
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.ge...
18,249
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.ge...
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.ge...
18,250
charsWidth(char buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width += charWidth(buf[i]); return(total_width);}
charsWidth(char buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width += charWidth(buf[i]); return(total_width);}
18,251
charsWidth(char buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width += charWidth(buf[i]); return(total_width);}
charsWidth(char buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width += charWidth(buf[i]); return(total_width);}
18,252
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font...
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font...
18,253
charWidth(char ch){ return(1);}
charWidth(char ch){ return(1);}
18,255
paramString(){ return ("label=" + getLabel() + ",actionCommand=" + getActionCommand() + "," + super.paramString());}
paramString(){ return ("label=" + getLabel() + ",actionCommand=" + getActionCommand() + "," + super.paramString());}
18,257
public PathIterator getPathIterator(AffineTransform at) { final GeneralPath path = new GeneralPath(GeneralPath.WIND_NON_ZERO, 32); final float x = (float)getX(); final float y = (float)getY(); final float w = (float)getWidth(); final float h = (float)getHeight(); final float hw = w / 2; final float hh = h / 2; ...
public PathIterator getPathIterator(AffineTransform at) { final GeneralPath path = new GeneralPath(GeneralPath.WIND_NON_ZERO, 32); final float x = (float)getX(); final float y = (float)getY(); final float w = (float)getWidth(); final float h = (float)getHeight(); final float hw = w / 2; final float hh = h / 2; ...
18,258
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ...
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ...
18,259
public AccessException(String s, Exception e) { super(s, e); }
public AccessException(String s) { super(s, e); }
18,260
public AccessException(String s, Exception e) { super(s, e); }
public AccessException(String s, Exception e) { super(s); }
18,261
public activeObjectMap.Obj findObject(org.omg.CORBA.Object object) { activeObjectMap.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ...
public AOM.Obj findObject(org.omg.CORBA.Object object) { activeObjectMap.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ...
18,262
public activeObjectMap.Obj findObject(org.omg.CORBA.Object object) { activeObjectMap.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ...
public activeObjectMap.Obj findObject(org.omg.CORBA.Object object) { AOM.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ...
18,263
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-...
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-...
18,265
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-...
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-...
18,266
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-...
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-...
18,267
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,268
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,269
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,270
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,271
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,273
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,274
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,275
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,277
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ...
18,278
boolean match(CharIndexed input, REMatch mymatch) { if (firstToken == null) return next(input, mymatch); // Note the start of this subexpression mymatch.start[subIndex] = mymatch.index; return firstToken.match(input, mymatch); }
boolean match(CharIndexed input, REMatch mymatch) { if (firstToken == null) return next(input, mymatch); // Note the start of this subexpression mymatch.start[subIndex] = mymatch.index; return firstToken.match(input, mymatch); }
18,279
private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m; while ((m = getMatchImpl(input,index,eflags,buffer)) != null) { buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(replace) ); ...
private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m; while ((m = getMatchImpl(input,index,eflags,buffer)) != null) { buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(replace) ); ...
18,280
private String substituteImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m = getMatchImpl(input,index,eflags,buffer); if (m==null) return buffer.toString(); buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(r...
private String substituteImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m = getMatchImpl(input,index,eflags,buffer); if (m==null) return buffer.toString(); buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(r...
18,281
public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ...
public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ...
18,282
public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ...
public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ...
18,283
public void drawString(String text, int x, int y) { // System.out.println("drawText():" + text); if (this.font != null) ((JNodeToolkit) Toolkit.getDefaultToolkit()).getFontManager() .drawText(this, text, font, x, y); }
public void drawString(String text, int x, int y) { // System.out.println("drawText():" + text); if (this.font != null) ((JNodeToolkit) Toolkit.getDefaultToolkit()).getFontManager() .drawText(this, text, font, x, y); }
18,284
protected Dimension getMinimumThumbSize() { if (isFreeStanding) return MIN_THUMB_SIZE_FREE_STANDING; else return MIN_THUMB_SIZE; }
protected Dimension getMinimumThumbSize() { if (isFreeStanding) retVal = MIN_THUMB_SIZE_FREE_STANDING; else return MIN_THUMB_SIZE; }
18,285
protected Dimension getMinimumThumbSize() { if (isFreeStanding) return MIN_THUMB_SIZE_FREE_STANDING; else return MIN_THUMB_SIZE; }
protected Dimension getMinimumThumbSize() { if (isFreeStanding) return MIN_THUMB_SIZE_FREE_STANDING; else retVal = MIN_THUMB_SIZE; }
18,286
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; if (scrollbar.getOrientation() == HORIZONTAL) paintThumbHorizontal(g, c, thumbBounds); else paintThumbVertical(g, c, thu...
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; if (scrollbar.getOrientation() == HORIZONTAL) paintThumbHorizontal(g, c, thumbBounds); else paintThumbVertical(g, c, thu...
18,289
public Dimension getPreferredSize(JComponent c) { layoutContainer(scrollbar); return preferredSize; }
public Dimension getPreferredSize(JComponent c) { calculatePreferredSize(); return preferredSize; }
18,294
public SocketPermission(String hostport, String actions) { super(hostport); this.hostport = hostport; this.mask = getMask(actions); this.actions = actions; }
public SocketPermission(String hostport, String actions) { super(hostport); this.hostport = hostport; this.actions = actions; }
18,295
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ...
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ...
18,296
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ...
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return true; re...
18,297
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ...
public boolean equals(Object obj) { if (obj == null) return false; if (!(obj instanceof SocketPermission)) return false; if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); retu...
18,298
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
18,299
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if (actions.indexOf("connect") != -1) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.appen...
18,300
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); found = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
18,301
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
18,302
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")...
18,303