bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public float getX(int units) { if (units < 1) throw new IllegalArgumentException(); return x * units; } | public float getX(int units) { if (units < 1) throw new IllegalArgumentException(); return x / ((float)units); } | 7,764 |
public float getY(int units) { if (units < 1) throw new IllegalArgumentException(); return y * units; } | public float getY(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less than 1"); return y * units; } | 7,765 |
public float getY(int units) { if (units < 1) throw new IllegalArgumentException(); return y * units; } | public float getY(int units) { if (units < 1) throw new IllegalArgumentException(); return y / ((float)units); } | 7,766 |
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp... | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp... | 7,767 |
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp... | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp... | 7,768 |
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp... | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp... | 7,769 |
public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | 7,770 |
public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | public boolean equals (Object obj) { if (!(obj instanceof VMID)) { if (obj instanceof VMID) { VMID other = (VMID) obj; return uid.equals(other.uid) && Arrays.equals(addr, other.addr); } VMID other = (VMID) obj; if (addr.length != other.addr.length) { if (obj instanceof VMI... | 7,771 |
public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | public boolean equals (Object obj) { if (!(obj instanceof VMID)) { return false; } VMID other = (VMID) obj; if (addr.length != other.addr.length) { return false; } for (int i = addr.length - 1; i >= 0; i--) { if (addr[i] != other.addr[i]) { ... | 7,772 |
public int hashCode () { return super.hashCode(); } | public int hashCode () { return super.hashCode(); } | 7,773 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 7,774 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 7,775 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 7,776 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 7,777 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 7,778 |
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se... | 7,779 |
public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } | public void internalFrameActivated(InternalFrameEvent e) { activated = true; repaint(); } | 7,781 |
public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); } | public void internalFrameClosed(InternalFrameEvent e) { } | 7,782 |
public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); disconnectMe(); } | public void internalFrameClosing(InternalFrameEvent e) { disconnectMe(); } | 7,783 |
public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); } | public void internalFrameDeiconified(InternalFrameEvent e) { } | 7,785 |
public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); } | public void internalFrameIconified(InternalFrameEvent e) { } | 7,786 |
public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); } | public void internalFrameOpened(InternalFrameEvent e) { } | 7,787 |
public Session getSessionAt( int index) { JInternalFrame[] frames = desktop.getAllFrames(); return (Session)frames[index].getContentPane(); } | public Session getSessionAt( int index) { JInternalFrame[] frames = desktop.getAllFrames(); return (Session)frames[index].getContentPane(); } | 7,789 |
private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setS... | private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setS... | 7,790 |
private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setS... | private void nextSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index].setSelec... | 7,791 |
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt... | public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt... | 7,792 |
public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt... | public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getSt... | 7,793 |
public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(d); } | public void run() { JInternalFrame[] frames = desktop.getAllFrames(); frames[index].setTitle(frames[index].getTitle() + " " + d); } | 7,794 |
private void prevSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try {... | private void prevSession() { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try {... | 7,795 |
public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.... | public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.... | 7,797 |
private void initXTFRInfo() { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10); // main panel JPanel mp = new JPanel(); mp.setLayout(borderLayout); // system panel JPanel sp = new JPanel(); sp.setLay... | private void initXTFRInfo() { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10); // main panel JPanel mp = new JPanel(); mp.setLayout(borderLayout); // system panel JPanel sp = new JPanel(); sp.setLay... | 7,798 |
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) { // throw new IllegalArgumentException("Outline drag modes are unsupported... | public void setDragMode(int mode) if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) // throw new IllegalArgumentException("Outline drag modes are unsupported."... | 7,799 |
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) { // throw new IllegalArgumentException("Outline drag modes are unsupported... | public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) { // throw new IllegalArgumentException("Outline drag modes are unsupported... | 7,800 |
public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | 7,802 |
public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | public void addParameterObject(Object o) throws AssemblyException { if (!klass.isInstance(o)) throw new AssemblyException( new IllegalArgumentException( "Cannot add object " + o + " to array where the elements are o... | 7,803 |
public Object endContext(Context outerContext) throws AssemblyException { if (array == null) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array; } | public Object endContext(Context outerContext) throws AssemblyException { if (length != Array.getLength(array)) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array;... | 7,804 |
public Object endContext(Context outerContext) throws AssemblyException { if (array == null) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array; } | public Object endContext(Context outerContext) throws AssemblyException { if (array == null) { array = Array.newInstance(klass, list.size()); for (int i = 0; i < list.size(); i++) Array.set(array, i, list.get(i)); } return array; } | 7,805 |
public Object get(int index) throws AssemblyException { if (array == null) return list.get(index); else return Array.get(array, index); } | public Object get(int index) throws AssemblyException { if (array == null) return list.get(index); else return Array.get(array, index); } | 7,806 |
public void set(int index, Object o) throws AssemblyException { if (array == null) { if (klass.isInstance(o)) list.add(index, o); else throw new AssemblyException( new IllegalArgumentException("Argument is not compatible to arra... | public void set(int index, Object o) throws AssemblyException { if (array == null) { if (klass.isInstance(o)) list.add(index, o); else throw new AssemblyException( new IllegalArgumentException("Argument is not compatible to arra... | 7,807 |
public JWindow() { super(SwingUtilities.getOwnerFrame()); windowInit(); } | public JWindow() { super(SwingUtilities.getOwnerFrame(null)); windowInit(); } | 7,809 |
public Graphics getGraphics() { log.debug("getGraphics"); final Component parent = component.getParent(); if (parent != null) { //System.out.println("creating graphics"); return parent.getGraphics().create(location.x, location.y, size.width, size.height); ... | public Graphics getGraphics() { log.debug("getGraphics"); final Component parent = component.getParent(); if (parent != null) { //System.out.println("creating graphics"); return parent.getGraphics().create(location.x, location.y, size.width, size.height); ... | 7,810 |
public void hide() { setVisible(false); } | public final void hide() { setVisible(false); } | 7,811 |
public Dimension minimumSize() { return jComponent.getMinimumSize(); } | public final Dimension minimumSize() { return jComponent.getMinimumSize(); } | 7,812 |
public Dimension preferredSize() { return jComponent.getPreferredSize(); } | public final Dimension preferredSize() { return jComponent.getPreferredSize(); } | 7,813 |
public void print(Graphics g) { jComponent.print(g); } | public final void print(Graphics g) { jComponent.print(g); } | 7,814 |
public void repaint(long tm, int x, int y, int width, int height) { jComponent.repaint(tm, x, y, width, height); paintAWTComponent(); } | public final void repaint(long tm, int x, int y, int width, int height) { jComponent.repaint(tm, x, y, width, height); paintAWTComponent(); } | 7,815 |
public void requestFocus() { jComponent.requestFocus(); } | public final void requestFocus() { jComponent.requestFocus(); } | 7,816 |
public void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); } | public final void reshape(int x, int y, int width, int height) { setBounds(x, y, width, height); } | 7,817 |
public void setBackground(Color c) { jComponent.setBackground(c); paintAWTComponent(); } | public final void setBackground(Color c) { jComponent.setBackground(c); paintAWTComponent(); } | 7,818 |
public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if (b.width != width || b.height != height) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendComponentEv... | public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if (b.width != width || b.height != height) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendComponentEv... | 7,819 |
public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if (b.width != width || b.height != height) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendComponentEv... | public void setBounds(int x, int y, int width, int height) { Rectangle b = jComponent.getBounds(); jComponent.setBounds(x, y, width, height); if ((oldWidth != width) || (oldHeight != height)) { sendComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { sendCompo... | 7,820 |
public void setCursor(Cursor cursor) { jComponent.setCursor(cursor); } | public final void setCursor(Cursor cursor) { jComponent.setCursor(cursor); } | 7,821 |
public void setEnabled(boolean b) { jComponent.setEnabled(b); } | public final void setEnabled(boolean b) { jComponent.setEnabled(b); } | 7,822 |
public void setEventMask(long mask) { // TODO Auto-generated method stub } | public final void setEventMask(long mask) { // TODO Auto-generated method stub } | 7,823 |
public void setFont(Font f) { jComponent.setFont(f); paintAWTComponent(); } | public final void setFont(Font f) { jComponent.setFont(f); paintAWTComponent(); } | 7,824 |
public void setVisible(boolean b) { jComponent.setVisible(b); paintAWTComponent(); } | public final void setVisible(boolean b) { jComponent.setVisible(b); paintAWTComponent(); } | 7,825 |
public void show() { setVisible(true); } | public final void show() { setVisible(true); } | 7,826 |
public static Component[] getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size... | public static List getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size()]); ... | 7,827 |
public static Component[] getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size... | public static Component[] getVisibleChildren(Container c) { Component[] children = c.getComponents(); Vector visible = new Vector(); for (int i = 0; i < children.length; i++) if (children[i].isVisible()) visible.add(children[i]); return (Component[]) visible.toArray(new Container[visible.size... | 7,828 |
public Checkbox() { this("", false, null); } | Checkbox() { this("", false, null); } | 7,829 |
public void addNotify() { if (peer == null) peer = getToolkit().createCheckbox(this); super.addNotify(); } | addNotify() { if (peer == null) peer = getToolkit().createCheckbox(this); super.addNotify(); } | 7,830 |
public CheckboxGroup getCheckboxGroup() { return (group); } | public CheckboxGroup getCheckboxGroup() { return (group); } | 7,831 |
public Object[] getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | getSelectedObjects() { if (state == false) return (null); Object[] objs = new Object[1]; objs[0] = label; return (objs); } | 7,832 |
protected String paramString() { return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString()); } | protected String paramString() { return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString()); } | 7,833 |
public synchronized void setCheckboxGroup(CheckboxGroup group) { this.group = group; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setCheckboxGroup(group); } } | setCheckboxGroup(CheckboxGroup group) { this.group = group; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setCheckboxGroup(group); } } | 7,834 |
public synchronized void setCheckboxGroup(CheckboxGroup group) { this.group = group; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setCheckboxGroup(group); } } | public synchronized void setCheckboxGroup(CheckboxGroup group) { this.group = group; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setCheckboxGroup(group); } } | 7,835 |
public synchronized void setLabel(String label) { this.label = label; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setLabel(label); } } | setLabel(String label) { this.label = label; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setLabel(label); } } | 7,837 |
public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setState(state); } } | setState(boolean state) { this.state = state; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setState(state); } } | 7,838 |
public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setState(state); } } | public synchronized void setState(boolean state) { this.state = state; if (peer != null) { CheckboxPeer cp = (CheckboxPeer) peer; cp.setState(state); } } | 7,839 |
public Object getClientProperty(Object key) { return getClientProperties().get(key); } | public final Object getClientProperty(Object key) { return getClientProperties().get(key); } | 7,842 |
protected String paramString() { return "JComponent"; } | protected String paramString() { StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",alignmentX=").append(getAlignmentX()); sb.append(",alignmentY=").append(getAlignmentY()); sb.append(",border="); if (getBorder() != null) sb.append(getBorder()); sb.append(",maximumSize="); if (getMaxim... | 7,843 |
public void putClientProperty(Object key, Object value) { getClientProperties().put(key, value); } | public final void putClientProperty(Object key, Object value) { getClientProperties().put(key, value); } | 7,844 |
public Graphics create() { return new DebugGraphics(graphics.create()); } | public Graphics create() { DebugGraphics copy = new DebugGraphics(graphics.create()); copy.debugOptions = debugOptions; return copy; } | 7,849 |
public void drawChars(char[] data, int offset, int length, int x, int y) { for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.drawChars(data, offset, length, x, y); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.drawChars(data, offset, le... | public void drawChars(char[] data, int offset, int length, int x, int y) { for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.drawChars(data, offset, length, x, y); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.drawChars(data, offset, length, x, y); sleep(debugF... | 7,853 |
public void drawRect(int x, int y, int width, int height) { for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.drawRect(x, y, width, height); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.drawRect(x, y, width, height); sleep(debugFlashTime)... | public void drawRect(int x, int y, int width, int height) { for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.drawRect(x, y, width, height); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.drawRect(x, y, width, height); sleep(debugFlashTime); } graphics.... | 7,859 |
public void fillRect(int x, int y, int width, int height) { for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.setColor(color); graphics.fillRect(x, y, width, height); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.fillRect(x, y, width, height); sleep(debugFlashTime)... | public void fillRect(int x, int y, int width, int height) { for (int index = 0; index < (debugFlashCount - 1); ++index) { graphics.fillRect(x, y, width, height); sleep(debugFlashTime); graphics.setColor(debugFlashColor); graphics.fillRect(x, y, width, height); sleep(debugFlashTime); } graphics.... | 7,866 |
public Color getColor() { return color; } | public Color getColor() { return graphics.getColor(); } | 7,868 |
public void setColor(Color color) { this.color = color; } | public void setColor(Color color) { if ((debugOptions & LOG_OPTION) != 0) logStream().println(prefix() + " Setting color: " + color); graphics.setColor(color); } | 7,870 |
private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { if (sem.send()) { JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + ... | 7,876 |
private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | 7,877 |
private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { sem.send(); JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " "... | 7,878 |
final static void add(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | final static void add(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(ifac, ... | 7,879 |
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(o... | final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(o... | 7,880 |
final static void convert(EmitterContext ec, VirtualStack vstack, int fromType, int toType) { final Item v = vstack.pop(fromType); if (v.isConstant()) { vstack.push(createConst(toType, getFPValue(v))); } else { v.pushToFPU(ec); vstack.fpuStack.pop(v); final Item result = createFPUStack(toType); vstack.p... | final static void convert(EmitterContext ec, VirtualStack vstack, int fromType, int toType) { final Item v = vstack.pop(fromType); if (v.isConstant()) { vstack.push(createConst(ifac, toType, getFPValue(v))); } else { v.pushToFPU(ec); vstack.fpuStack.pop(v); final Item result = createFPUStack(toType); vs... | 7,881 |
final static void convert(EmitterContext ec, VirtualStack vstack, int fromType, int toType) { final Item v = vstack.pop(fromType); if (v.isConstant()) { vstack.push(createConst(toType, getFPValue(v))); } else { v.pushToFPU(ec); vstack.fpuStack.pop(v); final Item result = createFPUStack(toType); vstack.p... | final static void convert(EmitterContext ec, VirtualStack vstack, int fromType, int toType) { final Item v = vstack.pop(fromType); if (v.isConstant()) { vstack.push(createConst(toType, getFPValue(v))); } else { v.pushToFPU(ec); vstack.fpuStack.pop(v); final Item result = ifac.createFPUStack(toType); vst... | 7,882 |
private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | private final static Item createConst(ItemFactory ifac, int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return... | 7,883 |
private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return ifac.createDConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createConst((... | 7,884 |
private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return ifac.createFConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createConst(... | 7,885 |
private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return ifac.createIConst((int) value); case JvmType.LONG: return LongItem.createCons... | 7,886 |
private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return LongItem.createCo... | private final static Item createConst(int type, double value) { switch (type) { case JvmType.DOUBLE: return DoubleItem.createConst(value); case JvmType.FLOAT: return FloatItem.createConst((float) value); case JvmType.INT: return IntItem.createConst((int) value); case JvmType.LONG: return ifac.createLConst... | 7,887 |
final static void div(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | final static void div(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(ifac, ... | 7,888 |
final static void mul(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | final static void mul(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(ifac, ... | 7,889 |
final static void neg(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v = vstack.pop(type); if (v.isConstant()) { final double fpv = getFPValue(v); vstack.push(createConst(type, -fpv)); } else { // Prepare final FPUStack fpuStack = vstack.fpuStack; prepareForOperatio... | final static void neg(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v = vstack.pop(type); if (v.isConstant()) { final double fpv = getFPValue(v); vstack.push(createConst(ifac, type, -fpv)); } else { // Prepare final FPUStack fpuStack = vstack.fpuStack; prepareForOp... | 7,890 |
final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | final static void rem(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(ifac, ... | 7,891 |
final static void sub(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(type, ... | final static void sub(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, int type) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); if (v1.isConstant() && v2.isConstant()) { final double fpv1 = getFPValue(v1); final double fpv2 = getFPValue(v2); vstack.push(createConst(ifac, ... | 7,892 |
private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 7,893 |
private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 7,894 |
private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 7,895 |
private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | private boolean matchP(CharIndexed input, REMatch mymatch) { REMatch newMatch = null; REMatch last = null; REToken tk; for (int i=0; i < options.size(); i++) { // In ordaer that the backtracking can work, // each option must be chained to the next token. // But the chain method has some side effect, so ... | 7,896 |
private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); ... | 7,897 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.