bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private static final BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return BigInteger.make((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + ...
private static final BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return valueOf((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + 1); i...
15,388
public static BigInteger valueOf(long val) { return make(val); }
public static BigInteger valueOf(long val) { if (val >= minFixNum && val <= maxFixNum) return smallFixNums[(int) val - minFixNum]; int i = (int) val; if ((long) i == val) return new BigInteger(i); BigInteger result = alloc(2); result.ival = 2; result.words[0] = i; result.words[1] = (int)(val >> 32); return result...
15,389
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
15,390
public void repaint() { paintComponent(); }
public void repaint() { paintComponent(); }
15,392
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
15,393
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
15,394
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); el...
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); el...
15,395
protected boolean isEofCluster(long entry) { return (entry >= eofMarker); }
protected boolean isEofCluster(long entry) { switch (bitSize) { case 12 : return (entry >=0xFF8); case 16 : return ((entry >= 0xFFF8)); case 32 : return (entry >= 0xFFFFFFF8); default : throw new IllegalArgumentException("Invalid bitSize " + bitSize); } }
15,396
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; ResponseHandlerImpl i_handler = null; try...
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; ResponseHandlerImpl i_handler = null; try...
15,397
public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); }
public VolatileImage createVolatileImage(int width, int height) { if (peer != null) return peer.createVolatileImage(width, height); return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); }
15,399
public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); }
public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); }
15,400
void dispatchEventImpl(AWTEvent e) { // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusEvent)e).getOppositeComponent()); if (...
void dispatchEventImpl(AWTEvent e) { // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusEvent)e).getOppositeComponent()); if (...
15,401
static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int mods = ie.getM...
static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof WindowEvent) { WindowEvent we = (WindowEvent) e; int id = we.id; int newId = 0; switch (id) { case WindowEvent.WINDOW_DEICONIFIED: newId = Event.WINDOW_DEICONIFY; break; case WindowEvent.WIN...
15,402
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
15,403
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
15,404
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
void parse(Node node, boolean root) throws TransformerConfigurationException { while (node != null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
15,408
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
15,409
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
15,410
final TemplateNode parseApplyTemplates(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String m = getAttribute(attrs, "mode"); QName mode = (m == null) ? null : getQName(m); String s = getAttribute(att...
final TemplateNode parseApplyTemplates(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String m = getAttribute(attrs, "mode"); QName mode = (m == null) ? null : getQName(m); String s = getAttribute(attrs, "select"); if (s ==...
15,411
final TemplateNode parseApplyTemplates(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String m = getAttribute(attrs, "mode"); QName mode = (m == null) ? null : getQName(m); String s = getAttribute(att...
final TemplateNode parseApplyTemplates(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String m = getAttribute(attrs, "mode"); QName mode = (m == null) ? null : getQName(m); String s = getAttribute(att...
15,412
final TemplateNode parseAttribute(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); TemplateN...
final TemplateNode parseAttribute(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); TemplateNode n = parseAttributeValu...
15,413
final TemplateNode parseAttribute(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); TemplateN...
final TemplateNode parseAttribute(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); TemplateN...
15,414
final TemplateNode parseAttributeValueTemplate(String value, Node source) throws TransformerConfigurationException, XPathExpressionException { current = source; // Tokenize int len = value.length(); int off = 0; List tokens = new ArrayList(); // text tokens List types = new ArrayList(); // liter...
final TemplateNode parseAttributeValueTemplate(String value, Node source) throws TransformerConfigurationException, XPathExpressionException { current = source; // Tokenize int len = value.length(); int off = 0; List tokens = new ArrayList(); // text tokens List types = new ArrayList(); // liter...
15,415
final TemplateNode parseAttributeValueTemplate(String value, Node source) throws TransformerConfigurationException, XPathExpressionException { current = source; // Tokenize int len = value.length(); int off = 0; List tokens = new ArrayList(); // text tokens List types = new ArrayList(); // liter...
final TemplateNode parseAttributeValueTemplate(String value, Node source) throws TransformerConfigurationException, XPathExpressionException { current = source; // Tokenize int len = value.length(); int off = 0; List tokens = new ArrayList(); // text tokens List types = new ArrayList(); // liter...
15,416
final TemplateNode parseCallTemplate(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String n = getRequiredAttribute(attrs, "name", node); QName name = getQName(n); List withParams = parseWithParams(ch...
final TemplateNode parseCallTemplate(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String n = getRequiredAttribute(attrs, "name", node); QName name = getQName(n); List withParams = parseWithParams(children); return new Cal...
15,417
final TemplateNode parseCallTemplate(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String n = getRequiredAttribute(attrs, "name", node); QName name = getQName(n); List withParams = parseWithParams(ch...
final TemplateNode parseCallTemplate(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String n = getRequiredAttribute(attrs, "name", node); QName name = getQName(n); List withParams = parseWithParams(ch...
15,418
final TemplateNode parseCopy(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String uas = getAttribute(attrs, "use-attribute-sets"); return new CopyNode(parse(children), parse(next), uas); }
final TemplateNode parseCopy(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String uas = getAttribute(attrs, "use-attribute-sets"); return new CopyNode(parse(children), parse(next), uas); }
15,419
final TemplateNode parseCopy(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String uas = getAttribute(attrs, "use-attribute-sets"); return new CopyNode(parse(children), parse(next), uas); }
final TemplateNode parseCopy(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String uas = getAttribute(attrs, "use-attribute-sets"); Node children = node.getFirstChild(); CopyNode ret = new CopyNode(uas);...
15,420
final TemplateNode parseCopyOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); Expr select = (Expr) xpath.compile(s); return new CopyOfNode(parse...
final TemplateNode parseCopyOf(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); Expr select = (Expr) xpath.compile(s); return new CopyOfNode(parse(children), parse(next), s...
15,421
final TemplateNode parseCopyOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); Expr select = (Expr) xpath.compile(s); return new CopyOfNode(parse...
final TemplateNode parseCopyOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); Expr select = (Expr) xpath.compile(s); Node children = node.getFir...
15,422
final TemplateNode parseElement(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); String uas ...
final TemplateNode parseElement(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); String uas = getAttribute(attrs, "use...
15,423
final TemplateNode parseElement(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); String uas ...
final TemplateNode parseElement(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); String uas ...
15,424
final TemplateNode parseForEach(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpa...
final TemplateNode parseForEach(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpath.compile(s); return n...
15,425
final TemplateNode parseForEach(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpa...
final TemplateNode parseForEach(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpa...
15,426
final TemplateNode parseIf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new IfNode(parse(children), ...
final TemplateNode parseIf(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new IfNode(parse(children), parse(next), test); }
15,427
final TemplateNode parseIf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new IfNode(parse(children), ...
final TemplateNode parseIf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); Node children = node.getFirstChild(...
15,428
final TemplateNode parseMessage(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getAttribute(attrs, "terminate"); boolean terminate = "yes".equals(t); return new MessageNode(parse(children),...
final TemplateNode parseMessage(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getAttribute(attrs, "terminate"); boolean terminate = "yes".equals(t); return new MessageNode(parse(children), parse(next), terminate); ...
15,429
final TemplateNode parseMessage(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getAttribute(attrs, "terminate"); boolean terminate = "yes".equals(t); return new MessageNode(parse(children),...
final TemplateNode parseMessage(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getAttribute(attrs, "terminate"); boolean terminate = "yes".equals(t); Node children = node.getFirstChild(); M...
15,430
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
final TemplateNode parseNumber(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"; } TemplateNode f...
15,431
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
15,432
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
15,433
final TemplateNode parseProcessingInstruction(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); return...
final TemplateNode parseProcessingInstruction(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); return...
15,436
final TemplateNode parseProcessingInstruction(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); return...
final TemplateNode parseProcessingInstruction(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); return...
15,437
final Template parseTemplate(Node node, NamedNodeMap attrs) throws TransformerConfigurationException, XPathExpressionException { String n = getAttribute(attrs, "name"); QName name = (n == null) ? null : getQName(n); String m = getAttribute(attrs, "match"); Pattern match = null; if (m != null) ...
final Template parseTemplate(Node node, NamedNodeMap attrs) throws TransformerConfigurationException, XPathExpressionException { String n = getAttribute(attrs, "name"); QName name = (n == null) ? null : getQName(n); String m = getAttribute(attrs, "match"); Pattern match = null; if (m != null) ...
15,438
final TemplateNode parseText(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String doe = getAttribute(attrs, "disable-output-escaping"); boolean d = "yes".equals(doe); return new TextNode(parse(childr...
final TemplateNode parseText(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String doe = getAttribute(attrs, "disable-output-escaping"); boolean d = "yes".equals(doe); return new TextNode(parse(children), parse(next), d); }
15,439
final TemplateNode parseText(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String doe = getAttribute(attrs, "disable-output-escaping"); boolean d = "yes".equals(doe); return new TextNode(parse(childr...
final TemplateNode parseText(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String doe = getAttribute(attrs, "disable-output-escaping"); boolean d = "yes".equals(doe); Node children = node.getFirstChi...
15,440
final TemplateNode parseValueOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); String doe = getAttribute(attrs, "disable-output-escaping"); bool...
final TemplateNode parseValueOf(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); String doe = getAttribute(attrs, "disable-output-escaping"); boolean d = "yes".equals(doe);...
15,441
final TemplateNode parseValueOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); String doe = getAttribute(attrs, "disable-output-escaping"); bool...
final TemplateNode parseValueOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); String doe = getAttribute(attrs, "disable-output-escaping"); bool...
15,442
final TemplateNode parseWhen(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new WhenNode(parse(childre...
final TemplateNode parseWhen(Node node) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new WhenNode(parse(children), parse(next), test); }
15,443
final TemplateNode parseWhen(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new WhenNode(parse(childre...
final TemplateNode parseWhen(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); Node children = node.getFirstChil...
15,444
BasicOptionPaneUI() { }
BasicOptionPaneUI() { }
15,446
public boolean containsCustomComponents(JOptionPane op) { throw new Error ("Not implemented"); }
public boolean containsCustomComponents(JOptionPane op) { return hasCustomComponents; }
15,447
Dimension getMinimumOptionPaneSize() { return new Dimension(300,100); }
Dimension getMinimumOptionPaneSize() { return new Dimension(300,100); }
15,448
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.w...
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.w...
15,449
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.w...
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.w...
15,450
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { System.o...
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { System.o...
15,451
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { System.o...
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { System.o...
15,452
public void selectInitialValue(JOptionPane op) { throw new Error ("Not implemented"); }
public void selectInitialValue(JOptionPane op) { if (inputComponent != null) { inputComponent.requestFocus(); return; } if (initialFocusComponent != null) initialFocusComponent.requestFocus(); }
15,453
protected Point getPopupMenuOrigin() { // if menu in the menu bar if (isTopLevelMenu()) return new Point(0, this.getHeight()); // if submenu return new Point(this.getWidth(), 0); }
protected Point getPopupMenuOrigin() { // if menu in the menu bar if (isTopLevelMenu()) { int xOffset = UIManager.getInt("Menu.menuPopupOffsetX"); int yOffset = UIManager.getInt("Menu.menuPopupOffsetY"); if (getComponentOrientation().isLeftToRight()) { point.x = xOffset; if (screenLoc.x + point.x + po...
15,456
protected Point getPopupMenuOrigin() { // if menu in the menu bar if (isTopLevelMenu()) return new Point(0, this.getHeight()); // if submenu return new Point(this.getWidth(), 0); }
protected Point getPopupMenuOrigin() { // if menu in the menu bar if (isTopLevelMenu()) return new Point(0, this.getHeight()); // if submenu return point; }
15,457
public void setPopupMenuVisible(boolean popup) { if (getModel().isEnabled()) popupMenu.setVisible(popup); }
public void setPopupMenuVisible(boolean popup) { if (getModel().isEnabled()) popupMenu.setVisible(popup); }
15,458
private void setSelectedHelper(boolean selected, boolean menuEnabled, boolean showMenu) { // If menu is selected and enabled, activates the menu and // displays associated popup. if (selected && menuEnabled) { super.setArmed(true); super.setSelected(true); // FIXME: The popup menu should be shown ...
private void setSelectedHelper(boolean selected, boolean menuEnabled, boolean showMenu) { // If menu is selected and enabled, activates the menu and // displays associated popup. if (selected && menuEnabled) { super.setArmed(true); super.setSelected(true); // FIXME: The popup menu should be shown ...
15,460
public void write(byte[] data) throws IOException, NotImplementedException { write(data, 0, data.length); }
public void write(byte[] data) throws IOException { write(data, 0, data.length); }
15,461
public void writeBits(long bits, int numBits) throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
public void writeBits(long bits, int numBits) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
15,462
public void writeBytes(String data) throws IOException { write(data.getBytes()); }
public void writeBytes(String data) throws IOException { int len = data.length(); for (int i = 0; i < len; ++i) writeByte(data.charAt(i)); }
15,463
public void writeChar(int value) throws IOException { writeShort((short) value); }
public void writeChar(int value) throws IOException { writeShort(value); }
15,464
public void writeDouble(double value) throws IOException { writeLong((long) value); }
public void writeDouble(double value) throws IOException { writeLong(Double.doubleToLongBits(value)); }
15,465
public void writeFloat(float value) throws IOException { writeInt((int) value); }
public void writeFloat(float value) throws IOException { writeInt(Float.floatToIntBits(value)); }
15,466
public void writeUTF(String data) throws IOException, NotImplementedException { throw new Error("not implemented"); }
public void writeUTF(String data) throws IOException, NotImplementedException { throw new Error("not implemented"); }
15,467
public void writeUTF(String data) throws IOException, NotImplementedException { throw new Error("not implemented"); }
public void writeUTF(String data) throws IOException, NotImplementedException { int len = value.length(); int sum = 0; for (int i = 0; i < len && sum <= 65535; ++i) { char c = value.charAt(i); if (c >= '\u0001' && c <= '\u007f') sum += 1; else if (c == '\u0000' || (c >= '\u0080' && c <= '\u07ff')) sum += 2; e...
15,468
public int getSelectedColumnCount() { return 0; // TODO }
public int getSelectedColumnCount() { ListSelectionModel lsm = this.selectionModel; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; break; case ListSelectionModel...
15,469
public int[] getSelectedColumns() { return null; // TODO }
public int[] getSelectedColumns() { ListSelectionModel lsm = this.selectionModel; int sz = getSelectedColumnCount(); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { switch ...
15,470
public static Vector getInterfaces() throws SocketException { final VMNetAPI api = VMNetUtils.getAPI(); final Collection devs = api.getNetDevices(); final Vector intfs = new Vector(); for (Iterator i = devs.iterator(); i.hasNext(); ) { final VMNetDevice dev = (VMNetDevice)i.ne...
public static Vector getInterfaces() throws SocketException { final VMNetAPI api = VMNetUtils.getAPI(); final Collection devs = api.getNetDevices(); final Vector intfs = new Vector(); for (Iterator i = devs.iterator(); i.hasNext(); ) { final VMNetDevice dev = (VMNetDevice)i.ne...
15,471
public String toString() { // 64 is a reasonable buffer initial size for field StringBuffer sb = new StringBuffer(64); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getType().getName()).append(' '); sb.append(getDeclaringClass().getName()).append('.'); sb.append(getName()); return sb.toString(); ...
public String toString() { // 64 is a reasonable buffer initial size for field StringBuffer sb = new StringBuffer(64); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getType().getName()).append(' '); sb.append(getDeclaringClass().getName()).append('.'); sb.append(getName()); return sb.toString(); ...
15,475
public static boolean _boolean(Node context, Object object) { if (object instanceof Boolean) { return ((Boolean) object).booleanValue(); } if (object instanceof Double) { return ((Double) object).doubleValue() != 0.0; } if (object instanceof String) { return ((S...
public static boolean _boolean(Node context, Object object) { if (object instanceof Boolean) { return ((Boolean) object).booleanValue(); } if (object instanceof Double) { Double value = (Double) object; if (value.isNaN()) return false; return value.doubleValue() != 0.0; } i...
15,476
public static String _local_name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getLocalName(); }
public static String _local_name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getLocalName(); }
15,477
public static String _name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: return node....
public static String _name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: return node....
15,478
public static String _name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: return node....
public static String _name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: return node....
15,479
public static String _namespace_uri(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getNamespaceURI(); }
public static String _namespace_uri(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getNamespaceURI(); }
15,481
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(pluginId); if(pdm != null){ isvalid = false; ...
public void refresh(){ try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(pluginId); if(pdm != null){ isvalid = false; for(Plu...
15,482
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(pluginId); if(pdm != null){ isvalid = false; ...
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(pluginId); if(pdm != null){ isvalid = false; ...
15,483
public JIFSFpluginJar(String id, FSDirectory parent) { super(id + ".jar", parent); this.id = id; refresh(); }
public JIFSFpluginJar(String id, FSDirectory parent) { super(id + ".jar", parent); this.id = id; refresh(); }
15,484
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(id); if(pdm != null){ buffer = pdm.getJarFile().get...
public void refresh(){ try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(id); if(pdm != null){ buffer = pdm.getJarFile().getBuffer(); ...
15,485
public JScrollBar() { this(SwingConstants.HORIZONTAL, 0, 10, 0, 100); }
public JScrollBar() { this(SwingConstants.VERTICAL, 0, 10, 0, 100); }
15,486
public void addAdjustmentListener(AdjustmentListener listener) { adjustmentListenerList.add(AdjustmentListener.class, listener); }
public void addAdjustmentListener(AdjustmentListener listener) { listenerList.add(AdjustmentListener.class, listener); }
15,487
public void addChangeListener(ChangeListener listener) { changeListenerList.add(ChangeListener.class, listener); }
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); }
15,488
protected void fireAdjustmentValueChanged(int id, int type, int value) { Object[] adjustmentListeners = adjustmentListenerList.getListenerList(); AdjustmentEvent adjustmentEvent = new AdjustmentEvent(this, AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED, AdjustmentE...
protected void fireAdjustmentValueChanged(int id, int type, int value) { Object[] adjustmentListeners = listenerList.getListenerList(); AdjustmentEvent adjustmentEvent = new AdjustmentEvent(this, AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED, AdjustmentEvent.TRACK...
15,489
private void fireStateChanged() { Object[] changeListeners = changeListenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeList...
private void fireStateChanged() { Object[] changeListeners = listenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeListeners[...
15,490
public AdjustmentListener[] getAdjustmentListeners() { return (AdjustmentListener[]) adjustmentListenerList.getListenerList(); }
public AdjustmentListener[] getAdjustmentListeners() { return (AdjustmentListener[]) listenerList.getListeners(AdjustmentListener.class); }
15,491
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) changeListenerList.getListenerList(); }
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) listenerList.getListeners(ChangeListener.class); }
15,492
public void removeAdjustmentListener(AdjustmentListener listener) { adjustmentListenerList.remove(AdjustmentListener.class, listener); }
public void removeAdjustmentListener(AdjustmentListener listener) { listenerList.remove(AdjustmentListener.class, listener); }
15,493
public void removeChangeListener(ChangeListener listener) { changeListenerList.remove(ChangeListener.class, listener); }
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); }
15,494
public final void debugStackTrace(VmThread thread) throws UninterruptiblePragma { Address f = thread.getStackFrame(); Unsafe.debug("Debug stacktrace: "); boolean first = true; int max = 20; while (isValid(f) && (max > 0)) { if (first) { first = false; } else { Unsafe.debug(", "); } final VmMethod me...
public final void debugStackTrace(VmThread thread) throws UninterruptiblePragma { Address f = thread.getStackFrame(); Unsafe.debug("Debug stacktrace: "); boolean first = true; int max = 20; while (isValid(f) && (max > 0)) { if (first) { first = false; } else { Unsafe.debug(", "); } final VmMethod me...
15,495
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
private Object getAttribute(AttributedCharacterIterator.Attribute key, int pos) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = i...
15,496
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return null; for (int i = attribs.length - 1; i >= 0; i--) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter....
15,497
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
15,498
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
15,499
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return null; for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.next...
15,500
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText != null && labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
15,501
public BevelBorderUIResource(int bevelType) { }
public BevelBorderUIResource(int bevelType) { }
15,503