bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void paint(Graphics g) { super.paint(g); } | public void paint(Graphics g) { super.paint(g); } | 20,017 |
public void repaint(long value0, int value1, int value2, int value3, int value4) { // TODO } // repaint() | public void repaint(long value0, int value1, int value2, int value3, int value4) { // TODO } // repaint() | 20,018 |
public void revalidate() { // TODO } // revalidate() | public void revalidate() { // TODO } // revalidate() | 20,019 |
public void setBackground(Color c) { if (c != null && c instanceof UIResource) c = null; super.setBackground(c); } | public void setBackground(Color c) { if (c != null && c instanceof UIResource) c = null; super.setBackground(c); } | 20,020 |
public void setBackgroundNonSelectionColor(Color c) { backgroundNonSelectionColor = c; } | public void setBackgroundNonSelectionColor(Color c) { backgroundNonSelectionColor = c; } | 20,021 |
public void setBackgroundSelectionColor(Color c) { backgroundSelectionColor = c; } | public void setBackgroundSelectionColor(Color c) { backgroundSelectionColor = c; } | 20,022 |
public void setBorderSelectionColor(Color c) { borderSelectionColor = c; } | public void setBorderSelectionColor(Color c) { borderSelectionColor = c; } | 20,023 |
public void setClosedIcon(Icon i) { closedIcon = i; } | public void setClosedIcon(Icon i) { closedIcon = i; } | 20,024 |
public void setFont(Font f) { if (f != null && f instanceof UIResource) f = null; super.setFont(f); } | public void setFont(Font f) { if (f != null && f instanceof UIResource) f = null; super.setFont(f); } | 20,025 |
public void setLeafIcon(Icon i) { leafIcon = i; } | public void setLeafIcon(Icon i) { leafIcon = i; } | 20,026 |
public void setOpenIcon(Icon i) { openIcon = i; } | public void setOpenIcon(Icon i) { openIcon = i; } | 20,027 |
public void setTextNonSelectionColor(Color c) { textNonSelectionColor = c; } | public void setTextNonSelectionColor(Color c) { textNonSelectionColor = c; } | 20,028 |
public void setTextSelectionColor(Color c) { textSelectionColor = c; } | public void setTextSelectionColor(Color c) { textSelectionColor = c; } | 20,029 |
public void validate() { // TODO } // validate() | public void validate() { // TODO } // validate() | 20,030 |
getAttribute(AttributedCharacterIterator.Attribute attrib){ if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.next(); // C... | getAttribute(AttributedCharacterIterator.Attribute attrib){ if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.next(); // C... | 20,032 |
getAttributes(){ HashMap m = new HashMap(); if (attribs == null) return(m); for (int i = 0; i < attribs.length; i++) { if ((ci.getIndex() >= attribs[i].begin_index) && (ci.getIndex() <= attribs[i].end_index)) m.putAll(attribs[i].attribs); } return(m);} | getAttributes(){ HashMap m = new HashMap(); if (attribs == null) return(m); for (int i = 0; i < attribs.length; i++) { if ((ci.getIndex() >= attribs[i].begin_index) && (ci.getIndex() < attribs[i].end_index)) m.putAll(attribs[i].attribs); } return(m);} | 20,033 |
private ThreadGroup() { this.parent = null; this.name = "Root Thread Group"; this.maxPriority = java.lang.Thread.MAX_PRIORITY; this.daemon = false; this.process = VmProcess.getRootProcess(this); } | private ThreadGroup() { this.parent = null; this.name = "Root Thread Group"; this.maxPriority = java.lang.Thread.MAX_PRIORITY; this.daemon = false; this.process = VmProcess.getRootProcess(this); } | 20,034 |
public int activeCount() { return allThreadsCount(); } | public int activeCount() { return allThreadsCount(); } | 20,035 |
public int activeGroupCount() { return allGroupsCount(); } | public int activeGroupCount() { return allGroupsCount(); } | 20,036 |
public boolean allowThreadSuspension(boolean b) { // Ignore return true; } | public boolean allowThreadSuspension(boolean b) { // Ignore return true; } | 20,037 |
public final void checkAccess() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkAccess(this); } | public final void checkAccess() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkAccess(this); } | 20,038 |
public final void destroy() { checkAccess(); if (destroyed) throw new IllegalThreadStateException("ThreadGroup has already been destroyed"); if (threads.size() > 0) throw new IllegalThreadStateException("ThreadGroup has Threads remaining"); Enumeration e = groups.elements(); while (e.hasMoreElements()) { Th... | public final void destroy() { checkAccess(); if (destroyed) throw new IllegalThreadStateException("ThreadGroup has already been destroyed"); if (threads.size() > 0) throw new IllegalThreadStateException("ThreadGroup has Threads remaining"); Enumeration e = groups.elements(); while (e.hasMoreElements()) { Th... | 20,039 |
public int enumerate(Thread[] list) { return enumerate(list, false); } | public int enumerate(Thread[] list) { return enumerate(list, false); } | 20,040 |
public final int getMaxPriority() { return maxPriority; } | public final int getMaxPriority() { return maxPriority; } | 20,041 |
public final String getName() { return name; } | public final String getName() { return name; } | 20,042 |
public final ThreadGroup getParent() { return parent; } | public final ThreadGroup getParent() { return parent; } | 20,043 |
public final boolean isDaemon() { return daemon; } | public final boolean isDaemon() { return daemon; } | 20,044 |
public boolean isDestroyed() { return destroyed; } | public boolean isDestroyed() { return destroyed; } | 20,045 |
public void list() { list(""); } | public void list() { list(""); } | 20,046 |
public final boolean parentOf(ThreadGroup g) { return (this == g) || parentOf(g.getParent()); } | public final boolean parentOf(ThreadGroup g) { return (this == g) || parentOf(g.getParent()); } | 20,047 |
public final void resume() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.resume(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) et.nextElement(); g.resume(); } } | public final void resume() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.resume(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) et.nextElement(); g.resume(); } } | 20,048 |
public final void setDaemon(boolean daemon) { checkAccess(); this.daemon = daemon; } | public final void setDaemon(boolean daemon) { checkAccess(); this.daemon = daemon; } | 20,049 |
public final void setMaxPriority(int n) { checkAccess(); if (n < Thread.MIN_PRIORITY || n > Thread.MAX_PRIORITY) throw new IllegalArgumentException("Invalid priority: " + n); if (parent != null && n > parent.maxPriority) n = parent.maxPriority; maxPriority = n; Enumeration e = groups.elements(); while (e.has... | public final void setMaxPriority(int n) { checkAccess(); if (n < Thread.MIN_PRIORITY || n > Thread.MAX_PRIORITY) throw new IllegalArgumentException("Invalid priority: " + n); if (parent != null && n > parent.maxPriority) n = parent.maxPriority; maxPriority = n; Enumeration e = groups.elements(); while (e.has... | 20,050 |
public final void stop() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.stop(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.stop(); } } | public final void stop() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.stop(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.stop(); } } | 20,051 |
public final void suspend() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.suspend(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.suspend(); } } | public final void suspend() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.suspend(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.suspend(); } } | 20,052 |
public String toString() { return getClass().getName() + "[name=" + name + ",maxpri=" + maxPriority + "]"; } | public String toString() { return getClass().getName() + "[name=" + name + ",maxpri=" + maxPriority + "]"; } | 20,053 |
public void uncaughtException(Thread t, Throwable e) { if (parent != null) parent.uncaughtException(t, e); else if (!(e instanceof ThreadDeath)) e.printStackTrace(); } | public void uncaughtException(Thread t, Throwable e) { if (parent != null) parent.uncaughtException(t, e); else if (!(e instanceof ThreadDeath)) e.printStackTrace(); } | 20,054 |
public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) throw new RuntimeException("par... | public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JLayeredPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) throw new RuntimeException("p... | 20,056 |
public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) throw new RuntimeException("par... | public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) toUse = JLayeredPane.getLayered... | 20,057 |
public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) throw new RuntimeException("par... | frame.pack(); frame.setVisible(true); public JInternalFrame createInternalFrame(Component parentComponent,frame.pack(); frame.setVisible(true); frame.pack(); frame.setVisible(true); frame.pack(); frame.setVisible(true); frame.pack(); frame.setVisible(true); frame.pack(); frame.setVisible(true); frame.pack(); fram... | 20,058 |
public static int showInternalConfirmDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame, pane); return ((Integer) pane.getVal... | public static int showInternalConfirmDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame); return ((Integer) pane.getValue()).... | 20,059 |
public static String showInternalInputDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); pane.setWantsInput(true); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame, pane); ... | public static String showInternalInputDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); pane.setWantsInput(true); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame); retu... | 20,060 |
public static void showInternalMessageDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame, pane); } | public static void showInternalMessageDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame); } | 20,061 |
public static int showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, ... | public static int showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, ... | 20,062 |
private static void startModal(JInternalFrame f, JOptionPane pane) { f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); synchronized (f) { final JInternalFrame tmp = f; tmp.toFront(); f.addInternalFrameListener(n... | private static void startModal(JInternalFrame f) { f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); synchronized (f) { final JInternalFrame tmp = f; tmp.toFront(); f.addInternalFrameListener(new InternalFrameAd... | 20,063 |
private static void startModal(JInternalFrame f, JOptionPane pane) { f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); synchronized (f) { final JInternalFrame tmp = f; tmp.toFront(); f.addInternalFrameListener(n... | private static void startModal(JInternalFrame f, JOptionPane pane) { f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); synchronized (f) { final JInternalFrame tmp = f; tmp.toFront(); f.addInternalFrameListener(n... | 20,064 |
protected SecureClassLoader(ClassLoader parent) { super(parent); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkCreateClassLoader(); } | protected SecureClassLoader(ClassLoader parent) { super(parent); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkCreateClassLoader(); } | 20,065 |
protected SecureClassLoader(ClassLoader parent) { super(parent); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkCreateClassLoader(); } | protected SecureClassLoader(ClassLoader parent) { super(parent); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkCreateClassLoader(); } | 20,066 |
protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | 20,067 |
protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | 20,068 |
protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | 20,069 |
protected PermissionCollection getPermissions(CodeSource cs) { Policy policy = Policy.getPolicy(); return policy.getPermissions(cs); } | protected PermissionCollection getPermissions(CodeSource cs) { Policy policy = Policy.getPolicy(); return policy.getPermissions(cs); } | 20,070 |
public ProtectionDomain(CodeSource code_source, PermissionCollection perms) { this.code_source = code_source; this.perms = perms; if (perms != null) perms.setReadOnly(); } | public ProtectionDomain(CodeSource code_source, PermissionCollection perms) { this.code_source = code_source; this.perms = perms; if (perms != null) perms.setReadOnly(); } | 20,071 |
protected final Class defineClass(String name, byte[] data, int offset, int length, ProtectionDomain protDomain) { if (data == null) { throw new NullPointerException(); } if (offset < 0 || length < 0 || (offset + length) > data.length) { throw new IndexOutOfBoun... | protected final Class defineClass(String name, byte[] data, int offset, int length, ProtectionDomain protDomain) { if (data == null) { throw new NullPointerException(); } if (offset < 0 || length < 0 || (offset + length) > data.length) { throw new IndexOutOfBoun... | 20,072 |
public void eventDispatched(AWTEvent event) { int id = event == null ? 0 : event.getID(); if (((mask & AWTEvent.ACTION_EVENT_MASK) != 0 && event instanceof ActionEvent) || ((mask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0 && event instanceof AdjustmentEvent) || ((mask & AWTEvent.CO... | public void eventDispatched(AWTEvent event) { int id = event == null ? 0 : event.getID(); if (((mask & AWTEvent.ACTION_EVENT_MASK) != 0 && event instanceof ActionEvent) || ((mask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0 && event instanceof AdjustmentEvent) || ((mask & AWTEvent.CO... | 20,073 |
public void installDefaults(JPanel p) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setBackground(defaults.getColor("Panel.background")); p.setOpaque(true); } | public void installDefaults(JPanel p) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setBackground(defaults.getColor("Panel.background")); p.setOpaque(true); } | 20,080 |
public static void initialize() { if (!inited) { // Initialize resource manager final ResourceManager rm = ResourceManagerImpl.initialize(); VmSystem.out = getSystemOut(); /* Initialize the system classloader */ VmSystemClassLoader loader = (VmSystemClas... | public static void initialize() { if (!inited) { // Initialize resource manager final ResourceManager rm = ResourceManagerImpl.initialize(); VmSystem.out = getSystemOut(); /* Initialize the system classloader */ VmSystemClassLoader loader = (VmSystemClas... | 20,081 |
static public List<String> getEntryNames(Iterator<FSEntry> it) { List<String> names = new ArrayList<String>(); while (it.hasNext()) { FSEntry entry = it.next(); names.add((entry == null) ? null : entry.getName()); } return names; } | static public List<String> getEntryNames(Iterator<? extends FSEntry> it) { List<String> names = new ArrayList<String>(); while (it.hasNext()) { FSEntry entry = it.next(); names.add((entry == null) ? null : entry.getName()); } return names; } | 20,082 |
static public void listEntries(Iterator<FSEntry> iterator) throws Exception { log.debug("<<< BEGIN listEntries >>>"); int i = 0; log.debug("------- entries ------"); while (iterator.hasNext()) { FSEntry entry = iterator.next(); log.debug(i + ":" + entry); ... | static public void listEntries(Iterator<? extends FSEntry> iterator) throws Exception { log.debug("<<< BEGIN listEntries >>>"); int i = 0; log.debug("------- entries ------"); while (iterator.hasNext()) { FSEntry entry = iterator.next(); log.debug(i + ":" + entry); ... | 20,083 |
static public String toString(List<String> list) { StringBuffer sb = new StringBuffer("["); for (int i = 0; i < list.size(); i++) { if (i > 0) { sb.append(", "); } sb.append(list.get(i)); } sb.append("]"); return sb.toString(); } | static public String toString(List<String> list) { StringBuffer sb = new StringBuffer("["); for (int i = 0; i < list.size(); i++) { if (i > 0) { sb.append(", "); } sb.append(list.get(i)); } sb.append("]"); return sb.toString(); } | 20,084 |
public void addActionListener(ActionListener l) { // comp.enableEvents( AWTEvent.ACTION_EVENT_MASK ); actions.addElement(l); } | public void addActionListener(ActionListener l) { // comp.enableEvents( AWTEvent.ACTION_EVENT_MASK ); actions.addElement(l); } | 20,086 |
public void addChangeListener(ChangeListener l) { changes.addElement(l); } | public void addChangeListener(ChangeListener l) { changes.addElement(l); } | 20,087 |
public void addItemListener(ItemListener l) { items.addElement(l); } | public void addItemListener(ItemListener l) { items.addElement(l); } | 20,088 |
public void fireItemStateChanged(ItemEvent event) { for (int i = 0; i < items.size(); i++) { ItemListener a = (ItemListener) items.get(i); a.itemStateChanged(event); } } | public void fireItemStateChanged(ItemEvent event) { for (int i = 0; i < items.size(); i++) { ItemListener a = (ItemListener) items.get(i); a.itemStateChanged(event); } } | 20,089 |
public void fireStateChanged(ChangeEvent event) { for (int i = 0; i < changes.size(); i++) { ChangeListener a = (ChangeListener) changes.get(i); a.stateChanged(event); } } | public void fireStateChanged(ChangeEvent event) { for (int i = 0; i < changes.size(); i++) { ChangeListener a = (ChangeListener) changes.get(i); a.stateChanged(event); } } | 20,090 |
public String getActionCommand() { return com; } | public String getActionCommand() { return com; } | 20,091 |
public int getMnemonic() { return mne; } | public int getMnemonic() { return mne; } | 20,092 |
public Object[] getSelectedObjects() { return null; } | public Object[] getSelectedObjects() { return null; } | 20,093 |
public boolean isRollover() { return roll; } | public boolean isRollover() { return roll; } | 20,094 |
public void removeActionListener(ActionListener l) { actions.removeElement(l); } | public void removeActionListener(ActionListener l) { actions.removeElement(l); } | 20,095 |
public void removeChangeListener(ChangeListener l) { changes.removeElement(l); } | public void removeChangeListener(ChangeListener l) { changes.removeElement(l); } | 20,096 |
public void removeItemListener(ItemListener l) { items.removeElement(l); } | public void removeItemListener(ItemListener l) { items.removeElement(l); } | 20,097 |
public void setActionCommand(String s) { com = s; } | public void setActionCommand(String s) { com = s; } | 20,098 |
public void setArmed(boolean b) { arm = b; } | public void setArmed(boolean b) { arm = b; } | 20,099 |
public void setEnabled(boolean b) { enabled = b; } | public void setEnabled(boolean b) { enabled = b; } | 20,100 |
public void setGroup(ButtonGroup group) { this.group = group; } | public void setGroup(ButtonGroup group) { this.group = group; } | 20,101 |
public void setMnemonic(int key) { mne = key; } | public void setMnemonic(int key) { mne = key; } | 20,102 |
public void setRollover(boolean b) { roll = b; } | public void setRollover(boolean b) { roll = b; } | 20,103 |
public Throwable() { this("", null); } | public Throwable() { this("", null); } | 20,104 |
public final void visit_iinc(int index, int incValue) { vstack.loadLocal(eContext, index); // avoid aliasing throubles final int ebpOfs = stackFrame.getEbpOffset(index); X86RegisterPool pool = eContext.getPool(); final Register r = (Register)pool.request(Item.INT); //IMPROVE: use ... | public final void visit_iinc(int index, int incValue) { final int ebpOfs = stackFrame.getEbpOffset(index); // avoid aliasing throubles final int ebpOfs = stackFrame.getEbpOffset(index); X86RegisterPool pool = eContext.getPool(); final Register r = (Register)pool.request(Item.INT); ... | 20,108 |
public final void visit_iinc(int index, int incValue) { vstack.loadLocal(eContext, index); // avoid aliasing throubles final int ebpOfs = stackFrame.getEbpOffset(index); X86RegisterPool pool = eContext.getPool(); final Register r = (Register)pool.request(Item.INT); //IMPROVE: use ... | public final void visit_iinc(int index, int incValue) { vstack.loadLocal(eContext, index); // avoid aliasing throubles vstack.loadLocal(eContext, ebpOfs); X86RegisterPool pool = eContext.getPool(); final Register r = (Register)pool.request(Item.INT); //IMPROVE: use INC or ADD reg... | 20,109 |
public void emitTrailer(int maxLocals) { final int argSlotCount = method.getArgSlotCount(); final Label stackOverflowLabel = helper.genLabel("$$stack-overflow"); // Begin footer // Now start the actual footer os.setObjectRef(footerLabel); /* Go restore the previous current frame */ emitSynchronizationCode(conte... | public void emitTrailer(int maxLocals) { final int argSlotCount = method.getArgSlotCount(); final Label stackOverflowLabel = helper.genLabel("$$stack-overflow"); // Begin footer // Now start the actual footer os.setObjectRef(footerLabel); /* Go restore the previous current frame */ emitSynchronizationCode(conte... | 20,112 |
public void startInlinedMethod(VmMethod inlinedMethod, Label curInstrLabel) { this.labelPrefix = curInstrLabel + "_" + inlinedMethod + "_"; this.instrLabelPrefix = labelPrefix + "_bci_"; this.addressLabels.clear(); } | public void startInlinedMethod(VmMethod inlinedMethod, Label curInstrLabel) { this.labelPrefix = curInstrLabel + "_" + inlinedMethod.getName() + "_"; this.instrLabelPrefix = labelPrefix + "_bci_"; this.addressLabels.clear(); } | 20,113 |
void loadLocal(EmitterContext ec, int index) { for (int i = 0; i < tos; i++) { final Item item = stack[i]; if ((item.getKind() == Item.LOCAL) && (item.getOffsetToFP() == index)) item.load(ec); } } | void loadLocal(EmitterContext ec, int index) { for (int i = 0; i < tos; i++) { final Item item = stack[i]; if ((item.getKind() == Item.LOCAL) && (item.getOffsetToFP() == index)) item.load(ec); } } | 20,114 |
void loadLocal(EmitterContext ec, int index) { for (int i = 0; i < tos; i++) { final Item item = stack[i]; if ((item.getKind() == Item.LOCAL) && (item.getOffsetToFP() == index)) item.load(ec); } } | void loadLocal(EmitterContext ec, int index) { for (int i = 0; i < tos; i++) { final Item item = stack[i]; if ((item.getKind() == Item.LOCAL) && (item.getOffsetToFP() == index)) item.load(ec); } } | 20,115 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6... | 20,116 |
public static Border getEtchedBorderUIResource() { return null; } | public static Border getEtchedBorderUIResource() { return null; } | 20,117 |
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTreeUI instance; if (o == null) { instance = new MetalTreeUI(); instances.put(component, instance); } else instance =... | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTreeUI instance; if (o == null) { instance = new MetalTreeUI(); instances.put(component, instance); } else instance =... | 20,118 |
public final void copy(Address src, Address dst, int size) { Unsafe.copy(src, dst, size); } | public final void copy(Address src, Address dst, Extent size) { Unsafe.copy(src, dst, size); } | 20,119 |
public MappedFSBlockDeviceSupport(Device parent, long offset, long length) throws IOException { super(parent, offset, length); try { this.parentApi = (FSBlockDeviceAPI) parent.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new IOExcept... | public MappedFSBlockDeviceSupport(Device parent, long offset, long length) throws IOException { super(parent, offset, length); try { this.parentApi = (FSBlockDeviceAPI) parent.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { final IOException ... | 20,120 |
public Iterator iterator() { return new IndexEntryIterator(parentFileRecord, this, getHeader() .getFirstEntryOffset() + 0x18); } | public Iterator<IndexEntry> iterator() { return new IndexEntryIterator(parentFileRecord, this, getHeader() .getFirstEntryOffset() + 0x18); } | 20,121 |
public MarshalException(String s, Exception e) { super(s, e); } | public MarshalException(String s) { super(s, e); } | 20,122 |
public MarshalException(String s, Exception e) { super(s, e); } | public MarshalException(String s, Exception e) { super(s); } | 20,123 |
private void checkLegalVersion (String version) throws SAXException { int len = version.length (); for (int i = 0; i < len; i++) { char c = version.charAt (i); if ('0' <= c && c <= '9') continue; if (c == '_' || c == '.' || c == ':' || c == '-') continue; if ('a' <= c && c <= 'z') continue;... | private void checkLegalVersion(String version) throws SAXException { int len = version.length (); for (int i = 0; i < len; i++) { char c = version.charAt (i); if ('0' <= c && c <= '9') continue; if (c == '_' || c == '.' || c == ':' || c == '-') continue; if ('a' <= c && c <= 'z') continue; ... | 20,125 |
private void checkLegalVersion (String version) throws SAXException { int len = version.length (); for (int i = 0; i < len; i++) { char c = version.charAt (i); if ('0' <= c && c <= '9') continue; if (c == '_' || c == '.' || c == ':' || c == '-') continue; if ('a' <= c && c <= 'z') continue;... | private void checkLegalVersion (String version) throws SAXException { int len = version.length (); for (int i = 0; i < len; i++) { char c = version.charAt (i); if ('0' <= c && c <= '9') continue; if (c == '_' || c == '.' || c == ':' || c == '-') continue; if ('a' <= c && c <= 'z') continue;... | 20,126 |
private void copyIso8859_1ReadBuffer (int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString ... | private void copyIso8859_1ReadBuffer(int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString (... | 20,128 |
private void copyIso8859_1ReadBuffer (int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString ... | private void copyIso8859_1ReadBuffer (int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString ... | 20,129 |
private void copyIso8859_1ReadBuffer (int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString ... | private void copyIso8859_1ReadBuffer (int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString ... | 20,130 |
private void copyIso8859_1ReadBuffer (int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString ... | private void copyIso8859_1ReadBuffer (int count, char mask) throws IOException { int i, j; for (i = 0, j = readBufferPos; i < count; i++, j++) { char c = (char) (rawReadBuffer [i] & 0xff); if ((c & mask) != 0) throw new CharConversionException ("non-ASCII character U+" + Integer.toHexString ... | 20,131 |
private void copyUcs2ReadBuffer (int count, int shift1, int shift2) throws SAXException { int j = readBufferPos; if (count > 0 && (count % 2) != 0) { encodingError ("odd number of bytes in UCS-2 encoding", -1, count); } // The loops are faster with less internal brancing; hence two if (shift1 == 0) { // "... | private void copyUcs2ReadBuffer(int count, int shift1, int shift2) throws SAXException { int j = readBufferPos; if (count > 0 && (count % 2) != 0) { encodingError ("odd number of bytes in UCS-2 encoding", -1, count); } // The loops are faster with less internal brancing; hence two if (shift1 == 0) { // "U... | 20,132 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.