bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public ByteBuffer putChar (char value) { ByteBufferHelper.putChar(this, value, order()); return this; } | public ByteBuffer putChar (char value) { if (readOnly) throw new ReadOnlyBufferException (); if ( (limit-pos) < 2) throw new BufferOverflowException(); if (endian == ByteOrder.LITTLE_ENDIAN) { backing_buffer [(pos++) + array_offset] = (byte)(value&0xFF); backing_buffer [(pos++) + array_offset] = (byte)(value>>8)... | 33,297 |
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) { setDot(Utilities.... | public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (event.getButton() == MouseEvent.BUTTON1 && count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) ... | 33,300 |
public void moveDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); adjustVisibility(this); appear(); } } | public void moveDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); } } | 33,303 |
public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); adjustVisibility(this); ... | public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); } } | 33,305 |
public final Class getCategory() { return JobSheets.class; } | public Class getCategory() { return JobSheets.class; } | 33,307 |
public final String getName() { return "job-sheets"; } | public String getName() { return "job-sheets"; } | 33,308 |
protected AccessibleJScrollBar(JScrollBar value0) { super(value0); } | protected AccessibleJScrollBar() { super(value0); } | 33,309 |
protected AccessibleJScrollBar(JScrollBar value0) { super(value0); } | protected AccessibleJScrollBar(JScrollBar value0) { super(); } | 33,310 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJScrollBar(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJScrollBar(); return accessibleContext; } | 33,311 |
public void showDocument(URL url, String target) { System.err.println("showDocument is not implemented in standalone mode"); } | public void showDocument(URL url, String target) { System.err.println (Messages.getString("StandaloneAppletContext.ShowDocumentError")); } | 33,312 |
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_char); } | public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_char); } | 33,313 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int p1 = event.getLength() + p0; int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i1 != i2) { ... | 33,315 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int p1 = event.getLength() + p0; int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int p1 = event.getLength() + p0; int len = event.getLength(); // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex... | 33,316 |
public boolean isFocusTraversable() { return !comboBox.isEditable() && comboBox.isEnabled(); } | public boolean isFocusTraversable() { return false; } | 33,317 |
public void setEnabled(boolean enabled) { super.setEnabled(enabled); // TODO: figure out what this might need to be used for // perhaps it has something to do with the button's icon and/or border? } | if (enabled) { setBackground(comboBox.getBackground()); setForeground(comboBox.getForeground()); } else { setBackground(UIManager.getColor("ComboBox.disabledBackground")); setForeground(UIManager.getColor("ComboBox.disabledForeground")); } public void setEnabled(boolean enabled)if (enabled) { setBackground(comboBox.get... | 33,318 |
public String getName() { //FIXME: this is supposed to do something different from the super class return super.getName(); } | public String getName() { //FIXME: this is supposed to do something different from the super class return (String) getAttribute(NameAttribute); } | 33,319 |
public HTMLEditorKit.ParserCallback getReader(int pos) { // FIXME: Not implemented. return null; } | public HTMLEditorKit.ParserCallback getReader(int pos) { // FIXME: Not implemented. return new HTMLReader(pos); } | 33,320 |
public void setBase(URL u) { baseURL = u; //TODO: also set the base of the StyleSheet } | styleSheet.setBase(u); styleSheet.setBase(u); publicstyleSheet.setBase(u); voidstyleSheet.setBase(u); setBase(URLstyleSheet.setBase(u); u)styleSheet.setBase(u); styleSheet.setBase(u); {styleSheet.setBase(u); styleSheet.setBase(u); styleSheet.setBase(u); styleSheet.setBase(u); baseURLstyleSheet.setBase(u); =styleSheet.s... | 33,321 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos < t.getDocument().getEndPosition().getOffset()) { ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos < t.getDocument().getEndPosition().getOffset()) { ... | 33,322 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos > t.getDocument().getStartPosition().getOffset()) { ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos > t.getDocument().getStartPosition().getOffset()) { ... | 33,323 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos > t.getDocument().getStartPosition().getOffset()) { ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { try { int pos = t.getCaret().getDot(); if (pos > t.getDocument().getStartPosition().getOffset()) { ... | 33,324 |
public boolean isValid () { return channel().isOpen(); } | public boolean isValid() { return channel().isOpen(); } | 33,325 |
public boolean isValid () { return channel().isOpen(); } | public boolean isValid () { if (valid) valid = channel().isOpen(); return valid; } | 33,326 |
public synchronized void release () throws IOException { ch.unlock(position(), size()); } | public void release() throws IOException { ch.unlock(position(), size()); } | 33,327 |
public synchronized void release () throws IOException { ch.unlock(position(), size()); } | public synchronized void release () throws IOException { if (isValid()) { valid = false; ((FileChannelImpl) channel()).unlock(position(), size()); } } | 33,328 |
protected DropTarget.DropTargetAutoScroller createDropTargetAutoScroller (Component c, Point p) { return null; } | protected DropTarget.DropTargetAutoScroller createDropTargetAutoScroller (Component c, Point p) { return new DropTarget.DropTargetAutoScroller (c, p); } | 33,333 |
protected DropTargetContext createDropTargetContext() { return null; } | protected DropTargetContext createDropTargetContext() { return new DropTargetContext (this); } | 33,334 |
public Component getComponent () { return null; } | public Component getComponent () { return component; } | 33,335 |
public int getDefaultActions () { return 0; } | public int getDefaultActions () { return actions; } | 33,336 |
public DropTargetContext getDropTargetContext() { return null; } | public DropTargetContext getDropTargetContext() { if (dropTargetContext == null) dropTargetContext = createDropTargetContext (); return dropTargetContext; } | 33,337 |
public FlavorMap getFlavorMap() { return null; } | public FlavorMap getFlavorMap() { return flavorMap; } | 33,338 |
public boolean isActive() { return this.isActive; } | public boolean isActive() { return active; } | 33,339 |
public void setActive(boolean isActive) { this.isActive = isActive; } | public void setActive (boolean active) { this.isActive = isActive; } | 33,341 |
public void setActive(boolean isActive) { this.isActive = isActive; } | public void setActive(boolean isActive) { this.active = active; } | 33,342 |
GapContentPosition(int mark) { this.mark = mark; } | GapContentPosition(int mark) { synchronized (GapContent.this) { int i = binarySearch(positionMarks, mark, numMarks); if (i >= 0) { index = i; } else { index = -i - 1; insertMark(index, mark); } } } | 33,346 |
public int getOffset() { // Check precondition. assert mark <= gapStart || mark >= gapEnd : "mark: " + mark + ", gapStart: " + gapStart + ", gapEnd: " + gapEnd; if (mark <= gapStart) return mark; ... | public int getOffset() { // Check precondition. assert mark <= gapStart || mark >= gapEnd : "mark: " + mark + ", gapStart: " + gapStart + ", gapEnd: " + gapEnd; if (mark <= gapStart) return mark; ... | 33,347 |
private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | private void adjustPositionsInRange(int offset, int length, int incr) { int endMark = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | 33,348 |
private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | 33,349 |
private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | 33,350 |
private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | 33,351 |
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); clearPositionReferences(); // We store the actual array index in the GapContentPos... | public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); clearPositionReferences(); // We store the actual array index in the GapContentPos... | 33,352 |
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); clearPositionReferences(); // We store the actual array index in the GapContentPos... | public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); if (pos == null) { int mark = offset; if (mark >= gapStart) mark += (gapEnd - gapSta... | 33,353 |
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); clearPositionReferences(); // We store the actual array index in the GapContentPos... | public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); clearPositionReferences(); // We store the actual array index in the GapContentPos... | 33,354 |
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of... | protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offs... | 33,355 |
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of... | protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of... | 33,356 |
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of... | protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of... | 33,357 |
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of... | protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of... | 33,358 |
protected void resetMarksAtZero() { if (gapStart != 0) return; setPositionsInRange(gapEnd, 0, 0); } | protected void resetMarksAtZero() { if (gapStart != 0) return; positionMarks[0] = 0; } | 33,359 |
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | private void setPositionsInRange(int start, int end, boolean toStart) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index... | 33,360 |
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | private void setPositionsInRange(int offset, int length, int value) { int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 < 0) index1 = -(index1... | 33,361 |
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | 33,362 |
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | 33,363 |
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | 33,364 |
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | 33,365 |
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 ... | 33,366 |
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a... | protectedvoidshiftGap(intnewGapStart){if(newGapStart==gapStart)return;intnewGapEnd=newGapStart+gapEnd-gapStart;if(newGapStart<gapStart){//UpdatethepositionsbetweennewGapStartand(old)gapStart.Themarks//mustbeshiftedby(gapEnd-gapStart).adjustPositionsInRange(newGapStart,gapStart-newGapStart,gapEnd-gapStart);System.arrayc... | 33,367 |
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd); gapEnd = newGapEnd; } | protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd, false); gapEnd = newGapEnd; } | 33,368 |
protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; setPositionsInRange(newGapStart, gapStart - newGapStart, gapStart); gapStart = ne... | protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; setPositionsInRange(newGapStart, gapStart, false); gapStart = newGapStart; } | 33,369 |
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel... | if (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme && enabled) { String gradient; if (focus) gradient = "Slider.focusGradient"; else gradient = "Slider.gradient"; MetalUtils.paintGradient(g, x + 1, y + 2, 12, 13, SwingConstants.VERTICAL, gradient, gradientMask); } else { if (MetalLookAndFeel.getCurrentTheme... | 33,371 |
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel... | public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel... | 33,372 |
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel... | public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel... | 33,373 |
public void paintIcon(Component c, Graphics g, int x, int y) { if (UIManager.get("RadioButton.gradient") != null) MetalUtils.paintGradient(g, x, y, getIconWidth(), getIconHeight(), SwingConstants.VERTICAL, "RadioButton.gradient"); Color savedColor = g.getColor(); ... | public void paintIcon(Component c, Graphics g, int x, int y) { if (UIManager.get("RadioButton.gradient") != null) MetalUtils.paintGradient(g, x, y, getIconWidth(), getIconHeight(), SwingConstants.VERTICAL, "RadioButton.gradient"); Color savedColor = g.getColor(); ... | 33,374 |
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel... | if (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme && enabled) { String gradient; if (focus) gradient = "Slider.focusGradient"; else gradient = "Slider.gradient"; MetalUtils.paintGradient(g, x + 2, y + 1, 13, 12, SwingConstants.HORIZONTAL, gradient, gradientMask); } else { if (MetalLookAndFeel.getCurrentThe... | 33,375 |
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel... | public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled && ! (MetalLookAndFeel.getCurrentThe... | 33,376 |
public String toString() { return name; } | public final String toString() { return name; } | 33,377 |
public void activate (Applet applet); | public void activate (Applet applet); | 33,378 |
public void initialize (Applet applet, BeanContext context); | public void initialize (Applet applet, BeanContext context); | 33,379 |
public DragSource() { if (GraphicsEnvironment.isHeadless()) throw new HeadlessException (); } | public DragSource() { if (GraphicsEnvironment.isHeadless()) { ds = null; throw new HeadlessException(); } } | 33,380 |
createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { return createDragGestureRecognizer (MouseDragGestureRecognizer.class, c, actions, dgl); } | public DragGestureRecognizer createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { return createDragGestureRecognizer (MouseDragGestureRecognizer.class, c, actions, dgl); } | 33,381 |
createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { return createDragGestureRecognizer (MouseDragGestureRecognizer.class, c, actions, dgl); } | createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl) { return createDragGestureRecognizer(MouseDragGestureRecognizer.class, c, actions, dgl); } | 33,382 |
createDragGestureRecognizer(Class recognizer, Component c, int actions, DragGestureListener dgl) { DragGestureRecognizer dgr; dgr = Toolkit.getDefaultToolkit () .createDragGestureRecognizer (recognizer, this, c, actions, ... | public DragGestureRecognizer createDragGestureRecognizer(Class recognizer, Component c, int actions, DragGestureListener dgl) { DragGestureRecognizer dgr; dgr = Toolkit.getDefaultToolkit () .createDragGestureRecognizer (recognizer, this, c, actions, ... | 33,383 |
createDragGestureRecognizer(Class recognizer, Component c, int actions, DragGestureListener dgl) { DragGestureRecognizer dgr; dgr = Toolkit.getDefaultToolkit () .createDragGestureRecognizer (recognizer, this, c, actions, ... | createDragGestureRecognizer(Class recognizer, Component c, int actions, DragGestureListener dgl) { DragGestureRecognizer dgr; dgr = Toolkit.getDefaultToolkit () .createDragGestureRecognizer (recognizer, this, c, actions, ... | 33,384 |
createDragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable t, DragSourceListener dsl) { return null; } | createDragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable t, DragSourceListener dsl) { return new DragSourceContext(peer, dge, cursor, image, offset, t, dsl); } | 33,385 |
public static DragSource getDefaultDragSource() { return new DragSource(); } | public static DragSource getDefaultDragSource() { if (GraphicsEnvironment.isHeadless()) { ds = null; throw new HeadlessException(); } if (ds == null) ds = new DragSource(); return ds; } | 33,386 |
public void addRandomByte (final byte b) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (b); } | public void addRandomByte(final byte b) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (b); } | 33,389 |
public void addRandomByte (final byte b) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (b); } | public void addRandomByte (final byte b) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (b); } | 33,390 |
public void addRandomBytes (final byte[] buf, final int off, final int len) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (buf, off, len); } | public void addRandomBytes(final byte[] buf, final int off, final int len) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (buf, off, len); } | 33,391 |
public void addRandomBytes (final byte[] buf, final int off, final int len) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (buf, off, len); } | public void addRandomBytes (final byte[] buf, final int off, final int len) { if (md == null) throw new IllegalStateException ("not initialized"); md.update (buf, off, len); } | 33,392 |
public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | 33,393 |
public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | 33,394 |
public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | 33,395 |
public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | public void setup(Map attributes) // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) if (md == null) // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getInstance... | 33,396 |
public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | public void setup(Map attributes) { // find out which hash to use String underlyingMD = (String) attributes.get(MD_NAME); if (underlyingMD == null) { if (md == null) { // happy birthday // ensure we have a reliable implementation of this hash md = HashFactory.getIn... | 33,397 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 33,398 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 33,399 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 33,400 |
public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | public static String decode(String s, String encoding) throws UnsupportedEncodingException { // First convert all '+' characters to spaces. String str = s.replace('+', ' '); // Then go through the whole string looking for byte encoded characters int i; int start = 0; byte[] bytes = null; ... | 33,401 |
protected EnumSyntax[] getEnumValueTable() { // FIXME return (EnumSyntax[])null; } | protected EnumSyntax[] getEnumValueTable() { // FIXME return enumValueTable; } | 33,402 |
protected String[] getStringTable() { // FIXME return (String[])null; } | protected String[] getStringTable() { // FIXME return stringTable; } | 33,403 |
public void drawText(Graphics2D g, String text, Font font, int x, int y) { FontProvider prv = getProvider(font); Font txFont = font; if (prv == null) { txFont = getTranslatedFont(font); prv = getProvider(txFont); } if (prv != null) { final TextRenderer r... | public void drawText(Surface g, AffineTransform tx, String text, Font font, int x, int y, Color color) { FontProvider prv = getProvider(font); Font txFont = font; if (prv == null) { txFont = getTranslatedFont(font); prv = getProvider(txFont); } if (prv != null) ... | 33,404 |
public void drawText(Graphics2D g, String text, Font font, int x, int y) { FontProvider prv = getProvider(font); Font txFont = font; if (prv == null) { txFont = getTranslatedFont(font); prv = getProvider(txFont); } if (prv != null) { final TextRenderer r... | public void drawText(Graphics2D g, String text, Font font, int x, int y) { FontProvider prv = getProvider(font); Font txFont = font; if (prv == null) { txFont = getTranslatedFont(font); prv = getProvider(txFont); } if (prv != null) { final TextRenderer r... | 33,405 |
ExplicitInfo(Class beanClass, Class stopClass) { while (beanClass != null && !beanClass.equals(stopClass)) { BeanInfo explicit = findExplicitBeanInfo(beanClass); if (explicit != null) { if (explicitBeanDescriptor == null) { explicitBeanDescriptor = explicit.getBeanDescriptor(); } if (explicitBeanInfo... | ExplicitInfo(Class beanClass, Class stopClass) { while (beanClass != null && !beanClass.equals(stopClass)) { BeanInfo explicit = findExplicitBeanInfo(beanClass); if (explicit != null) { if (explicitBeanDescriptor == null) { explicitBeanDescriptor = explicit.getBeanDescriptor(); } if (explicitBeanInfo... | 33,406 |
static BeanInfo findExplicitBeanInfo(Class beanClass) { BeanInfo retval = (BeanInfo) explicitBeanInfos.get(beanClass); if (retval != null) { return retval; } else if (emptyBeanInfos.indexOf(beanClass) != -1) { return null; } else { retval = reallyFindExplicitBeanInfo(beanClass); if (retval != null) { ex... | static BeanInfo findExplicitBeanInfo(Class beanClass) { BeanInfo retval = (BeanInfo) explicitBeanInfos.get(beanClass); if (retval != null) { return retval; } else if (emptyBeanInfos.indexOf(beanClass) != -1) { return null; } else { retval = reallyFindExplicitBeanInfo(beanClass); if (retval != null) { ex... | 33,407 |
static BeanInfo reallyFindExplicitBeanInfo(Class beanClass) { try { try { return (BeanInfo) Class.forName(beanClass.getName() + "BeanInfo").newInstance(); } catch (ClassNotFoundException E) { } String newName = ClassHelper.getTruncatedClassName(beanClass) + "BeanInfo"; for (int i = 0; i < Introspector.be... | static BeanInfo reallyFindExplicitBeanInfo(Class beanClass) { try { try { return (BeanInfo) Class.forName(beanClass.getName() + "BeanInfo").newInstance(); } catch (ClassNotFoundException E) { } String newName = ClassHelper.getTruncatedClassName(beanClass) + "BeanInfo"; for (int i = 0; i < Introspector.be... | 33,408 |
private Introspector() { } | private Introspector() { } | 33,409 |
static BeanInfo copyBeanInfo(BeanInfo b) { java.awt.Image[] icons = new java.awt.Image[4]; for (int i = 1; i <= 4; i++) { icons[i - 1] = b.getIcon(i); } return new ExplicitBeanInfo( b.getBeanDescriptor(), b.getAdditionalBeanInfo(), b.getPropertyDescriptors(), b.getDefaultPropertyIndex(), b.getEventSetD... | static BeanInfo copyBeanInfo(BeanInfo b) { java.awt.Image[] icons = new java.awt.Image[4]; for (int i = 1; i <= 4; i++) { icons[i - 1] = b.getIcon(i); } return new ExplicitBeanInfo( b.getBeanDescriptor(), b.getAdditionalBeanInfo(), b.getPropertyDescriptors(), b.getDefaultPropertyIndex(), b.getEventSetD... | 33,410 |
public static String decapitalize(String name) { try { if (!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if (Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String... | public static String decapitalize(String name) { try { if (!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if (Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String... | 33,411 |
public static void flushCaches() { beanInfoCache.clear(); } | public static void flushCaches() { beanInfoCache.clear(); } | 33,413 |
public static void flushFromCaches(Class clz) { synchronized (clz) { beanInfoCache.remove(clz); } } | public static void flushFromCaches(Class clz) { synchronized (clz) { beanInfoCache.remove(clz); } } | 33,414 |
public static BeanInfo getBeanInfo(Class beanClass) throws IntrospectionException { BeanInfo cachedInfo; synchronized (beanClass) { cachedInfo = (BeanInfo) beanInfoCache.get(beanClass); if (cachedInfo != null) { return cachedInfo; } cachedInfo = getBeanInfo(beanClass, null); beanInfoCache.put(beanClass,... | public static BeanInfo getBeanInfo(Class beanClass) throws IntrospectionException { BeanInfo cachedInfo; synchronized (beanClass) { cachedInfo = (BeanInfo) beanInfoCache.get(beanClass); if (cachedInfo != null) { return cachedInfo; } cachedInfo = getBeanInfo(beanClass, null); beanInfoCache.put(beanClass,... | 33,415 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.