bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; } return pos; } | private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; return pos; | 16,090 |
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng... | private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng... | 16,091 |
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng... | private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng... | 16,092 |
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ... | public boolean matches(Node context) short nodeType = context.getNodeType(); switch (axis) case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ... | 16,093 |
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ... | public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ... | 16,094 |
public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; } } return false; } | public boolean references(QName var) for (int i = 0; i < tests.length; i++) if (tests[i].references(var)) return true; } } return false; } | 16,095 |
public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; } } return false; } | public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; return false; | 16,096 |
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ... | public String toString() StringBuffer buf = new StringBuffer(); switch (axis) case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] in... | 16,097 |
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ... | public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ... | 16,098 |
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ... | public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ... | 16,099 |
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ... | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ... | 16,100 |
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ... | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ... | 16,101 |
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ... | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); if (currentValue != null) { Component comp = comboBox.getRenderer() ... | 16,102 |
public BasicArrowButton(int direction) { super(); setDirection(direction); setBorder(tmpBorder); } | public BasicArrowButton(int direction) { super(); setDirection(direction); } | 16,103 |
public BasicComboBoxEditor() { editor = new JTextField(); editor.setBorder(null); editor.setColumns(9); listener = new ComboBoxEditorListener(); } | public BasicComboBoxEditor() { editor = new JTextField(); editor.setBorder(null); editor.setColumns(9); } | 16,104 |
public BasicComboBoxRenderer() { setHorizontalAlignment(SwingConstants.LEFT); setBorder(noFocusBorder); } | public BasicComboBoxRenderer() { setOpaque(true); setBorder(noFocusBorder); } | 16,105 |
public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; } | public Rectangle(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; } | 16,106 |
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } } | 16,107 |
public CertPathValidatorResult engineValidate(CertPath path, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException { if (!(params instanceof PKIXParameters)) throw new InvalidAlgorithmParameterException("not a PKIXPa... | public CertPathValidatorResult engineValidate(CertPath path, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException { if (!(params instanceof PKIXParameters)) throw new InvalidAlgorithmParameterException("not a PKIXPa... | 16,108 |
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()... | public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (Configuration.DEBUG) log.fine("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!va... | 16,109 |
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()... | public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()... | 16,110 |
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()... | public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()... | 16,111 |
public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()... | public Extension(byte[] encoded) throws IOException { this.encoded = (byte[]) encoded.clone(); DERReader der = new DERReader(encoded); // Extension ::= SEQUENCE { DERValue val = der.read(); if (DEBUG) debug("read val tag == " + val.getTag() + " len == " + val.getLength()); if (!val.isConstructed()... | 16,112 |
public int compareTo(Date when) { return (getTime() < when.getTime()) ? -1 : (getTime() == when.getTime()) ? 0 : 1; } | public int compareTo(Date when) { return (getTime() < when.getTime()) ? -1 : (getTime() == when.getTime()) ? 0 : 1; } | 16,113 |
engineValidate(CertPath certPath, CertPathParameters params) throws CertPathValidatorException, java.security.InvalidAlgorithmParameterException; | engineValidate(CertPath certPath, CertPathParameters params) throws CertPathValidatorException, InvalidAlgorithmParameterException; | 16,114 |
public Date() { this(System.currentTimeMillis()); } | public Date() { this(System.currentTimeMillis()); } | 16,115 |
public abstract void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException; | public abstract void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException; | 16,116 |
public static boolean equals(Object[] a1, Object[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elemen... | public static boolean equals(boolean[] a1, boolean[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elem... | 16,117 |
public static boolean equals(Object[] a1, Object[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elemen... | public static boolean equals(Object[] a1, Object[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // If they're the same length, test each elemen... | 16,118 |
public void addIssuerName(Principal issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNa... | public void addIssuerName(byte[] issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNames... | 16,119 |
public void addIssuerName(Principal issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNa... | public void addIssuerName(Principal issuerName) throws IOException { if (issuerName instanceof X500DistinguishedName) issuerNames.add(issuerName); else if (issuerName instanceof X500Principal) issuerNames.add(new X500DistinguishedName(((X500Principal) issuerName).getEncoded())); else issuerNa... | 16,120 |
public final Class getCategory() { return JobImpressionsSupported.class; } | public Class getCategory() { return JobImpressionsSupported.class; } | 16,121 |
public final String getName() { return "job-impressions-supported"; } | public String getName() { return "job-impressions-supported"; } | 16,122 |
public boolean equals(Object obj) { if (obj instanceof ActivationDesc) { ActivationDesc that = (ActivationDesc) obj; return groupid.equals(that.groupid) && classname.equals(that.classname) && location.equals(that.location) && data.equals(that.data) ... | public boolean equals(Object obj) { if (obj instanceof ActivationDesc) { ActivationDesc that = (ActivationDesc) obj; return groupid.equals(that.groupid) && classname.equals(that.classname) && location.equals(that.location) && data.equals(that.data) ... | 16,123 |
public int hashCode() { return groupid.hashCode() ^ classname.hashCode() ^ location.hashCode() ^ data.hashCode(); } | public int hashCode() { return groupid.hashCode() ^ classname.hashCode() ^ location.hashCode() ^ data.hashCode(); } | 16,124 |
public static ActivationGroupID currentGroupID() { throw new Error("Not implemented");} | public static ActivationGroupID currentGroupID() { throw new Error("Not implemented");} | 16,125 |
public boolean equals(Object obj) { if (obj instanceof ActivationGroupID) { ActivationGroupID that = (ActivationGroupID) obj; return system.equals(that.system); } else return false; } | public boolean equals(Object obj) { if (obj instanceof ActivationGroupID) { ActivationGroupID that = (ActivationGroupID) obj; return uid.equals(that.uid); } else return false; } | 16,126 |
public int hashCode() { return system.hashCode(); } | public int hashCode() { return uid.hashCode(); } | 16,127 |
long write(ByteBuffer[] srcs) throws IOException; | long write(ByteBuffer[] srcs, int offset, int length) throws IOException; | 16,128 |
clone(){ try { return(super.clone()); } catch(Exception e) { return(null); }} | public Object clone () throws CloneNotSupportedException{ try { return(super.public Object clone () throws CloneNotSupportedException); } catch(Exception e) { return(null); }} | 16,129 |
getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 2); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));} | getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));} | 16,130 |
getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException, UnsupportedEncodingException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this... | getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException, UnsupportedEncodingException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this... | 16,131 |
tryToLoadClass(String className, ClassLoader classLoader) throws ClassNotFoundException{ try { return(Class.forName(className)); } catch(Exception e) { } // Commented out for Java 1.1 /* try { return(className.getClass().getClassLoader().findClass(className)); } catch(Exceptio... | tryToLoadClass(String className, ClassLoader classLoader) throws ClassNotFoundException{ try { return(Class.forName(className)); } catch(Exception e) { ; } // Commented out for Java 1.1 /* try { return(className.getClass().getClassLoader().findClass(className)); } catch(Excepti... | 16,132 |
public abstract boolean isDataFlavorSupported(DataFlavor flavor); | boolean isDataFlavorSupported(DataFlavor flavor); | 16,133 |
public abstract Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException; | Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException; | 16,134 |
getParameter(String paramName){ return getParameter(paramName, mimeType);} | getParameter(String paramName, String mimeString){ return getParameter(paramName, mimeType);} | 16,135 |
getParameter(String paramName){ return getParameter(paramName, mimeType);} | getParameter(String paramName){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));} | 16,136 |
public ClassNotFoundException(String s) { this(s, null); } | public ClassNotFoundException(String s) { this(null, null); } | 16,137 |
void setLocale (Locale loc) { if (type == null) ; else if (type.equals("number")) { formatClass = java.lang.Number.class; if (style == null) format = NumberFormat.getInstance(loc); else if (style.equals("currency")) format = NumberFormat.getCurrencyInstance(loc); else if (style.equals("percent"))... | void setLocale (Locale loc) { if (type == null) ; else if (type.equals("number")) { formatClass = java.lang.Number.class; if (style == null) format = NumberFormat.getInstance(loc); else if (style.equals("currency")) format = NumberFormat.getCurrencyInstance(loc); else if (style.equals("percent"))... | 16,138 |
public Field(String name) { super(name); } | protected Field(String name) { super(name); } | 16,139 |
public static NumberFormat getCurrencyInstance (Locale loc) { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; } | public static final NumberFormat getCurrencyInstance () { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; } | 16,140 |
public static NumberFormat getCurrencyInstance (Locale loc) { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; } | public static NumberFormat getCurrencyInstance (Locale loc) { NumberFormat format; format = computeInstance (loc, "currencyFormat", "$#,##0.00;($#,##0.00)"); format.setMaximumFractionDigits(format.getCurrency().getDefaultFractionDigits()); return format; } | 16,141 |
public int hashCode() { return hashcode; } | public int hashCode() { return hashcodeCache; } | 16,142 |
public static int parseInt(String s) { return parseInt(s, 10, false); } | public static int parseInt(String str, int radix) { return parseInt(s, 10, false); } | 16,143 |
public static int parseInt(String s) { return parseInt(s, 10, false); } | public static int parseInt(String s) { return parseInt(str, radix, false); } | 16,144 |
JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); } | public JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); } | 16,145 |
JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); return p; } | protected JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName()+".contentPane"); p.setLayout(new BorderLayout()); return p; } | 16,146 |
Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); return p; } | protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName()+".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); return p; } | 16,147 |
JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; } | protected JLayeredPane createLayeredPane() { JLayeredPane l = new JLayeredPane(); l.setLayout(null); return l; } | 16,148 |
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; } | public Container getContentPane() if (contentPane == null) setContentPane(createContentPane()); } return contentPane; } | 16,149 |
public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); } return contentPane; } | public Container getContentPane() { if (contentPane == null) { setContentPane(createContentPane()); return contentPane; | 16,150 |
JMenuBar getJMenuBar() { return menuBar; } | JMenuBar getJMenuBar() { return menuBar; } | 16,151 |
void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); } | public void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); } | 16,152 |
void addLayoutComponent(Component component, Object contraint); | void addLayoutComponent(Component component, Object contraints); | 16,153 |
public Dimension getSize(Dimension d) { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; } | public Dimension getSize() { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; } | 16,154 |
public Dimension getSize(Dimension d) { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; } | public Dimension getSize(Dimension d) { if (d == null) d = new Dimension(); d.width = width; d.height = height; return d; } | 16,155 |
JLayeredPane() { layers = new TreeMap (); componentToLayer = new Hashtable (); } | public JLayeredPane() { layers = new TreeMap (); componentToLayer = new Hashtable (); } | 16,156 |
protected abstract void shutdownInput () throws IOException; | protected void shutdownInput() throws IOException { throw new IOException("Not implemented in this socket class"); } | 16,157 |
protected abstract void shutdownOutput () throws IOException; | protected void shutdownOutput() throws IOException { throw new IOException("Not implemented in this socket class"); } | 16,158 |
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 16,160 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { // if new selected path contains more elements then current ... | 16,162 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,163 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,164 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,165 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,166 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,167 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,168 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,169 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,170 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,171 |
public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | public void setSelectedPath (MenuElement[] path) { if (path == null) { clearSelectedPath (); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selection.size ()) { // if new selected path contains more elements then current ... | 16,172 |
public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); } | public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); } | 16,173 |
public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); selection.clear (); } | public void clearSelectedPath () { for (int i = 0; i < selection.size (); i++) ((MenuElement) selection.get (i)).menuSelectionChanged (false); fireStateChanged(); selectedPath.clear(); } | 16,174 |
public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ... | public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ... | 16,175 |
public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ... | public void processMouseEvent (MouseEvent event) { Component c = ((MenuElement) event.getSource ()).getComponent (); if (selection.size () == 0) { ((MenuElement) event.getSource ()).processMouseEvent (event, getPath (c), ... | 16,176 |
stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));} | stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));} | 16,177 |
stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));} | stringWidth(String str){ char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return(charsWidth(buf, 0, buf.length));} | 16,178 |
getHeight(){ return(getAscent() + getDescent() + getLeading());} | getHeight(){ return(getAscent() + getDescent() + getLeading());} | 16,179 |
public static String getKeyText(int keyCode) { switch (keyCode) { case VK_CANCEL: return "Cancel"; case VK_BACK_SPACE: return "Backspace"; case VK_TAB: return "Tab"; case VK_ENTER: return "Enter"; case VK_CLEAR: return "Clear"; case VK_SHIFT: ... | public static String getKeyText(int keyCode) { switch (keyCode) { case VK_CANCEL: return "Cancel"; case VK_BACK_SPACE: return "Backspace"; case VK_TAB: return "Tab"; case VK_ENTER: return "Enter"; case VK_CLEAR: return "Clear"; case VK_SHIFT: ... | 16,180 |
getFontMetrics(Font font); | getFontMetrics() { return(getFontMetrics(getFont())); } | 16,181 |
getAscent(){ return(1);} | getAscent(){ return(1);} | 16,182 |
public static void drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y) { Graphics2D g2; Rectangle2D.Double underline; FontRenderContext frc; FontMetrics fmet; LineMetrics lineM... | public static void drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y) { Graphics2D g2; Rectangle2D.Double underline; FontRenderContext frc; FontMetrics fmet; LineMetrics lineM... | 16,183 |
public static String toString(int i) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). return String.valueOf(i); } | public static String toString(int num, int radix) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). return String.valueOf(i); } | 16,184 |
public static String toString(int i) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). return String.valueOf(i); } | public static String toString(int i) { // This is tricky: in libgcj, String.valueOf(int) is a fast native // implementation. In Classpath it just calls back to // Integer.toString(int, int). if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) radix = 10; char[] buffer = new char[33]; int ... | 16,185 |
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("... | public static void insertSystemProperties(Properties res) { final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("java.vm.specificat... | 16,186 |
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("... | public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); final VmArchitecture arch = vm.getArch(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/");... | 16,187 |
public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("... | public static void insertSystemProperties(Properties res) { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("... | 16,188 |
public VmType loadClass(String name, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { // Also implement the java.lang.ClassLoader principals here // otherwise they cannot work in java.lang.ClassLoader. if ((parent != null) && !parent.skipParentLoader(name)) { ... | public VmType loadClass(String name, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { // Also implement the java.lang.ClassLoader principals here // otherwise they cannot work in java.lang.ClassLoader. if ((parent != null) && !parent.skipParentLoader(name)) { ... | 16,190 |
public final Object newInstance(VmType cls, int size) { testInited(); if (cls.isArray()) { throw new IllegalArgumentException("Cannot instantiate an array like this"); } if (cls.isInterface()) { throw new IllegalArgumentException("Cannot instantiate an interface"); } final Object obj = allocObject((VmNorma... | public final Object newInstance(VmType cls, int size) { testInited(); if (cls.isArray()) { throw new IllegalArgumentException("Cannot instantiate an array like this"); } if (cls.isInterface()) { throw new IllegalArgumentException("Cannot instantiate an interface"); } final Object obj = allocObject((VmNorma... | 16,192 |
public final Object clone(Object object) { testInited(); final VmClassType objectClass = helper.getVmClass(object); final Address objectAddr = helper.addressOf(object); final int size; if (objectClass.isArray()) { final int slotSize = Unsafe.getCurrentProcessor().getArchitecture().getReferenceSize(); final Vm... | public final Object clone(Object object) { testInited(); final VmClassType objectClass = helper.getVmClass(object); final Address objectAddr = helper.addressOf(object); final int size; if (objectClass.isArray()) { final int slotSize = Unsafe.getCurrentProcessor().getArchitecture().getReferenceSize(); final Vm... | 16,193 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.