bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public float getHeight(GlyphView view) { Font font = view.getFont(); FontMetrics metrics = view.getContainer().getFontMetrics(font); float height = metrics.getHeight(); return height; } | public float getHeight(GlyphView view) { Font font = view.getFont(); FontMetrics metrics = Toolkit.getDefaultToolkit().getFontMetrics(font); float height = metrics.getHeight(); return height; } | 12,036 |
public float getSpan(GlyphView view, int p0, int p1, TabExpander te, float x) { Element el = view.getElement(); Font font = view.getFont(); FontMetrics fm = view.getContainer().getFontMetrics(font); Segment txt = view.getText(p0, p1); int span = Utilities.getTabbe... | public float getSpan(GlyphView view, int p0, int p1, TabExpander te, float x) { Element el = view.getElement(); Font font = view.getFont(); FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(font); Segment txt = view.getText(p0, p1); int span = Utilities.... | 12,037 |
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 12,038 |
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 12,039 |
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ... | 12,040 |
public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.ve... | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.ve... | 12,041 |
private void write_parameter_buffer(MessageHeader header, cdrBufOutput request_part ) throws MARSHAL { try { if (header.version.since_inclusive(1, 2)) { request_part.align(8); ... | protected void write_parameter_buffer(MessageHeader header, cdrBufOutput request_part ) throws MARSHAL { try { if (header.version.since_inclusive(1, 2)) { request_part.align(8); ... | 12,042 |
private void write_parameters(MessageHeader header, cdrBufOutput request_part) throws MARSHAL { // Align after 1.2, but only once. boolean align = header.version.since_inclusive(1, 2); NamedValue para; try { // Write parameters now. for (int i = 0; i < m_args.co... | protected void write_parameters(MessageHeader header, cdrBufOutput request_part ) throws MARSHAL { // Align after 1.2, but only once. boolean align = header.version.since_inclusive(1, 2); NamedValue para; try { // Write parameters now. for (int i = 0; i < m_args... | 12,043 |
private void write_parameters(MessageHeader header, cdrBufOutput request_part) throws MARSHAL { // Align after 1.2, but only once. boolean align = header.version.since_inclusive(1, 2); NamedValue para; try { // Write parameters now. for (int i = 0; i < m_args.co... | private void write_parameters(MessageHeader header, cdrBufOutput request_part) throws MARSHAL { // Align after 1.2, but only once. boolean align = header.version.since_inclusive(1, 2); NamedValue para; try { // Write parameters now. for (int i = 0; i < m_args.co... | 12,044 |
private TTFFontData getFontData(Font font) { if (font instanceof TTFFont) { return ((TTFFont) font).getFontData(); } return null; } | private TTFFontData getFontData(Font font) { if (font instanceof TTFFont) { return ((TTFFont) font).getFontData(); } } | 12,045 |
public FontMetrics getFontMetrics(Font font) { return null; } | public FontMetrics getFontMetrics(Font font) { FontMetrics fm = (FontMetrics) metrics.get(font); if (fm == null) { try { fm = new TTFFontMetrics(font, getFontData(font)); metrics.put(font, fm); } catch (IOException ex) { log.error("Cannot create font metrics for " + font, ex); } } return fm; } | 12,046 |
public static TransformerFactory newInstance() throws TransformerFactoryConfigurationError { try { return (TransformerFactory) ClassStuff.createFactory ( "javax.xml.transform.TransformerFactory", "com.icl.saxon.TransformerFactoryImpl" // "gnu.xml.util.SAXNullTransformerFactory" // "org.apache.xalan.proce... | public static TransformerFactory newInstance() throws TransformerFactoryConfigurationError { try { return (TransformerFactory) ClassStuff.createFactory ( "javax.xml.transform.TransformerFactory", "com.icl.saxon.TransformerFactoryImpl" // "gnu.xml.util.SAXNullTransformerFactory" // "org.apache.xalan.proce... | 12,047 |
public String getAttributeName(int index) { if (current != null) { NamedNodeMap attrs = current.getAttributes(); if (attrs == null) return null; Node attr = attrs.item(index); return attr.getLocalName(); } return super.getAttributeName(index); } | public QName getAttributeName(int index) { if (current != null) { NamedNodeMap attrs = current.getAttributes(); if (attrs == null) return null; Node attr = attrs.item(index); return attr.getLocalName(); } return super.getAttributeName(index); } | 12,048 |
public String getAttributeName(int index) { if (current != null) { NamedNodeMap attrs = current.getAttributes(); if (attrs == null) return null; Node attr = attrs.item(index); return attr.getLocalName(); } return super.getAttributeName(index); } | public String getAttributeName(int index) { if (current != null) { NamedNodeMap attrs = current.getAttributes(); if (attrs == null) return null; Node attr = attrs.item(index); String localName = attr.getLocalName(); String uri = attr.getNamespaceURI(); String prefix = attr... | 12,049 |
public abstract Object getProperty (String id) throws SAXNotRecognizedException, SAXNotSupportedException; | public abstract Object getProperty (String id) throws SAXNotRecognizedException, SAXNotSupportedException; | 12,050 |
public void parse(InputStream stream, HandlerBase handler) throws SAXException, IOException { parse (new InputSource (stream), handler); } | public void parse(InputStream is, HandlerBase hb) throws SAXException, IOException { parse (new InputSource (stream), handler); } | 12,051 |
public void parse(InputStream stream, HandlerBase handler) throws SAXException, IOException { parse (new InputSource (stream), handler); } | public void parse(InputStream stream, HandlerBase handler) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException("input stream is null"); } parse(new InputSource(is), hb); } | 12,052 |
public abstract void setProperty (String id, Object value) throws SAXNotRecognizedException, SAXNotSupportedException; | public abstract void setProperty (String id, Object value) throws SAXNotRecognizedException, SAXNotSupportedException; | 12,053 |
void addListSelectionListener(ListSelectionListener listener) { sel_model.addListSelectionListener(listener); } | void addListSelectionListener(ListSelectionListener listener) { sel_model.addListSelectionListener(listener); } | 12,054 |
public String getUIClassID() { return "JList"; } | public String getUIClassID() { return "JList"; } | 12,055 |
void init() { render = new DefaultCellRenderer(); sel_model = new DefaultListSelectionModel(); setModel(new DefaultListModel()); select_back = new Color(0, 0, 255); select_fore = new Color(255, 255, 255); updateUI(); } | void init() { render = new DefaultCellRenderer(); sel_model = new DefaultListSelectionModel(); setModel(new DefaultListModel()); select_back = new Color(0, 0, 255); select_fore = new Color(255, 255, 255); updateUI(); } | 12,056 |
void init() { render = new DefaultCellRenderer(); sel_model = new DefaultListSelectionModel(); setModel(new DefaultListModel()); select_back = new Color(0, 0, 255); select_fore = new Color(255, 255, 255); updateUI(); } | void init() { render = new DefaultCellRenderer(); sel_model = new DefaultListSelectionModel(); setModel(new DefaultListModel()); select_back = new Color(0, 0, 255); select_fore = new Color(255, 255, 255); updateUI(); } | 12,057 |
void init() { render = new DefaultCellRenderer(); sel_model = new DefaultListSelectionModel(); setModel(new DefaultListModel()); select_back = new Color(0, 0, 255); select_fore = new Color(255, 255, 255); updateUI(); } | void init() { render = new DefaultCellRenderer(); sel_model = new DefaultListSelectionModel(); setModel(new DefaultListModel()); select_back = new Color(0, 0, 255); select_fore = new Color(255, 255, 255); updateUI(); } | 12,058 |
void removeListSelectionListener(ListSelectionListener listener) { sel_model.removeListSelectionListener(listener); } | void removeListSelectionListener(ListSelectionListener listener) { sel_model.removeListSelectionListener(listener); } | 12,059 |
public void setListData(final Object[] listData) { class AL extends AbstractListModel { public int getSize() { return listData.length; } public Object getElementAt(int i) { return listData[i]; } } setModel(new AL()); } | public void setListData(final Object[] listData) { class AL extends AbstractListModel { public int getSize() { return listData.length; } public Object getElementAt(int i) { return listData[i]; } } setModel(new AL()); } | 12,060 |
public Object getElementAt(int i) { return listData[i]; } | public Object getElementAt(int i) { return listData[i]; } | 12,061 |
public int getSize() { return listData.length; } | public int getSize() { return listData.length; } | 12,062 |
public DefaultTableCellRenderer() { super(); this.noFocusBorder = new EmptyBorder(0, 0, 0, 0); } | public DefaultTableCellRenderer() { super(); } | 12,063 |
public final static VmNormalClass getPrimitiveClass(char type) { switch (type) { case 'Z': return BooleanClass; case 'B': return ByteClass; case 'C': return CharClass; case 'S': return ShortClass; case 'I': return IntClass; case 'F': return FloatClass; case 'J': return LongClass; case 'D': ret... | public final static VmNormalClass<?> getPrimitiveClass(char type) { switch (type) { case 'Z': return BooleanClass; case 'B': return ByteClass; case 'C': return CharClass; case 'S': return ShortClass; case 'I': return IntClass; case 'F': return FloatClass; case 'J': return LongClass; case 'D': ... | 12,064 |
private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | 12,065 |
private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics != nul... | 12,066 |
private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { mouseHandler.close(); } if (graphics != nul... | 12,067 |
private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | 12,068 |
private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics !... | 12,069 |
private final synchronized void doWaitUntilStopped() { while (graphics != null) { try { wait(); } catch (InterruptedException ex) { // Ignore } } } | private final synchronized void doWaitUntilStopped() { while (graphics != null) { try { wait(); } catch (InterruptedException ex) { // Ignore } } } | 12,070 |
private final int incRefCount() { final boolean initialize; final int rc; synchronized (this) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment .getLocalGraphi... | private final int incRefCount() { final boolean initialize; final int rc; synchronized (initCloseLock) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment .getLo... | 12,071 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { if (getEditorKit() instanceof HTMLEditorKit) accessibleContext = new AccessibleJEditorPaneHTML(); else accessibleContext = new AccessibleJEditorPane(); } return accessibleContext; } | 12,074 |
private static final int decode4to3(final byte[] src, final int sOffset, final byte[] dest, final int dOffset) { if (src[sOffset + 2] == EQUALS_SIGN) { // Example: Dk== final int outBuff = ((DECODABET[src[sOffset]] & 0xFF) << 18) | ((DECO... | private static final int decode4to3(final byte[] src, final int sOffset, final byte[] dest, final int dOffset) { if (src[sOffset + 2] == EQUALS_SIGN) { // Example: Dk== final int outBuff = ((DECODABET[src[sOffset]] & 0xFF) << 18) | ((DECO... | 12,076 |
private static final int decode4to3(final byte[] src, final int sOffset, final byte[] dest, final int dOffset) { if (src[sOffset + 2] == EQUALS_SIGN) { // Example: Dk== final int outBuff = ((DECODABET[src[sOffset]] & 0xFF) << 18) | ((DECO... | private static final int decode4to3(final byte[] src, final int sOffset, final byte[] dest, final int dOffset) { if (src[sOffset + 2] == EQUALS_SIGN) { // Example: Dk== final int outBuff = ((DECODABET[src[sOffset]] & 0xFF) << 18) | ((DECO... | 12,077 |
protected void initialize(Class type, Object oldInstance, Object newInstance, Encoder out) { if (type != Object.class) { type = type.getSuperclass(); PersistenceDelegate pd = out.getPersistenceDelegate( oldInstance.getClass().getSuperclass()); pd.initi... | protected void initialize(Class type, Object oldInstance, Object newInstance, Encoder out) { if (type != Object.class) { type = type.getSuperclass(); PersistenceDelegate pd = out.getPersistenceDelegate( oldInstance.getClass().getSuperclass()); pd.initi... | 12,078 |
public ULongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public ULongSeqHolder() { value = initial_value; typecode.setLength(value.length); } | 12,079 |
public ULongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public ULongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 12,080 |
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) ... | insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) ... | 12,082 |
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) ... | insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) add(item); else { for (int i = count - 1; i >= index; i--) peer.de... | 12,083 |
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) ... | insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) item.addNotify(); peer.addItem(item); else { for (int i = count - 1; i >=... | 12,084 |
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) ... | insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) ... | 12,085 |
remove(int index){ items.removeElementAt(index); MenuPeer mp = (MenuPeer)getPeer(); if (mp != null) mp.delItem(index);} | remove(int index){ MenuItem item = (MenuItem) items.remove(index); MenuPeer mp = (MenuPeer)getPeer(); if (mp != null) mp.delItem(index);} | 12,086 |
TemplateNode clone(Stylesheet stylesheet) { return new CommentNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); } | TemplateNode clone(Stylesheet stylesheet) { return new CommentNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet)); } | 12,088 |
public static void main(String[] args) { final String name = (args.length > 0) ? args[0] : ""; System.out.println("Creating File(\"" + name + "\")"); final File f = new File(name); System.out.println("Created File(\"" + name + "\")"); System.out.println("List entri... | public static void main(String[] args) { final String name = (args.length > 0) ? args[0] : ""; System.out.println("Creating File(\"" + name + "\")"); final File f = new File(name); System.out.println("Created File(\"" + name + "\")"); System.out.println("List entri... | 12,090 |
public static Dimension getPreferredButtonSize(AbstractButton b, int textIconGap) { Rectangle contentRect; Rectangle viewRect; Rectangle iconRect = new Rectangle(); Rectangle textRect = new Rectangle(); Insets insets = b.getInsets(); viewRect = ne... | public static Dimension getPreferredButtonSize(AbstractButton b, int textIconGap) { Rectangle contentRect; Rectangle viewRect; Rectangle iconRect = new Rectangle(); Rectangle textRect = new Rectangle(); Insets insets = b.getInsets(); viewRect = ne... | 12,091 |
public LineMetrics getLineMetrics(String str, FontRenderContext frc) { return getLineMetrics (str, 0, str.length () - 1, frc); } | public LineMetrics getLineMetrics(String str, FontRenderContext frc) { return getLineMetrics (str, 0, str.length () - 1, frc); } | 12,092 |
public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); } | public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); } | 12,093 |
public void draw (Graphics2D g2, float x, float y) { peer.draw(g2, x, y); } | public void draw (Graphics2D g2, float x, float y) { for(int i = 0; i < runs.length; i++) { g2.drawGlyphVector(runs[i], x, y); Rectangle2D r = runs[i].getLogicalBounds(); x += r.getWidth(); } } | 12,094 |
private static final NumberFormat computeInstance (Locale loc, String resource, String def) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); } catch (MissingResourceException x) { res = null; } String f... | private static final NumberFormat computeInstance (Locale loc, String resource, String def) { ResourceBundle res; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc, ClassLoader.getSystemClassLoader()); } catch (MissingResourceException x) ... | 12,095 |
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); TemplateNode ret = new ForEachNode(select.clone(stylesheet), sortKeys2); ... | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys != null ? sortKeys.size() : 0; List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); TemplateNode ret = new ForEachNode(select.clone(stylesheet), ... | 12,096 |
public boolean implies(Permission perm) { if (allPermission != null) { return true; } final PermissionCollection pc = (PermissionCollection) perms.get(perm .getClass()); if (pc == null) { return false; } else { return pc.implies(perm); } } | public boolean implies(Permission perm) { if (allPermission != null) { return true; } final PermissionCollection pc = (PermissionCollection) perms.get(perm .getClass()); if (pc == null) { return false; } else { return pc.implies(perm); } } | 12,097 |
public final void bootArchitecture(boolean emptyMMap) throws UninterruptiblePragma { Vm.getArch().boot(emptyMMap); } | public final void bootArchitecture(boolean emptyMMap) throws UninterruptiblePragma { Vm.getArch().boot(emptyMMap); } | 12,098 |
public void restartThreads() { VmProcessor.current().enableReschedule(); } | public void restartThreads() { VmMagic.currentProcessor().enableReschedule(true); } | 12,099 |
public final void stopThreadsAtSafePoint() { VmProcessor.current().disableReschedule(); } | public final void stopThreadsAtSafePoint() { VmMagic.currentProcessor().disableReschedule(true); } | 12,100 |
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf... | protected Item clone(EmitterContext ec) { final WordItem res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.tr... | 12,101 |
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf... | protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf... | 12,102 |
protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf... | protected Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register r = pool.request(JvmType.INT); os.writeMOV(INTSIZE, r, reg); res = createReg(getType(), r); pool.transf... | 12,103 |
protected abstract Item cloneConstant(); | protected abstract WordItem cloneConstant(); | 12,104 |
public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu... | public Dimension preferredLayoutSize(Container target) { if (target instanceof JSplitPane) { JSplitPane split = (JSplitPane) target; Insets insets = target.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == null) continu... | 12,105 |
public Dimension preferredLayoutSize(Container container) { if (container instanceof JSplitPane) { JSplitPane split = (JSplitPane) container; Insets insets = container.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == nu... | public Dimension preferredLayoutSize(Container container) { if (container instanceof JSplitPane) { JSplitPane split = (JSplitPane) container; Insets insets = container.getInsets(); int height = 0; int width = 0; for (int i = 0; i < components.length; i++) { if (components[i] == nu... | 12,106 |
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | 12,107 |
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | 12,108 |
public Dimension getMinimumSize(int rows) { return null; } | public Dimension getMinimumSize(int rows) { return getMinimumSize(); } | 12,109 |
public Dimension getPreferredSize(int rows) { return null; } | public Dimension getPreferredSize(int rows) { return getPreferredSize(); } | 12,110 |
public MidiUnavailableException(String s) { super(s); } | public MidiUnavailableException() { super(s); } | 12,111 |
public MidiUnavailableException(String s) { super(s); } | public MidiUnavailableException(String s) { super(); } | 12,112 |
public String getMessage () { if (super.getMessage () == null && exception != null) return exception.getMessage (); return super.getMessage (); } | public String getMessage () { if (super.getMessage () == null && exception != null) return exception.getMessage (); return super.getMessage (); } | 12,113 |
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | 12,115 |
protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | protected InputStream getStream(URL page) { try { return page.openStream(); } catch (Exception e) { System.out.println("Hhmmm, failed to open stream: " + e); } return null; } | 12,116 |
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())... | private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMini... | 12,120 |
private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())... | private void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += Math.max(200, scrollbar.getVisibleAmount())... | 12,121 |
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS... | protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS... | 12,123 |
protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS... | protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener[] listeners = getListS... | 12,124 |
private LoginModule lookupModule (AppConfigurationEntry entry, Subject subject, Map sharedState) throws LoginException { LoginModule module = null; Exception cause = null; try { module = (LoginModule) Class.forName (entry.getLoginModuleName()).newInstance();... | private LoginModule lookupModule (AppConfigurationEntry entry, Subject subject, Map sharedState) throws LoginException { LoginModule module = null; Exception cause = null; try { ClassLoader cl = Thread.currentThread().getContextClassLoader(); Class c = Class... | 12,125 |
public TypeMismatch(String why) { super(why); } | public TypeMismatch() { super(why); } | 12,126 |
public TypeMismatch(String why) { super(why); } | public TypeMismatch(String why) { } | 12,127 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 12,128 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 12,129 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 12,130 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 12,131 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 12,132 |
public int[] getSelectedIndices() { int lo, hi, n, i, j; if (selectionModel.isSelectionEmpty()) return new int[0]; lo = selectionModel.getMinSelectionIndex(); hi = selectionModel.getMaxSelectionIndex(); n = 0; for (i = lo; i < hi; ++i) if (selectionModel.isSelectedIndex(i)) n++; ... | public int[] getSelectedIndices() { int lo, hi, n, i, j; if (selectionModel.isSelectionEmpty()) return new int[0]; lo = selectionModel.getMinSelectionIndex(); hi = selectionModel.getMaxSelectionIndex(); n = 0; for (i = lo; i <= hi; ++i) if (selectionModel.isSelectedIndex(i)) n++; ... | 12,133 |
public JComponent() { super(); super.setLayout(new FlowLayout()); //eventMask |= AWTEvent.COMP_KEY_EVENT_MASK; enableEvents( AWTEvent.KEY_EVENT_MASK ); //updateUI(); // get a proper ui } | public JComponent() { super(); super.setLayout(new FlowLayout()); //eventMask |= AWTEvent.COMP_KEY_EVENT_MASK; //updateUI(); // get a proper ui } | 12,134 |
public void addAncestorListener(AncestorListener listener) { get_ancestor_list().addElement(listener); } | public void addAncestorListener(AncestorListener listener) { listenerList.add(AncestorListener.class, listener); } | 12,135 |
public void addPropertyChangeListener(PropertyChangeListener listener) { get_change_list().addElement(listener); } | public void addPropertyChangeListener(PropertyChangeListener listener) { listenerList.add(PropertyChangeListener.class, listener); } | 12,136 |
public void addVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().addElement(listener); } | public void addVetoableChangeListener(VetoableChangeListener listener) { listenerList.add(VetoableChangeListener.class, listener); } | 12,137 |
public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. return "JComponent"; } | public String getUIClassID() { /// Return the UIDefaults key used to look up the name of the swing. return "ComponentUI"; } | 12,139 |
public void paint(Graphics g) { // System.out.println("SWING_PAINT:" + this); paintBorder(g); paintComponent(g); paintChildren(g); } | public void paint(Graphics g) { // System.out.println("SWING_PAINT:" + this); paintBorder(g); paintComponent(g); paintChildren(g); } | 12,141 |
public void removeAncestorListener(AncestorListener listener) { get_ancestor_list().removeElement(listener); } | public void removeAncestorListener(AncestorListener listener) { listenerList.remove(AncestorListener.class, listener); } | 12,143 |
public void removePropertyChangeListener(PropertyChangeListener listener) { get_change_list().removeElement(listener); } | public void removePropertyChangeListener(PropertyChangeListener listener) { listenerList.remove(PropertyChangeListener.class, listener); } | 12,144 |
public void removeVetoableChangeListener(VetoableChangeListener listener) { get_veto_list().removeElement(listener); } | public void removeVetoableChangeListener(VetoableChangeListener listener) { listenerList.remove(VetoableChangeListener.class, listener); } | 12,145 |
protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create } | protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create } | 12,147 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System... | protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System... | 12,148 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System... | protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case EXIT_ON_CLOSE : { System... | 12,149 |
public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | 12,150 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.