bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? if (isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { // Uu.p("setting border for: " + box); if (box.border == null) { box.border ...
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? if (isBlockOrInlineElementBox(c, box)) { if (isBlockOrInlineElementBox(box)) { // Uu.p("setting border for: " + box); if (box.border == null) { box.border = c.getCurrentStyle().getBorderW...
34,251
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
34,252
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
34,253
public synchronized void stopService() throws Exception { try { if (!started) { return; } log.debug(this + " stopping"); started = false; //removeRecoverable(); shutdownLogger.shutdown(serverPeerID); ...
public synchronized void stopService() throws Exception { try { if (!started) { return; } log.debug(this + " stopping"); started = false; //removeRecoverable(); // Stop the wired components ...
34,254
void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St...
void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St...
34,255
public Enumeration getPropertyNames() throws JMSException { Enumeration names = Collections.enumeration(properties.keySet()); return names; }
public Enumeration getPropertyNames() throws JMSException { HashSet set = new HashSet(); set.addAll(properties.keySet()); set.add("JMSXDeliveryCount"); Enumeration names = Collections.enumeration(set); return names; }
34,257
public boolean propertyExists(String name) throws JMSException { return properties.containsKey(name); }
public boolean propertyExists(String name) throws JMSException { return properties.containsKey(name) || "JMSXDeliveryCount".equals(name); }
34,258
public String getName() { if (protocol == null) return "No Mouse"; return protocol.getName(); }
public String getName() { if (protocol == null) { return "No Mouse"; return protocol.getName(); }
34,259
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
34,261
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) { return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.le...
34,262
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
34,263
public boolean probe(AbstractPointerDriver d) { try { // reset the mouse if (!d.initPointer()) { log.debug("Reset mouse failed"); return false; } int id = d.getPointerId(); if (id != 0) { // does not seem to be a mouse, more likely a tablet of touch screen log.debug("PointerId == " + id); ret...
public boolean probe(AbstractPointerDriver d) { try { // reset the mouse if (!d.initPointer()) { log.debug("Reset mouse failed"); return false; } int id = d.getPointerId(); if (id != 0) { // does not seem to be a mouse, more likely a tablet of touch screen log.debug("PointerId == " + id); ret...
34,264
public String toString() { return null; // TODO } // toString()
public String toString() { return getClass() + " [Source: " + getSource() + ", TreePath: " + getTreePath() + ", Child Indicies: " + getChildIndices() + ", Children: " + getChildren() + ", Path: " + getPath() +"]"; // TODO } // toString()
34,265
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
34,266
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
34,267
public void testDual() throws Exception { ChainResolver chain = new ChainResolver(); chain.setName("chain"); chain.setIvy(_ivy); chain.setDual(true); MockResolver[] resolvers = new MockResolver[] { MockResolver.buildMockResolver("1", false, null), Mo...
public void testDual() throws Exception { ChainResolver chain = new ChainResolver(); chain.setName("chain"); chain.setIvy(_ivy); chain.setDual(true); MockResolver[] resolvers = new MockResolver[] { MockResolver.buildMockResolver("1", false, null), Mo...
34,270
private synchronized void checkMarshallers() { if (checked) { return; } //We explicitly associate the datatype "jms" with our customer SerializationManager //This is vital for performance reasons. try { SerializationStreamFactory.setManagerClassName( ...
private synchronized void checkMarshallers() { if (checked) { return; } //We explicitly associate the datatype "jms" with our customer SerializationManager //This is vital for performance reasons. try { SerializationStreamFactory.setManagerClassName( ...
34,271
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
34,272
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
34,273
public void setAlignment (int align) { if (align != LEFT && align != RIGHT && align != CENTER && align != LEADING && align != TRAILING) throw new IllegalArgumentException ("invalid alignment: " + align); this.align = align; }
public void setAlignment (int align) { if (align != LEFT && align != RIGHT && align != CENTER && align != LEADING && align != TRAILING) throw new IllegalArgumentException ("invalid alignment: " + align); this.align = align; }
34,274
public Font getFont() { return null; // TODO }
public Font getFont() { Font font = super.getFont(); if (font == null) { Component parent = getParent(); if (parent != null) return parent.getFont(); return null; } return font; // TODO }
34,275
public Dimension getPreferredSize() { return null; // TODO }
public Dimension getPreferredSize() { String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } return renderer.getPreferredSize(); // TODO }
34,276
public Dimension getPreferredSize() { return null; // TODO }
public Dimension getPreferredSize() { Dimension containerSize = super.getPreferredSize(); containerSize.width += DefaultTreeCellEditor.this.offset; return containerSize; // TODO }
34,278
public void paint(Graphics value0) { // TODO }
public void paint(Graphics g) { // TODO }
34,279
public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1) { // TODO }
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer) { // TODO }
34,281
public void actionPerformed(ActionEvent value0) { // TODO }
public void actionPerformed(ActionEvent e) { // TODO }
34,283
protected boolean canEditImmediately(EventObject value0) { return false; // TODO }
protected boolean canEditImmediately(EventObject event) { return false; // TODO }
34,285
protected boolean canEditImmediately(EventObject value0) { return false; // TODO }
protected boolean canEditImmediately(EventObject value0) { if (event == null || (!(event instanceof MouseEvent) && (((MouseEvent) event). getClickCount() > 2 || inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY())))) return true; else if (shouldStartEditingTimer(event)) startEditingTimer(); return ...
34,286
protected Container createContainer() { return null; // TODO }
protected Container createContainer() { return new DefaultTreeCellEditor.EditorContainer(); // TODO }
34,288
protected TreeCellEditor createTreeCellEditor() { return null; // TODO }
protected TreeCellEditor createTreeCellEditor() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); canEdit = true; return realEditor; // TODO }
34,289
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
34,290
public Color getBorderSelectionColor() { return null; // TODO }
public Color getBorderSelectionColor() { return borderSelectionColor; // TODO }
34,292
public Object getCellEditorValue() { return null; // TODO }
public Object getCellEditorValue() { return editingComponent; // TODO }
34,293
public Font getFont() { return null; // TODO }
public Font getFont() { return font; // TODO }
34,294
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
34,295
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { if (realEditor == null) createTreeCellEditor(); Component c = realEditor.getTreeCellEditor...
34,296
protected boolean inHitRegion(int value0, int value1) { return false; // TODO }
protected boolean inHitRegion(int x, int y) { return false; // TODO }
34,297
protected boolean inHitRegion(int value0, int value1) { return false; // TODO }
protected boolean inHitRegion(int value0, int value1) { Dimension d = editingContainer.getPreferredSize(); int textX = offset; if (editingIcon != null) textX += editingIcon.getIconWidth() + 4; if ((d.width > textX && x >= textX && x <= d.width) && (y >= 0 && y <= d.height)) return true; return false; // TODO }
34,298
public boolean isCellEditable(EventObject value0) { return false; // TODO }
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.isCellEditable(event)) { return false; // TODO }
34,299
public boolean isCellEditable(EventObject value0) { return false; // TODO }
public boolean isCellEditable(EventObject value0) { prepareForEditing(); return true; } return false; // TODO }
34,300
public void setBorderSelectionColor(Color value0) { // TODO }
public void setBorderSelectionColor(Color newColor) { // TODO }
34,302
public void setFont(Font value0) { // TODO }
public void setFont(Font font) { // TODO }
34,304
protected void setTree(JTree value0) { // TODO }
protected void setTree(JTree newTree) { // TODO }
34,306
public boolean shouldSelectCell(EventObject value0) { return false; // TODO }
public boolean shouldSelectCell(EventObject event) { return false; // TODO }
34,308
public boolean shouldSelectCell(EventObject value0) { return false; // TODO }
public boolean shouldSelectCell(EventObject value0) { return true; // TODO }
34,309
protected boolean shouldStartEditingTimer(EventObject value0) { return false; // TODO }
protected boolean shouldStartEditingTimer(EventObject event) { return false; // TODO }
34,310
protected boolean shouldStartEditingTimer(EventObject value0) { return false; // TODO }
protected boolean shouldStartEditingTimer(EventObject value0) { if (!(event instanceof MouseEvent) && inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY()) && ((MouseEvent) event). getClickCount() == 1) return true; return false; // TODO }
34,311
public boolean stopCellEditing() { return false; // TODO }
public boolean stopCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.stopCellEditing()) { timer.stop(); tree.setCellEditor(null); return true; } return false; // TODO }
34,313
public void valueChanged(TreeSelectionEvent value0) { // TODO }
public void valueChanged(TreeSelectionEvent e) { // TODO }
34,314
public String complete(CommandLine partial) throws CompletionException { //System.out.println("completing \"" + partial + "\""); String max = ""; for (int i = 0; i < syntaxes.length; i++) { try { final String s = syntaxes[ i].complete(partial ...
public String complete(CommandLine partial) throws CompletionException { //System.out.println("completing \"" + partial + "\""); String max = ""; for (int i = 0; i < syntaxes.length; i++) { try { final String s = syntaxes[ i].complete(partial ...
34,316
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); }
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); }
34,317
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); }
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("creating core destination for " + destName); } CoreDestination cd = getCoreDestinationInternal(isQ...
34,318
public void addAsfMessage(MessageProxy m, int consumerID, long channelId, int maxDeliveries) { throw new IllegalStateException("This invocation should not be handled here!"); }
public void addAsfMessage(MessageProxy m, int consumerID, long channelId, int maxDeliveries, SessionDelegate connectionConsumerSession) { throw new IllegalStateException("This invocation should not be handled here!"); }
34,319
public void cancelDeliveries(List ackInfos) { throw new IllegalStateException("This invocation should not be handled here!"); }
public void cancelDeliveries(List cancels) { throw new IllegalStateException("This invocation should not be handled here!"); }
34,320
public static Box layout(LayoutContext c, Box block, Content content) { // copy the extents Rectangle oe = c.getExtents(); // save height incase fixed height int original_height = block.height; // do children's layout c.setExtents(new Rectangle(c.getExtents())); List...
public static BlockBox layout(LayoutContext c, BlockBox block, Content content) { // copy the extents Rectangle oe = c.getExtents(); // save height incase fixed height int original_height = block.height; // do children's layout c.setExtents(new Rectangle(c.getExtents())); ...
34,321
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t...
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ...
34,328
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t...
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t...
34,329
public String getWhitespace(Context c, Node node) { Element e = null; if (node instanceof Element) { e = (Element) node; } else { e = (Element) node.getParentNode(); } String whitespace = c.css.getStyle(e).getStringProperty("white-space"); if (whitespa...
public String getWhitespace(Context c, Node node) { Element e = null; if (node instanceof Element) { e = (Element) node; } else { e = (Element) node.getParentNode(); } String whitespace = c.css.getStyle(e).getStringProperty("white-space"); if (whitespa...
34,330
public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
34,331
public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
34,332
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
34,334
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
34,335
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
34,336
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
34,337
public FlowView(Element element) { super(element); }
public FlowView(Element element, int axis) { super(element); }
34,340
public FlowView(Element element) { super(element); }
public FlowView(Element element) { super(element, axis); strategy = sharedStrategy; }
34,341
private CSSName(String propName) { try { this.propName = propName; this.assignedID = maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
private CSSName(String propName) { try { this.propName = propName; this.assignedID = CSSName.maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
34,342
private static synchronized final CSSName addProperty(String propName) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
private final static synchronized CSSName addProperty( String propName ) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
34,343
public static final int countCSSNames() { return maxAssigned; }
public static final int countCSSNames() { return maxAssigned; }
34,344
public void actionPerformed(ActionEvent e) { CellFactory.createJoin(workflow, model, location); }
public void actionPerformed(ActionEvent e) { CellFactory.createSplit(workflow, model, location); }
34,345
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ...
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ...
34,346
public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ) { return font.getLineMetrics( string, graphics.getFontRenderContext() ); }
public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ) { return new ScaledLineMetrics(font, font.getLineMetrics( string, graphics.getFontRenderContext() )); }
34,347
void redeliver(Receiver receiver);
boolean redeliver(Receiver receiver);
34,348
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
34,349
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
34,350
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, -y, PointerEvent.RELATIVE); }
34,351
public abstract DSAParams getParams();
DSAParams getParams();
34,352
public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old)) { if (log.isTraceEnabled()) { log.trace(this + "old ...
public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old)) { if (log.isTraceEnabled()) { log.trace(this + "old ...
34,355
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
34,356
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
public void addColumn(TableColumn column) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
34,357
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
public void addColumn(TableColumn col) { if (column == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
34,358
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(column); column.addPropertyChangeListener(this); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
34,359
protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); }
protected void fireColumnSelectionChanged(ListSelectionEvent e) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); }
34,360
protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); }
protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener) listeners[i]).columnSelectionChanged(e); }
34,361
public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(i); }
public TableColumn getColumn(int columnIndex) { return (TableColumn) tableColumns.get(i); }
34,362
public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(i); }
public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(columnIndex); }
34,363
public void moveColumn(int i, int j) { int columnCount = getColumnCount(); if (i < 0 || i >= columnCount) throw new IllegalArgumentException("Index 'i' out of range."); if (j < 0 || j >= columnCount) throw new IllegalArgumentException("Index 'j' out of range."); Object column = tableColumns.rem...
public void moveColumn(int i, int j) { int columnCount = getColumnCount(); if (i < 0 || i >= columnCount) throw new IllegalArgumentException("Index 'i' out of range."); if (j < 0 || j >= columnCount) throw new IllegalArgumentException("Index 'j' out of range."); Object column = tableColumns.rem...
34,364
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); }
public void propertyChange(PropertyChangeEvent event) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); }
34,365
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); }
public void propertyChange(PropertyChangeEvent evt) { if (event.getPropertyName().equals("width")) invalidateWidthCache(); }
34,366
public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); }
public void removeColumn(TableColumn column) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); }
34,367
public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); }
public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(column); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); }
34,368
public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); }
public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); column.removePropertyChangeListener(this); invalidateWidthCache(); }
34,369
public void setColumnMargin(int m) { columnMargin = m; fireColumnMarginChanged(); }
public void setColumnMargin(int margin) { columnMargin = m; fireColumnMarginChanged(); }
34,370
public void setColumnMargin(int m) { columnMargin = m; fireColumnMarginChanged(); }
public void setColumnMargin(int m) { columnMargin = margin; fireColumnMarginChanged(); }
34,371
protected Client getClient() { //Use the Client in the Connection's state return ((ConnectionState)state.getParent()).getClient(); }
protected Client getClient() { //Use the Client in the Connection's state return ((ConnectionState)state.getParent()).getRemotingConnection().getInvokingClient(); }
34,373
private static void configureURLHandler(String realm, String host, String username, String passwd) { URLHandlerDispatcher dispatcher = new URLHandlerDispatcher(); dispatcher.setDownloader("http", URLHandlerRegistry.getHttp(realm, host, username, passwd)); URLHandlerRegistry.setDefault(dispatche...
private static void configureURLHandler(String realm, String host, String username, String passwd) { URLHandlerDispatcher dispatcher = new URLHandlerDispatcher(); URLHandler httpHandler = URLHandlerRegistry.getHttp(realm, host, username, passwd); dispatcher.setDownloader("http", httpHandler); dispatch...
34,374
public void syncWithScrollPane(JScrollPane scrollPane) { // TODO } // syncWithScrollPane()
public void syncWithScrollPane(JScrollPane scrollPane) { // TODO viewport = scrollPane.getViewport(); verticalScrollBar = scrollPane.getVerticalScrollBar(); horizontalScrollBar = scrollPane.getHorizontalScrollBar(); verticalScrollBarPolicy = scrollPane.getVerticalScrollBarPolicy(); horizontalScrollBarPolicy = scrollP...
34,375
private String createDestination(boolean isQueue, String name, String jndiName) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // String destType = isQueue ? "Queue" : "Topic"; String className = "org.jboss.jms.server.de...
private String createDestination(boolean isQueue, String name, String jndiName) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // String destType = isQueue ? "Queue" : "Topic"; String className = "org.jboss.jms.server.de...
34,376
public JPEGHuffmanTable(short[] lengths, short[] values) { if (lengths == null || values == null || lengths.length > 16 || values.length > 256) throw new IllegalArgumentException("invalid length or values array"); for (int i = 0; i < lengths.length; i++) { if (lengths[i] < 0) t...
public JPEGHuffmanTable(short[] lengths, short[] values) { if (lengths == null || values == null || lengths.length > 16 || values.length > 256) throw new IllegalArgumentException("invalid length or values array"); for (int i = 0; i < lengths.length; i++) { if (lengths[i] < 0) t...
34,377
public short[] getLengths() { short[] lengthsCopy = new short[lengths.length]; System.arraycopy(lengths, 0, lengthsCopy, 0, lengths.length); return lengthsCopy; }
public short[] getLengths() { short[] lengthsCopy = new short[lengths.length]; System.arraycopy(lengths, 0, lengthsCopy, 0, lengths.length); return lengthsCopy; }
34,378