bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public boolean equals(Object o) { return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) &&... | public boolean equals(Object o) { return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) &&... | 19,675 |
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ... | protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ... | 19,676 |
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ... | protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ... | 19,677 |
public String getApproveButtonText() { if (approveButtonText == null) return getUI().getApproveButtonText(this); else return approveButtonText; } | public String getApproveButtonText() { if (approveButtonText == null) return getUI().getApproveButtonText(this); else return approveButtonText; } | 19,680 |
public String getDescription(File f) { return getFileView().getDescription(f); } | public String getDescription(File f) { String result = null; if (fv != null) result = fv.getDescription(f); if (result == null) result = getUI().getFileView(this).getDescription(f); return result; } | 19,681 |
public String getDialogTitle() { if (dialogTitle == null) return getUI().getDialogTitle(this); else return dialogTitle; } | public String getDialogTitle() { if (dialogTitle == null) return getUI().getDialogTitle(this); else return dialogTitle; } | 19,682 |
public FileView getFileView() { if (fv == null) return getUI().getFileView(this); else return fv; } | public FileView getFileView() { if (fv == null) return getUI().getFileView(this); else return fv; } | 19,683 |
public Icon getIcon(File f) { return getFileView().getIcon(f); } | public Icon getIcon(File f) { Icon result = null; if (fv != null) result = fv.getIcon(f); if (result == null) result = getUI().getFileView(this).getIcon(f); return result; } | 19,684 |
public String getName(File f) { return getFileView().getName(f); } | public String getName(File f) { String name = null; if (fv != null) name = fv.getName(f); if (name == null) name = getUI().getFileView(this).getName(f); return name; } | 19,685 |
public String getTypeDescription(File f) { return getFileView().getTypeDescription(f); } | public String getTypeDescription(File f) { String result = null; if (fv != null) result = getFileView().getTypeDescription(f); if (result == null) result = getUI().getFileView(this).getTypeDescription(f); return result; } | 19,686 |
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } } | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } } | 19,688 |
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } } | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } } | 19,689 |
private void help(PrintStream out) { out.println("Usage:"); out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Al... | private void help(PrintStream out) { out.println("Usage:"); out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Al... | 19,690 |
private void reset() { threads = null; threadIterator = null; } | private void reset() { threads = null; threadIterator = null; } | 19,691 |
public Object run() { final PrintStream out = VmSystem.getOut(); switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w'... | public Object run() { final PrintStream out = VmSystem.getOut(); switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w'... | 19,692 |
public int[] getRowsForPaths(TreePath[] path); | int[] getRowsForPaths(TreePath[] path); | 19,694 |
protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; } | protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; } | 19,695 |
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { StreamBasedRequest sr = (StreamBasedRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.co... | 19,696 |
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | 19,697 |
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ... | 19,698 |
public InvokeHandler getHandler(String operation, CookieHolder cookie, boolean forwarding_allowed ) throws gnuForwardRequest { if (servant != null) return servantToHandler(servant); else { // Use servant... | public InvokeHandler getHandler(String operation, CookieHolder cookie, boolean forwarding_allowed ) throws gnuForwardRequest { if (servant != null) return servantToHandler(servant); else { // Use servant... | 19,700 |
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) serverRequest = new LocalServerRequest(this); try ... | public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) serverRequest = new LocalServerRequest(this); try ... | 19,702 |
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); } | public static void setProperty(String key, String datum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); } | 19,707 |
public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); secprops.put(key, datnum); } | public static void setProperty(String key, String datnum) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("setProperty." + key); if (datum == null) secprops.remove(key); else secprops.put(key, datum); } | 19,708 |
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(... | public Object decodeSignature(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) throw new IllegalArgumentException("m... | 19,709 |
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(... | public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_DSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_DSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_DSS_SIGNATURE[3]) { throw new IllegalArgumentException(... | 19,710 |
public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutp... | public byte[] encodeSignature(Object signature) { BigInteger r, s; try { BigInteger[] sig = (BigInteger[]) signature; r = sig[0]; s = sig[1]; } catch (Exception x) { throw new IllegalArgumentException("signature"); } ByteArrayOutputStream baos = new ByteArr... | 19,711 |
public Color getBackground() { return bg; } | public Color getBackground() { Color background; if (bg == null) background = JTabbedPane.this.getBackground(); else background = bg; return background; } | 19,712 |
public Color getForeground() { return fg; } | public Color getForeground() { Color foreground; if (fg == null) foreground = JTabbedPane.this.getForeground(); else foreground = fg; return foreground; } | 19,713 |
public Component getSelectedComponent() { return getComponentAt(getSelectedIndex()); } | public Component getSelectedComponent() { int selectedIndex = getSelectedIndex(); Component selected = null; if (selectedIndex >= 0) selected = getComponentAt(selectedIndex); return selected; } | 19,714 |
protected Class findClass(String name) throws ClassNotFoundException { for (int i = 0; i < loaders.length; i++) { try { return findClass(name); } catch (ClassNotFoundException e) { // try another. } } return super.findClass(name)... | protected Class findClass(String name) throws ClassNotFoundException { for (int i = 0; i < loaders.length; i++) { try { return loaders[i].loadClass(name); } catch (ClassNotFoundException e) { // try another. } } return super.find... | 19,715 |
protected URL findResource(String name) { for (int i = 0; i < loaders.length; i++) { URL resource = findResource(name); if (resource != null) return resource; } return super.findResource(name); } | protected URL findResource(String name) { for (int i = 0; i < loaders.length; i++) { URL resource = loaders[i].getResource(name); if (resource != null) return resource; } return super.findResource(name); } | 19,716 |
protected Enumeration findResources(String name) throws IOException { for (int i = 0; i < loaders.length; i++) { Enumeration resource = findResources(name); if (resource != null) return resource; } return super.findResources(name); } | protected Enumeration findResources(String name) throws IOException { for (int i = 0; i < loaders.length; i++) { Enumeration resource = loaders[i].getResources(name); if (resource != null) return resource; } return super.findResources(name); } | 19,717 |
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JProgressBar) { progressBar = (JProgressBar) c; animationTimer = new Timer(); animationTimer.setRepeats(true); installDefaults(); installListeners(); } } | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JProgressBar) { progressBar = (JProgressBar) c; animationTimer = new Timer(200, null); animationTimer.setRepeats(true); installDefaults(); installListeners(); } } | 19,718 |
public abstract void addItem (MenuItem item); | void addItem (MenuItem item); | 19,719 |
public abstract void delItem (int index); | void delItem (int index); | 19,720 |
public abstract void invoke(ServerRequest request); | public void invoke(ServerRequest request) { Request r = _request(request.operation()); NVList args = new gnuNVList(); request.arguments(args); NamedValue v; int i = 0; try { for (i = 0; i < args.count(); i++) { v = args.item(i); Any n; OutputStream out; switch (v.flags()) { case ARG_IN.value: out = v.value().cre... | 19,721 |
public TypeCode type() { if (typecode != null) return typecode; else if (xKind >= 0) { typecode = new primitiveTypeCode(TCKind.from_int(xKind)); return typecode; } else return has != null ? has._type() : nullType; } | public TypeCode type() { if (typecode != null) return typecode; else if (xKind >= 0) { typecode = new PrimitiveTypeCode(TCKind.from_int(xKind)); return typecode; } else return has != null ? has._type() : nullType; } | 19,722 |
private final void applyPatternWithSymbols (String pattern, DecimalFormatSymbols syms) { // Initialize to the state the parser expects. negativePrefix = ""; negativeSuffix = ""; positivePrefix = ""; positiveSuffix = ""; decimalSeparatorAlwaysShown = false; groupingSize = 0; minExponentDigits = 0; ... | private final void applyPatternWithSymbols (String pattern, DecimalFormatSymbols syms) { // Initialize to the state the parser expects. negativePrefix = ""; negativeSuffix = ""; positivePrefix = ""; positiveSuffix = ""; decimalSeparatorAlwaysShown = false; groupingSize = 0; minExponentDigits = 0; ... | 19,723 |
private final String computePattern (DecimalFormatSymbols syms) { StringBuffer mainPattern = new StringBuffer (); // We have to at least emit a zero for the minimum number of // digits. Past that we need hash marks up to the grouping // separator (and one beyond). int total_digits = Math.max(minimumInteger... | private String computePattern(DecimalFormatSymbols syms) { StringBuffer mainPattern = new StringBuffer (); // We have to at least emit a zero for the minimum number of // digits. Past that we need hash marks up to the grouping // separator (and one beyond). int total_digits = Math.max(minimumIntegerDigits,... | 19,724 |
private final boolean equals (String s1, String s2) { if (s1 == null || s2 == null) return s1 == s2; return s1.equals(s2); } | private boolean equals(String s1, String s2) { if (s1 == null || s2 == null) return s1 == s2; return s1.equals(s2); } | 19,725 |
private final String patternChars (DecimalFormatSymbols syms) { StringBuffer buf = new StringBuffer (); buf.append(syms.getDecimalSeparator()); buf.append(syms.getDigit()); buf.append(syms.getExponential()); buf.append(syms.getGroupingSeparator()); // Adding this one causes pattern application to fail. // O... | private String patternChars (DecimalFormatSymbols syms) { StringBuffer buf = new StringBuffer (); buf.append(syms.getDecimalSeparator()); buf.append(syms.getDigit()); buf.append(syms.getExponential()); buf.append(syms.getGroupingSeparator()); // Adding this one causes pattern application to fail. // Of cour... | 19,726 |
private final void quoteFix (StringBuffer buf, String text, String patChars) { int len = text.length(); for (int index = 0; index < len; ++index) { char c = text.charAt(index); if (patChars.indexOf(c) != -1) { buf.append('\''); buf.append(c); buf.append('\''); } else buf.append(c); } } | private void quoteFix(StringBuffer buf, String text, String patChars) { int len = text.length(); for (int index = 0; index < len; ++index) { char c = text.charAt(index); if (patChars.indexOf(c) != -1) { buf.append('\''); buf.append(c); buf.append('\''); } else buf.append(c); } } | 19,727 |
private final int scanFix (String pattern, int index, FormatBuffer buf, String patChars, DecimalFormatSymbols syms, boolean is_suffix) { int len = pattern.length(); boolean quoteStarted = false; buf.clear(); boolean multiplierSet = false; while (index < len) { char c = pattern.cha... | private int scanFix (String pattern, int index, FormatBuffer buf, String patChars, DecimalFormatSymbols syms, boolean is_suffix) { int len = pattern.length(); boolean quoteStarted = false; buf.clear(); boolean multiplierSet = false; while (index < len) { char c = pattern.charAt(in... | 19,728 |
private final int scanFormat (String pattern, int index, String patChars, DecimalFormatSymbols syms, boolean is_positive) { int max = pattern.length(); int countSinceGroup = 0; int zeroCount = 0; boolean saw_group = false; // // Scan integer part. // while (index < max) { char c = pattern.char... | private final int scanFormat (String pattern, int index, String patChars, DecimalFormatSymbols syms, boolean is_positive) { int max = pattern.length(); int countSinceGroup = 0; int zeroCount = 0; boolean saw_group = false; // // Scan integer part. // while (index < max) { char c = pattern.char... | 19,729 |
public BeanInfo[] getServicesBeanInfo(); | BeanInfo[] getServicesBeanInfo(); | 19,730 |
public GlyphVector createGlyphVector (FontRenderContext ctx, char[] chars){ return peer.createGlyphVector (this, ctx, new StringCharacterIterator (new String (chars)));} | public GlyphVector createGlyphVector (FontRenderContext ctx, String str){ return peer.createGlyphVector (this, ctx, new StringCharacterIterator (new String (chars)));} | 19,733 |
public GlyphVector createGlyphVector (FontRenderContext ctx, char[] chars){ return peer.createGlyphVector (this, ctx, new StringCharacterIterator (new String (chars)));} | public GlyphVector createGlyphVector (FontRenderContext ctx, char[] chars){ return peer.createGlyphVector (this, ctx, new StringCharacterIterator (new String (chars)));} | 19,734 |
public void updateUI() { setUI((ComboBoxUI) UIManager.getUI(this)); invalidate(); } | public void updateUI() { setUI((ComboBoxUI) UIManager.getUI(this)); } | 19,735 |
public DMA() throws DMAException { final ResourceManager rm; try { rm = (ResourceManager)InitialNaming.lookup(ResourceManager.NAME); } catch (NameNotFoundException ex) { throw new DMAException("Cannot find ResourceManager", ex); } IOResource pageIO = null; IOResource dma1IO = null; IOResource dma2IO = null;... | public DMA() throws DMAException { final ResourceManager rm; try { rm = (ResourceManager)InitialNaming.lookup(ResourceManager.NAME); } catch (NameNotFoundException ex) { throw new DMAException("Cannot find ResourceManager", ex); } IOResource pageIO = null; IOResource dma1IO = null; IOResource dma2IO = null;... | 19,736 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | 19,738 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | 19,739 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | 19,740 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | 19,741 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | 19,742 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | 19,743 |
final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); //os.log("LongItem.push "+Integer.toString(getKind())); switch (getKind()) { case Kind.REGISTER: os.writePUSH(msb); os.writePUSH(lsb); break; case Kind.LOCAL: ... | 19,744 |
final void release(EmitterContext ec) { final X86RegisterPool pool = ec.getPool(); switch (getKind()) { case Kind.REGISTER: pool.release(reg); assertCondition(pool.isFree(reg), "reg is free"); break; case Kind.LOCAL: // nothing to do ... | final void release(EmitterContext ec) { final X86RegisterPool pool = ec.getPool(); switch (getKind()) { case Kind.REGISTER: pool.release(reg); assertCondition(pool.isFree(reg), "reg is free"); break; case Kind.LOCAL: // nothing to do ... | 19,745 |
final void release(EmitterContext ec) { final X86RegisterPool pool = ec.getPool(); switch (getKind()) { case Kind.REGISTER: pool.release(reg); assertCondition(pool.isFree(reg), "reg is free"); break; case Kind.LOCAL: // nothing to do ... | final void release(EmitterContext ec) { final X86RegisterPool pool = ec.getPool(); switch (getKind()) { case Kind.REGISTER: pool.release(reg); assertCondition(pool.isFree(reg), "reg is free"); break; case Kind.LOCAL: // nothing to do ... | 19,746 |
public boolean containsCertificate(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertificateEntry) { return true; } } return false;... | public boolean containsCertificate(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertificateEntry) { return true; } } return false;... | 19,747 |
public boolean containsCertificate(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertificateEntry) { return true; } } return false;... | public boolean containsCertificate(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertificateEntry) { return true; } } return false;... | 19,748 |
public boolean containsCertificate(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertificateEntry) { return true; } } return false;... | public boolean containsCertificate(String alias) { if (!containsAlias(alias)) { log.exiting(this.getClass().getName(), "containsCertificate", Boolean.valueOf(result)); return result; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceo... | 19,749 |
public Certificate getCertificate(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertificateEntry) { return ((CertificateE... | public Certificate getCertificate(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertificateEntry) { return ((CertificateE... | 19,750 |
public Certificate getCertificate(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertificateEntry) { return ((CertificateE... | public Certificate getCertificate(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertificateEntry) { result = ((Certificat... | 19,751 |
public Certificate getCertificate(String alias) { if (!containsAlias(alias)) { return null; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e instanceof CertificateEntry) { return ((CertificateE... | public Certificate getCertificate(String alias) { if (!containsAlias(alias)) { log.exiting(this.getClass().getName(), "getCertificate", result); return result; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { Entry e = (Entry) it.next(); if (e inst... | 19,752 |
protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( ... | protected void load(InputStream in, char[] password) throws IOException if (in.read() != USAGE) throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) throw new MalformedKeyringException( ... | 19,753 |
protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( ... | protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( ... | 19,754 |
protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( ... | protected void load(InputStream in, char[] password) throws IOException { if (in.read() != USAGE) { throw new MalformedKeyringException("incompatible keyring usage"); } if (in.read() != PasswordAuthenticatedEntry.TYPE) { throw new MalformedKeyringException( ... | 19,755 |
public void putCertificate(String alias, Certificate cert) { if (containsCertificate(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertificateEntry(cert, new Date(), p)); } | public void putCertificate(String alias, Certificate cert) { log.entering(this.getClass().getName(), "putCertificate", new Object[] { alias, cert }); if (! containsCertificate(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertificateEntry(... | 19,756 |
public void putCertificate(String alias, Certificate cert) { if (containsCertificate(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertificateEntry(cert, new Date(), p)); } | public void putCertificate(String alias, Certificate cert) { if (containsCertificate(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertificateEntry(cert, new Date(), p)); } | 19,757 |
public static void setObject(VmField field, Object o, Object value) { if (field.isStatic()) { final VmStaticField sf = (VmStaticField)field; initialize(sf); Unsafe.setObject(getStaticFieldAddress(sf), value); SoftByteCodes.putstaticWriteBarrier(sf.getStaticsIndex(), value); } else { final VmInstanceField i... | public static void setObject(VmField field, Object o, Object value) { if (field.isStatic()) { final VmStaticField sf = (VmStaticField)field; initialize(sf); Unsafe.setObject(getStaticFieldAddress(sf), value); SoftByteCodes.putstaticWriteBarrier(sf.getStaticsIndex(), value); } else { final VmInstanceField i... | 19,760 |
public byte nextByte() throws IllegalStateException, LimitReachedException { if (!initialised) { throw new IllegalStateException(); } return nextByteInternal(); } | public byte nextByte() throws IllegalStateException, LimitReachedException { if (!initialised) { throw new IllegalStateException(); } return nextByteInternal(); } | 19,763 |
public byte nextByte() throws IllegalStateException, LimitReachedException { if (!initialised) { throw new IllegalStateException(); } return nextByteInternal(); } | public byte nextByte() throws IllegalStateException, LimitReachedException { if (!initialised) { throw new IllegalStateException(); return nextByteInternal(); | 19,764 |
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if ((flags & ... | 19,766 |
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if ((flags & ... | 19,767 |
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | 19,768 |
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | 19,769 |
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | 19,770 |
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED | COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED | COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else if... | 19,771 |
public void addImage(Image image, int id) { MediaEntry e = new MediaEntry(); e.id = id; e.image = image; e.next = head; head = e; // Start tracking image status. int flags = target.checkImage(image, e); e.imageUpdate(image, flags, -1, -1, -1, -1); } | public void addImage(Image image, int id) { MediaEntry e = new MediaEntry(); e.id = id; e.image = image; e.next = head; head = e; // Start tracking image status. int flags = target.checkImage(image, e); e.imageUpdate(image, flags, -1, -1, -1, -1); } | 19,772 |
public int statusAll(boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (load && e.status == 0) { target.prepareImage(e.image, e); e.status = LOADING; } result |= e.status; e = e.next; } return result; } | public int statusAll(boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPLETE; else e.status = LOADING; } result |= e.status; e = e.next; } ... | 19,774 |
public int statusID(int id, boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (e.id == id) { if (load && e.status == 0) { target.prepareImage(e.image, e); e.status = LOADING; } result |= e.status; } e = e.next; } return re... | public int statusID(int id, boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (e.id == id) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPLETE; else e.status = LOADING; } ... | 19,775 |
private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (NoSuchMethodException E) { } if (getMethodNa... | private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (NoSuchMethodException E) { } if (getMethodNa... | 19,776 |
private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (NoSuchMethodException E) { } if (getMethodNa... | private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (NoSuchMethodException E) { } if (getMethodNa... | 19,777 |
private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (NoSuchMethodException E) { } if (getMethodNa... | private void findMethods(Class beanClass, String getMethodName1, String getMethodName2, String setMethodName) throws IntrospectionException { try { if (getMethodName1 != null) { try { getMethod = beanClass.getMethod(getMethodName1, new Class[0]); } catch (NoSuchMethodException E) { } if (getMethodNa... | 19,778 |
public void startDevice() throws DriverException { try { final Device dev = getDevice(); final ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); speakIO = rm.claimIOResource(dev, SPEAKER_PORT, 1); pitIO = rm.claimIOResource(dev, CHANNEL2_PORT, 2); getDevice().registerAPI(Sp... | public void startDevice() throws DriverException { try { final Device dev = getDevice(); final ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); speakIO = rm.claimIOResource(dev, SPEAKER_PORT, 1); pitIO = rm.claimIOResource(dev, CHANNEL2_PORT, 2); getDevice().registerAPI(Sp... | 19,780 |
public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); value.profile_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.profile_data.length; i0++) value.profile_data [ i0 ] = input.read_octet(); return value; ... | public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); if (input instanceof cdrBufInput) { value.profile_data = ((cdrBufInput) input).read_sequence(); } else { value.profile_data = new byte[input.read_long()]; for (int i0 = 0; i0 <... | 19,781 |
public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); value.profile_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.profile_data.length; i0++) value.profile_data [ i0 ] = input.read_octet(); return value; ... | public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); value.profile_data = new byte[ input.read_long() ]; for (int i0 = 0; i0 < value.profile_data.length; i0++) value.profile_data[i0] = input.read_octet(); } return value; ... | 19,782 |
public static void write(OutputStream output, TaggedProfile value) { output.write_long(value.tag); output.write_long(value.profile_data.length); for (int i0 = 0; i0 < value.profile_data.length; i0++) output.write_octet(value.profile_data [ i0 ]); } | public static void write(OutputStream output, TaggedProfile value) { output.write_long(value.tag); output.write_long(value.profile_data.length); for (int i0 = 0; i0 < value.profile_data.length; i0++) output.write_octet(value.profile_data[i0]); } } | 19,783 |
public Object getPreviousValue() { Calendar prevCal = Calendar.getInstance(); prevCal.setTime(date.getTime()); prevCal.roll(calendarField, false); Date prevDate = prevCal.getTime(); if (end != null) if (end.compareTo(prevDate) > 0) return null; return prevDate; } | public Object getPreviousValue() { Calendar prevCal = Calendar.getInstance(); prevCal.setTime(date.getTime()); prevCal.roll(calendarField, false); Date prevDate = prevCal.getTime(); if (end != null) if (end.compareTo(prevDate) > 0) return null; return prevDate; } | 19,784 |
private void listPlugin(PrintStream out, PluginManager mgr, String id) throws PluginException { final PluginDescriptor descr = mgr.getRegistry() .getPluginDescriptor(id); out.print(descr.getId()); out.print("; state "); if (descr.getPlugin().isActive()) { ... | private void listPlugin(PrintStream out, PluginManager mgr, String id) throws PluginException { final PluginDescriptor descr = mgr.getRegistry() .getPluginDescriptor(id); out.print(descr.getId()); out.print("; state "); if (descr.getPlugin().isActive()) { ... | 19,786 |
private void listPlugin(PrintStream out, PluginManager mgr, String id) throws PluginException { final PluginDescriptor descr = mgr.getRegistry() .getPluginDescriptor(id); out.print(descr.getId()); out.print("; state "); if (descr.getPlugin().isActive()) { ... | private void listPlugin(PrintStream out, PluginManager mgr, String id) throws PluginException { final PluginDescriptor descr = mgr.getRegistry() .getPluginDescriptor(id); out.print(descr.getId()); out.print("; state "); if (descr.getPlugin().isActive()) { ... | 19,787 |
public final Class getCategory() { return NumberOfInterveningJobs.class; } | public Class getCategory() { return NumberOfInterveningJobs.class; } | 19,788 |
public final String getName() { return "number-of-intervening-jobs"; } | public String getName() { return "number-of-intervening-jobs"; } | 19,789 |
protected final StringBuffer formatInternal (Object arguments[], StringBuffer appendBuf, FieldPosition fp, FormatCharacterIterator output_iterator) { appendBuf.append(leader); if (output_iterator != null) output_iterator.append(leader); for (int i = 0; i < elements.length; ++i) ... | private StringBuffer formatInternal (Object arguments[], StringBuffer appendBuf, FieldPosition fp, FormatCharacterIterator output_iterator) { appendBuf.append(leader); if (output_iterator != null) output_iterator.append(leader); for (int i = 0; i < elements.length; ++i) { Obj... | 19,790 |
public synchronized InputStream getInputStream(ZipEntry entry) throws ZipException, IOException { return super.getInputStream(entry); // XXX verify } | public synchronized InputStream getInputStream(ZipEntry entry) throws ZipException, IOException { if (!verified.containsKey(entry.getName()) && verify) { if (DEBUG) debug("reading and verifying " + entry); return new EntryInputStream(entry, super.getInputStream(entry)); } else { if (DEBUG) debug("reading already... | 19,793 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong Sub... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p = null; BigInteger g = null; BigInteger q = null; BigInteger y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read();... | 19,794 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong Sub... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong Sub... | 19,795 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong Sub... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); DerUtil.checkIsConstructed(derSPKI, "Wrong Sub... | 19,796 |
public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof DSSPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPublicKey dssKey = (DSSPublicKey) key; BigInteger p = dssKey.getParams().getP(); BigInteger q = ds... | public byte[] encodePublicKey(PublicKey key) { if (! (key instanceof DSSPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPublicKey dssKey = (DSSPublicKey) key; BigInteger p = dssKey.getParams().getP(); BigInteger q = ds... | 19,797 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.