bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Date engineGetCreationDate(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } List entries = keyring.get(alias); if (entries.size() == 0) { return null; } for (Iterator it = en... | public Date engineGetCreationDate(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } List entries = keyring.get(alias); if (entries.size() == 0) { return null; } for (Iterator it = en... | 18,644 |
public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt... | public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt... | 18,645 |
public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt... | public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt... | 18,646 |
public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt... | public Key engineGetKey(String alias, char[] password) throws UnrecoverableKeyException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalSt... | 18,647 |
public boolean engineIsCertificateEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPublicKeyring)) { return false; } return ((IPublicKeyring) keyring).... | public boolean engineIsCertificateEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPublicKeyring)) { return false; } return ((IPublicKeyring) keyring).... | 18,648 |
public boolean engineIsKeyEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPrivateKeyring)) { return false; } return ((IPrivateKeyring) keyring).contai... | public boolean engineIsKeyEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPrivateKeyring)) { return false; } return ((IPrivateKeyring) keyring).contai... | 18,649 |
public boolean engineIsKeyEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPrivateKeyring)) { return false; } return ((IPrivateKeyring) keyring).contai... | public boolean engineIsKeyEntry(String alias) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return false; } if (!(keyring instanceof IPrivateKeyring)) { return false; } return ((IPrivateKeyring) keyring).contai... | 18,650 |
public void engineLoad(InputStream in, char[] password) throws IOException { if (in != null) { if (!in.markSupported()) { in = new BufferedInputStream(in); } in.mark(5); for (int i = 0; i < 4; i++) if (in.read() != Registry.GKR_MAGIC[i]) t... | public void engineLoad(InputStream in, char[] password) throws IOException { log.entering(this.getClass().getName(), "engineLoad", String.valueOf(password)); if (in != null) { log.entering(this.getClass().getName(), "engineLoad", String.valueOf(password)); if (!in.markSupported()) { log.enter... | 18,651 |
public void engineLoad(InputStream in, char[] password) throws IOException { if (in != null) { if (!in.markSupported()) { in = new BufferedInputStream(in); } in.mark(5); for (int i = 0; i < 4; i++) if (in.read() != Registry.GKR_MAGIC[i]) t... | public void engineLoad(InputStream in, char[] password) throws IOException { if (in != null) { if (!in.markSupported()) { in = new BufferedInputStream(in); } in.mark(5); for (int i = 0; i < 4; i++) if (in.read() != Registry.GKR_MAGIC[i]) t... | 18,652 |
public void engineSetCertificateEntry(String alias, Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPublicKeyring("HMAC-SHA-1", 20); } if (!(keyring instanceof IPublicKeyring)) { throw ... | public void engineSetCertificateEntry(String alias, Certificate cert) { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPublicKeyring("HMAC-SHA-1", 20); } if (!(keyring instanceof IPublicKeyring)) { throw ... | 18,654 |
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | 18,655 |
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | 18,656 |
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | 18,657 |
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPrivateKeyring("HMAC-SHA-1",... | 18,658 |
public int engineSize() { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return 0; } return keyring.size(); } | public int engineSize() { if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return 0; } return keyring.size(); } | 18,659 |
public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke... | public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke... | 18,660 |
public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke... | public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke... | 18,661 |
public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); ke... | public void engineStore(OutputStream out, char[] password) throws IOException { if (!loaded || keyring == null) { throw new IllegalStateException ("not loaded"); } HashMap attr = new HashMap(); attr.put(IKeyring.KEYRING_DATA_OUT, out); attr.put(IKeyring.KEYRING_PASSWORD, password); pr... | 18,662 |
public BufferedImage filter(BufferedImage src, BufferedImage dst) { // TODO: The plan is to create a scanline buffer for intermediate buffers. // For now we just suck it up and create intermediate buffers. if (dst == null && spaces.length == 0) throw new IllegalArgumentException(); // Make sure ... | public final BufferedImage filter(BufferedImage src, BufferedImage dst) { // TODO: The plan is to create a scanline buffer for intermediate buffers. // For now we just suck it up and create intermediate buffers. if (dst == null && spaces.length == 0) throw new IllegalArgumentException(); // Make... | 18,663 |
public Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); } | public final Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); } | 18,664 |
public ICC_Profile[] getICC_Profiles() { return profiles; } | public final ICC_Profile[] getICC_Profiles() { return profiles; } | 18,665 |
public Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) return (Point2D)src.clone(); dst.setLocation(src); return dst; } | public final Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) return (Point2D)src.clone(); dst.setLocation(src); return dst; } | 18,666 |
public RenderingHints getRenderingHints() { return hints; } | public final RenderingHints getRenderingHints() { return hints; } | 18,667 |
public float[] getPixel(int x, int y, float[] fArray) { return sampleModel.getPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); } | public int[] getPixel(int x, int y, int[] iArray) { return sampleModel.getPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); } | 18,668 |
public float[] getPixel(int x, int y, float[] fArray) { return sampleModel.getPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); } | public float[] getPixel(int x, int y, float[] fArray) { return sampleModel.getPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, iArray, dataBuffer); } | 18,669 |
public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, fArray, dataBuffer); } | public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, fArray, dataBuffer); } | 18,670 |
public RenderingHints getRenderingHints(); | RenderingHints getRenderingHints(); | 18,671 |
public final void emitObject(Object obj) throws BuildException, ClassNotFoundException { if (obj == null) { return; } final Class< ? > cls = obj.getClass(); try { testForValidEmit(obj, cls.getName()); } catch (JNodeClassNotFoundException ex) { ... | public final void emitObject(Object obj) throws BuildException, ClassNotFoundException { if (obj == null) { return; } final Class< ? > cls = obj.getClass(); try { testForValidEmit(obj, cls.getName()); } catch (JNodeClassNotFoundException ex) { ... | 18,672 |
public DEREncodingException (String msg) { super (msg); } | public DEREncodingException() { super (msg); } | 18,673 |
public DEREncodingException (String msg) { super (msg); } | public DEREncodingException (String msg) { super (); } | 18,674 |
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ... | public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ... | 18,675 |
public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ... | public static TimeZone getTimeZone(String ID) { // First check timezones hash TimeZone tz = (TimeZone)timezones.get(ID); if (tz != null) { if (tz.getID().equals(ID)) return tz; // We always return a timezone with the requested ID. // This is the same behaviour as with JDK1.2. tz = (TimeZone)tz.clone(); ... | 18,676 |
public BasicAttribute (String id, Object value) { this (id, value, false); } | private BasicAttribute () { this (id, value, false); } | 18,677 |
public BasicAttribute (String id, Object value) { this (id, value, false); } | public BasicAttribute (String id, Object value) { } | 18,678 |
public void writeBit(int bit) throws IOException { // FIXME: Implement me. throw new Error("not implemented"); } | public void writeBit(int bit) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); } | 18,679 |
public void writeUTF(String data) throws IOException { throw new Error("not implemented"); } | public void writeUTF(String data) throws IOException, NotImplementedException { throw new Error("not implemented"); } | 18,680 |
public static <S extends Enum<S>> S valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgu... | public static <S extends Enum<S>> S valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { Field f = etype.getDeclaredField(s); if (! f.isEnumConstant()) throw new IllegalArgumentException(s); return (S) f.get(null); } ... | 18,683 |
public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11); cal.set(Calendar.DATE, dosDate & 0x1f); cal.set(Calendar.MONTH, (... | public static long decodeDateTime(int dosDate, int dosTime) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.MILLISECOND, 0); cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2); cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f); cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11); cal.set(Calendar.DATE, dosDate &... | 18,684 |
public void scrollRectToVisible(Rectangle contentRect) { Component view = getView(); if (view == null) return; Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); if (isShowing()) getView().validate(); // If... | public void scrollRectToVisible(Rectangle contentRect) { Component view = getView(); if (view == null) return; Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); if (isShowing()) getView().validate(); // If... | 18,685 |
public void scrollRectToVisible(Rectangle contentRect) { Component view = getView(); if (view == null) return; Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); if (isShowing()) getView().validate(); // If... | public void scrollRectToVisible(Rectangle contentRect) { Component view = getView(); if (view == null) return; Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); if (isShowing()) getView().validate(); // If... | 18,686 |
void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); setDestinationAlias(_destAlias); log.finer("-keyclone handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias... | void setup() throws Exception { setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); setDestinationAlias(_destAlias); log.finer("-keyclone handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias... | 18,688 |
public synchronized void add(OptionGroup group) { options.addAll(group.options); // This ensures that the final group always appears at the end // of the options. if (optionGroups.isEmpty()) optionGroups.add(group); else optionGroups.add(optionGroups.size() - 1, group); } | public synchronized void add(Option opt) { options.addAll(group.options); // This ensures that the final group always appears at the end // of the options. if (optionGroups.isEmpty()) optionGroups.add(group); else optionGroups.add(optionGroups.size() - 1, group); } | 18,690 |
public synchronized void add(OptionGroup group) { options.addAll(group.options); // This ensures that the final group always appears at the end // of the options. if (optionGroups.isEmpty()) optionGroups.add(group); else optionGroups.add(optionGroups.size() - 1, group); } | public synchronized void add(OptionGroup group) { options.addAll(group.options); // This ensures that the final group always appears at the end // of the options. if (optionGroups.isEmpty()) optionGroups.add(group); else optionGroups.add(optionGroups.size() - 1, group); } | 18,691 |
protected void setKeyStoreParams(String className, String type, String password, String url) throws IOException, UnsupportedCallbackException, KeyStoreException, NoSuchAlgorithmException, CertificateException { setProviderClassNameParam(className); setKeystoreTypePar... | protected void setKeyStoreParams(String className, String type, String password, String url) throws IOException, UnsupportedCallbackException, KeyStoreException, NoSuchAlgorithmException, CertificateException { setProviderClassNameParam(className); setKeystoreTypePar... | 18,693 |
protected void saveKeyStore() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { saveKeyStore(storePasswordChars); } | protected void saveKeyStore() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { saveKeyStore(storePasswordChars); } | 18,694 |
protected void saveKeyStore() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { saveKeyStore(storePasswordChars); } | protected void saveKeyStore() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { if (Configuration.DEBUG) log.entering(this.getClass().getName(), "saveKeyStore"); URLConnection con = storeURL.openConnection(); con.setDoOutput(true); con.setUseCaches(false); OutputStream o... | 18,695 |
public void dumpData(PrintStream out) { out.println("Intialization Block - 32 bit mode"); for (int i = 0; i <= INIT_BLOCK_SIZE - 1; i += 4) { out.println( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtil... | public void dumpData(PrintStream out) { out.println("Intialization Block - 32 bit mode"); for (int i = 0; i <= INIT_BLOCK_SIZE - 1; i += 4) { out.println( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtil... | 18,696 |
public void dumpData(PrintStream out) { out.println("Intialization Block - 32 bit mode"); for (int i = 0; i <= INIT_BLOCK_SIZE - 1; i += 4) { out.println( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtil... | public void dumpData(PrintStream out) { out.debug("Intialization Block - 32 bit mode"); for (int i = 0; i <= INIT_BLOCK_SIZE - 1; i += 4) { out.debug( "0x" + NumberUtils.hex( Address.as32bit(mem.getAddress()) + offset + i) + " : 0x" + NumberUtils.hex((byte) i) + " : 0x" + NumberUtils.he... | 18,697 |
public void dumpData(PrintStream out) { out.println("Receive Ring Descriptors - 32 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); rxDescriptors[i].dumpData(out); } } | public void dumpData(PrintStream out) { out.println("Receive Ring Descriptors - 32 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); rxDescriptors[i].dumpData(out); } } | 18,698 |
public void dumpData(PrintStream out) { out.println("Receive Ring Descriptors - 32 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); rxDescriptors[i].dumpData(out); } } | public void dumpData(PrintStream out) { out.println("Receive Ring Descriptors - 32 bit mode"); for (int i = 0; i < length; i++) { out.debug("Descriptor " + i); rxDescriptors[i].dumpData(out); } } | 18,699 |
public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); txDescriptors[i].dumpData(out); } } | public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); txDescriptors[i].dumpData(out); } } | 18,700 |
public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); txDescriptors[i].dumpData(out); } } | public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.debug("Descriptor " + i); txDescriptors[i].dumpData(out); } } | 18,701 |
public boolean equals(Object o) { if (this == o) return true; BitString that = (BitString) o; // True for cloned instances. if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits) return true; if (this.ignoredBits == that.ignoredBits) return Arrays.equals(this.bytes, that.... | public boolean equals(Object o) { if (this == o) return true; BitString that = (BitString) o; // True for cloned instances. if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits) return true; if (this.ignoredBits == that.ignoredBits) return Arrays.equals(this.bytes, that.... | 18,702 |
public boolean add(E value) { if (offer(value)) return true; throw new IllegalStateException(); } | public boolean add(E value) { if (offer(value)) return true; throw new IllegalStateException(); } | 18,705 |
public boolean addAll(Collection<? extends E> c) { if (c == this) throw new IllegalArgumentException(); boolean result = false; for (E val : c) { if (add(val)) result = true; } return result; } | public boolean addAll(Collection<? extends E> c) { if (c == this) throw new IllegalArgumentException(); boolean result = false; for (E val : c) { if (add(val)) result = true; } return result; } | 18,706 |
public E element() { E result = peek(); if (result == null) throw new NoSuchElementException(); return result; } | public E element() { E result = peek(); if (result == null) throw new NoSuchElementException(); return result; } | 18,707 |
public E remove() { E result = poll(); if (result == null) throw new NoSuchElementException(); return result; } | public E remove() { E result = poll(); if (result == null) throw new NoSuchElementException(); return result; } | 18,708 |
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | CompletionInfo complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | 18,709 |
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } completion = new CompletionInfo(); String result = null; try { ... | 18,710 |
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | 18,711 |
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | 18,712 |
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | 18,713 |
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... | 18,714 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,715 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,716 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,717 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,718 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,719 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,720 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,721 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,722 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,723 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,724 |
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... | 18,725 |
public void list(String[] items) { System.out.println(); for (int i = 0; i < items.length; i++) System.out.println(items[ i]); dirty = true; } | public void list(String[] items) { System.out.println(); for (int i = 0; i < items.length; i++) System.out.println(items[ i]); dirty = true; } | 18,726 |
private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... | private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... | 18,727 |
private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... | private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine.se... | 18,728 |
private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... | private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... | 18,729 |
private void refreshCurrentLine() { try { int y = console.getCursorY(); console.clearLine(y); /* * Uncomment this to display cursor position * console.clearLine(y-25); console.setCursor(0, y-1); * err.print("Cursor pos : x = "+currentPrompt... | private void refreshCurrentLine() { try { int y = console.getCursorY(); console.clearLine(y); /* * Uncomment this to display cursor position * console.clearLine(y-25); console.setCursor(0, y-1); * err.print("Cursor pos : x = "+currentPrompt... | 18,730 |
public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ... | public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ... | 18,731 |
public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ... | public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ... | 18,732 |
public static int getAlignment(AttributeSet a) { if (a.isDefined(Alignment)) return ((Integer)a.getAttribute(Alignment)).intValue(); else return ALIGN_LEFT; } | public static int getAlignment(AttributeSet a) { if (a.isDefined(Alignment)) return ((Integer)a.getAttribute(Alignment)).intValue(); else return ALIGN_LEFT; } | 18,733 |
public static Color getBackground(AttributeSet a) { if (a.isDefined(Background)) return (Color) a.getAttribute(Background); else return Color.WHITE; } | public static Color getBackground(AttributeSet a) { if (a.isDefined(Background)) return (Color) a.getAttribute(Background); else return Color.WHITE; } | 18,734 |
public static Color getBackground(AttributeSet a) { if (a.isDefined(Background)) return (Color) a.getAttribute(Background); else return Color.WHITE; } | public static Color getBackground(AttributeSet a) { if (a.isDefined(Background)) return (Color) a.getAttribute(Background); else return Color.BLACK; } | 18,735 |
public static int getBidiLevel(AttributeSet a) { if (a.isDefined(BidiLevel)) return ((Integer)a.getAttribute(BidiLevel)).intValue(); else return 0; } | public static int getBidiLevel(AttributeSet a) { if (a.isDefined(BidiLevel)) return ((Integer)a.getAttribute(BidiLevel)).intValue(); else return 0; } | 18,736 |
public static Component getComponent(AttributeSet a) { if (a.isDefined(ComponentAttribute)) return (Component) a.getAttribute(ComponentAttribute); else return (Component) null; } | public static Component getComponent(AttributeSet a) { if (a.isDefined(ComponentAttribute)) return (Component) a.getAttribute(ComponentAttribute); else return (Component) null; } | 18,737 |
public static Component getComponent(AttributeSet a) { if (a.isDefined(ComponentAttribute)) return (Component) a.getAttribute(ComponentAttribute); else return (Component) null; } | public static Component getComponent(AttributeSet a) { if (a.isDefined(ComponentAttribute)) return (Component) a.getAttribute(ComponentAttribute); else return null; } | 18,738 |
public static float getFirstLineIndent(AttributeSet a) { if (a.isDefined(FirstLineIndent)) return ((Float)a.getAttribute(FirstLineIndent)).floatValue(); else return 0.f; } | public static float getFirstLineIndent(AttributeSet a) { if (a.isDefined(FirstLineIndent)) return ((Float)a.getAttribute(FirstLineIndent)).floatValue(); else return 0.f; } | 18,739 |
public static float getFirstLineIndent(AttributeSet a) { if (a.isDefined(FirstLineIndent)) return ((Float)a.getAttribute(FirstLineIndent)).floatValue(); else return 0.f; } | public static float getFirstLineIndent(AttributeSet a) { if (a.isDefined(FirstLineIndent)) return ((Float)a.getAttribute(FirstLineIndent)).floatValue(); else return 0.0f; } | 18,740 |
public static String getFontFamily(AttributeSet a) { if (a.isDefined(FontFamily)) return (String) a.getAttribute(FontFamily); else return "Monospaced"; } | public static String getFontFamily(AttributeSet a) { if (a.isDefined(FontFamily)) return (String) a.getAttribute(FontFamily); else return "Monospaced"; } | 18,741 |
public static int getFontSize(AttributeSet a) { if (a.isDefined(FontSize)) return ((Integer)a.getAttribute(FontSize)).intValue(); else return 12; } | public static int getFontSize(AttributeSet a) { if (a.isDefined(FontSize)) return ((Integer)a.getAttribute(FontSize)).intValue(); else return 12; } | 18,742 |
public static Color getForeground(AttributeSet a) { if (a.isDefined(Foreground)) return (Color) a.getAttribute(Foreground); else return Color.BLACK; } | public static Color getForeground(AttributeSet a) { if (a.isDefined(Foreground)) return (Color) a.getAttribute(Foreground); else return Color.BLACK; } | 18,743 |
public static Icon getIcon(AttributeSet a) { if (a.isDefined(IconAttribute)) return (Icon) a.getAttribute(IconAttribute); else return (Icon) null; } | public static Icon getIcon(AttributeSet a) { return (Icon) a.getAttribute(IconAttribute); else return (Icon) null; } | 18,744 |
public static Icon getIcon(AttributeSet a) { if (a.isDefined(IconAttribute)) return (Icon) a.getAttribute(IconAttribute); else return (Icon) null; } | public static Icon getIcon(AttributeSet a) { if (a.isDefined(IconAttribute)) return (Icon) a.getAttribute(IconAttribute); else return (Icon) null; } | 18,745 |
public static float getLeftIndent(AttributeSet a) { if (a.isDefined(LeftIndent)) return ((Float)a.getAttribute(LeftIndent)).floatValue(); else return 0.f; } | public static float getLeftIndent(AttributeSet a) { if (a.isDefined(LeftIndent)) return ((Float)a.getAttribute(LeftIndent)).floatValue(); else return 0.f; } | 18,746 |
public static float getLeftIndent(AttributeSet a) { if (a.isDefined(LeftIndent)) return ((Float)a.getAttribute(LeftIndent)).floatValue(); else return 0.f; } | public static float getLeftIndent(AttributeSet a) { if (a.isDefined(LeftIndent)) return ((Float)a.getAttribute(LeftIndent)).floatValue(); else return 0.0f; } | 18,747 |
public static float getLineSpacing(AttributeSet a) { if (a.isDefined(LineSpacing)) return ((Float)a.getAttribute(LineSpacing)).floatValue(); else return 0.f; } | public static float getLineSpacing(AttributeSet a) { if (a.isDefined(LineSpacing)) return ((Float)a.getAttribute(LineSpacing)).floatValue(); else return 0.f; } | 18,748 |
public static float getLineSpacing(AttributeSet a) { if (a.isDefined(LineSpacing)) return ((Float)a.getAttribute(LineSpacing)).floatValue(); else return 0.f; } | public static float getLineSpacing(AttributeSet a) { if (a.isDefined(LineSpacing)) return ((Float)a.getAttribute(LineSpacing)).floatValue(); else return 0.0f; } | 18,749 |
public static float getRightIndent(AttributeSet a) { if (a.isDefined(RightIndent)) return ((Float)a.getAttribute(RightIndent)).floatValue(); else return 0.f; } | public static float getRightIndent(AttributeSet a) { if (a.isDefined(RightIndent)) return ((Float)a.getAttribute(RightIndent)).floatValue(); else return 0.f; } | 18,750 |
public static float getRightIndent(AttributeSet a) { if (a.isDefined(RightIndent)) return ((Float)a.getAttribute(RightIndent)).floatValue(); else return 0.f; } | public static float getRightIndent(AttributeSet a) { if (a.isDefined(RightIndent)) return ((Float)a.getAttribute(RightIndent)).floatValue(); else return 0.0f; } | 18,751 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.