bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(string); } catch (IOException ex) { return false; } }
static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(getNormalizedPath(path)); } catch (IOException ex) { return false; } }
34,891
static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(string); } catch (IOException ex) { return false; } }
static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(string); } catch (IOException ex) { return false; } }
34,892
static boolean isFile(String path) { try { return VMIOUtils.getAPI().isFile(path); } catch (IOException ex) { return false; } }
static boolean isFile(String path) { try { return VMIOUtils.getAPI().isFile(path); } catch (IOException ex) { return false; } }
34,893
static boolean isFile(String path) { try { return VMIOUtils.getAPI().isFile(path); } catch (IOException ex) { return false; } }
static boolean isFile(String path) { try { return VMIOUtils.getAPI().isFile(getNormalizedPath(path)); } catch (IOException ex) { return false; } }
34,894
static boolean isFile(String path) { try { return VMIOUtils.getAPI().isFile(path); } catch (IOException ex) { return false; } }
static boolean isFile(String path) { try { return VMIOUtils.getAPI().isFile(path); } catch (IOException ex) { return false; } }
34,895
static boolean isHidden(String path) { // FIXME: this only works on UNIX return getName(path).startsWith("."); }
static boolean isHidden(String path) { // FIXME: this only works on UNIX return getName(path).startsWith("."); }
34,896
static long lastModified(String path) { try { return VMIOUtils.getAPI().getLastModified(path); } catch (IOException ex) { return 0; } }
static long lastModified(String path) { try { return VMIOUtils.getAPI().getLastModified(path); } catch (IOException ex) { return 0; } }
34,897
static long lastModified(String path) { try { return VMIOUtils.getAPI().getLastModified(path); } catch (IOException ex) { return 0; } }
static long lastModified(String path) { try { return VMIOUtils.getAPI().getLastModified(getNormalizedPath(path)); } catch (IOException ex) { return 0; } }
34,898
static long lastModified(String path) { try { return VMIOUtils.getAPI().getLastModified(path); } catch (IOException ex) { return 0; } }
static long lastModified(String path) { try { return VMIOUtils.getAPI().getLastModified(path); } catch (IOException ex) { return 0; } }
34,899
static long length(String path) { try { return VMIOUtils.getAPI().getLength(path); } catch (IOException ex) { return 0; } }
static long length(String path) { try { return VMIOUtils.getAPI().getLength(path); } catch (IOException ex) { return 0; } }
34,900
static long length(String path) { try { return VMIOUtils.getAPI().getLength(path); } catch (IOException ex) { return 0; } }
static long length(String path) { try { return VMIOUtils.getAPI().getLength(getNormalizedPath(path)); } catch (IOException ex) { return 0; } }
34,901
static long length(String path) { try { return VMIOUtils.getAPI().getLength(path); } catch (IOException ex) { return 0; } }
static long length(String path) { try { return VMIOUtils.getAPI().getLength(path); } catch (IOException ex) { return 0; } }
34,902
static String[] list(String path) { try { return VMIOUtils.getAPI().list(path); } catch (IOException ex) { return new String[0]; } }
static String[] list(String path) { try { return VMIOUtils.getAPI().list(path); } catch (IOException ex) { return new String[0]; } }
34,903
static File[] listRoots() {// ClassPath implementation // File[] roots = new File[1];// roots[0] = new File("/");// return roots; // JNode implementation try { return VMIOUtils.getAPI().getRoots(); } catch (IOException ex) { return new File[0]; } }
static File[] listRoots() {// ClassPath implementation // File[] roots = new File[1];// roots[0] = new File("/");// return roots; // JNode implementation try { return VMIOUtils.getAPI().getRoots(); } catch (IOException ex) { return new File[0]; } }
34,904
static boolean mkdir(String path) { try{ return VMIOUtils.getAPI().mkDir(path,VMOpenMode.WRITE); }catch(IOException io){ return false; } }
static boolean mkdir(String path) { try{ return VMIOUtils.getAPI().mkDir(path,VMOpenMode.WRITE); }catch(IOException io){ return false; } }
34,905
static boolean renameTo(String targetpath, String destpath) { //TODO: implement VMFile.renameTo return false; }
static boolean renameTo(String targetpath, String destpath) { //TODO: implement VMFile.renameTo return false; }
34,906
static boolean setLastModified(String path, long time) { try { VMIOUtils.getAPI().setLastModified(path, time); return true; } catch (IOException ex) { return false; } }
static boolean setLastModified(String path, long time) { try { VMIOUtils.getAPI().setLastModified(path, time); return true; } catch (IOException ex) { return false; } }
34,907
static boolean setLastModified(String path, long time) { try { VMIOUtils.getAPI().setLastModified(path, time); return true; } catch (IOException ex) { return false; } }
static boolean setLastModified(String path, long time) { try { VMIOUtils.getAPI().setLastModified(getNormalizedPath(path), time); return true; } catch (IOException ex) { return false; } }
34,908
static boolean setLastModified(String path, long time) { try { VMIOUtils.getAPI().setLastModified(path, time); return true; } catch (IOException ex) { return false; } }
static boolean setLastModified(String path, long time) { try { VMIOUtils.getAPI().setLastModified(path, time); return true; } catch (IOException ex) { return false; } }
34,909
static boolean setReadOnly(String path) { try { VMIOUtils.getAPI().setReadOnly(path); return true; } catch (IOException ex) { return false; } }
static boolean setReadOnly(String path) { try { VMIOUtils.getAPI().setReadOnly(path); return true; } catch (IOException ex) { return false; } }
34,910
static boolean setReadOnly(String path) { try { VMIOUtils.getAPI().setReadOnly(path); return true; } catch (IOException ex) { return false; } }
static boolean setReadOnly(String path) { try { VMIOUtils.getAPI().setReadOnly(getNormalizedPath(path)); return true; } catch (IOException ex) { return false; } }
34,911
static boolean setReadOnly(String path) { try { VMIOUtils.getAPI().setReadOnly(path); return true; } catch (IOException ex) { return false; } }
static boolean setReadOnly(String path) { try { VMIOUtils.getAPI().setReadOnly(path); return true; } catch (IOException ex) { return false; } }
34,912
public static String toCanonicalForm(String path) throws IOException { // FIXME: this only works on UNIX return PlatformHelper.toCanonicalForm(path); }
public static String toCanonicalForm(String path) throws IOException { // FIXME: this only works on UNIX return PlatformHelper.toCanonicalForm(path); }
34,913
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
publicPositioncreatePosition(finalintoffset)throwsBadLocationException{if(offset<0||offset>length())thrownewBadLocationException("Theoffsetwasoutoftheboundsofthis"+"buffer",offset);//WestoretheactualarrayindexintheGapContentPosition.Thereal//offsetisthencalculatedintheGapContentPosition.intmark=offset;if(offset>gapStar...
34,915
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); for (ListIterator i = positions.listIterat...
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); for (ListIterator i = positions.listIterat...
34,916
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protectedvoidshiftGap(intnewGapStart){if(newGapStart==gapStart)return;intnewGapEnd=newGapStart+gapEnd-gapStart;if(newGapStart<gapStart){//UpdatethepositionsbetweennewGapStartand(old)gapStart.Themarks//mustbeshiftedby(gapEnd-gapStart).adjustPositionsInRange(newGapStart,gapStart-newGapStart,gapEnd-gapStart);System.arrayc...
34,918
public void addNotify() { if (peer == null) peer = getToolkit().createLabel(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createLabel(this); super.addNotify(); }
34,919
public void addNotify() { if (peer == null) peer = getToolkit().createLabel(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createLabel(this); super.addNotify(); }
34,920
public int getAlignment() { return (alignment); }
public int getAlignment() { return (alignment); }
34,921
public String getText() { return (text); }
public String getText() { return (text); }
34,922
protected String paramString() { return ("text=" + getText() + ",alignment=" + getAlignment() + "," + super.paramString()); }
protected String paramString() { return ("text=" + getText() + ",alignment=" + getAlignment() + "," + super.paramString()); }
34,923
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
34,924
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
34,925
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
34,926
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
34,927
public StepFilter (ThreadId tid, int size, int depth) throws InvalidThreadException { if (tid == null | tid.getReference().get () == null) throw new InvalidThreadException (tid.getId ()); _tid = tid; _size = size; _depth = depth; }
public StepFilter (ThreadId tid, int size, int depth) throws InvalidThreadException { if (tid.getReference().get () == null) throw new InvalidThreadException (tid.getId ()); _tid = tid; _size = size; _depth = depth; }
34,929
static Configuration getConfig() { if (config == null) { String conf = (String) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return Security.getProperty ("login.configuration.provider"); } ...
static Configuration getConfig() { if (config == null) { String conf = (String) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return Security.getProperty ("login.configuration.provider"); } ...
34,930
static Configuration getConfig() { if (config == null) { String conf = (String) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return Security.getProperty ("login.configuration.provider"); } ...
static Configuration getConfig() { if (config == null) { String conf = (String) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return Security.getProperty ("login.configuration.provider"); } ...
34,931
CompletionInfo 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 { ...
CompletionInfo 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 { ...
34,932
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) { ...
34,933
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) { ...
34,934
private void refreshCurrentLine() { currentLine.refreshCurrentLine(console, currentPrompt, out); }
private void refreshCurrentLine() { currentLine.refreshCurrentLine(currentPrompt); }
34,935
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()) { ...
34,936
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
public CompletionInfo complete(String currentPrompt) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, posOn...
34,937
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
34,938
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
34,939
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
34,940
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
34,941
public void refreshCurrentLine(ScrollableShellConsole console, String currentPrompt, PrintStream out) { try { int x = consoleX; int width = console.getWidth(); int nbLines = ((x + maxLength) / width); if(((x + maxLength) % width) != 0) nbLines++; ...
public void refreshCurrentLine(ScrollableShellConsole console, String currentPrompt, PrintStream out) { try { int x = consoleX; int width = console.getWidth(); int nbLines = ((x + maxLength) / width); if(((x + maxLength) % width) != 0) nbLines++; ...
34,942
public void start(ScrollableShellConsole console) { start(console, false); }
public void start() { start(console, false); }
34,943
public void start(ScrollableShellConsole console) { start(console, false); }
public void start(ScrollableShellConsole console) { start(false); }
34,944
public Object clone() throws CloneNotSupportedException { Mac result = new Mac((MacSpi) macSpi.clone(), provider, algorithm); result.virgin = virgin; return result; }
public final Object clone() throws CloneNotSupportedException { Mac result = new Mac((MacSpi) macSpi.clone(), provider, algorithm); result.virgin = virgin; return result; }
34,945
public int getMacLength() { return macSpi.engineGetMacLength(); }
public final int getMacLength() { return macSpi.engineGetMacLength(); }
34,946
protected AccessibleJOptionPane() { super(JOptionPane.this); }
protected AccessibleJOptionPane() { }
34,947
public static JDesktopPane getDesktopPaneForComponent(Component parentComponent) { if (parentComponent == null) return null; if (parentComponent instanceof JDesktopPane) return (JDesktopPane) parentComponent; JDesktopPane parent = null; while (parentComponent.getParent() != null) { paren...
public static JDesktopPane getDesktopPaneForComponent(Component parentComponent) { if (parentComponent == null) return null; if (parentComponent instanceof JDesktopPane) return (JDesktopPane) parentComponent; JDesktopPane parent = null; while (parentComponent.getParent() != null) { paren...
34,948
public static Frame getFrameForComponent(Component parentComponent) { if (parentComponent == null) return null; if (parentComponent instanceof Frame) return (Frame) parentComponent; Frame parent = null; while (parentComponent.getParent() != null) { parentComponent = parentComponent.getParent...
public static Frame getFrameForComponent(Component parentComponent) { if (parentComponent == null) return null; if (parentComponent instanceof Frame) return (Frame) parentComponent; Frame parent = null; while (parentComponent.getParent() != null) { parentComponent = parentComponent.getParent...
34,949
public void refresh(){ return; }
public void refresh(){ return; }
34,950
protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel() { public Dimension getPreferredSize() { int w = Math.max(optionPane.getSize().width, minimumWidth); Insets i = opti...
protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel() { public Dimension getPreferredSize() { int w = Math.max(optionPane.getSize().width, minimumWidth); Insets i = opti...
34,951
public Graphics getGraphics() { log.debug("getGraphics"); return SystemProperties.getProperty("gnu.javax.swing.noGraphics2D") == null ? new JNodeGraphics2D(this) : new JNodeGraphics(this); }
public Graphics getGraphics() { return SystemProperties.getProperty("gnu.javax.swing.noGraphics2D") == null ? new JNodeGraphics2D(this) : new JNodeGraphics(this); }
34,952
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); items.insertElementAt(item, index); MenuPeer mp = (MenuPeer)getPeer(); // FIXME: Need to add a peer method here.// if (mp != null)// mp.insertItem(item, index);}
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return; MenuPeer mp = (MenuPeer)getPeer(); // FIXME: Need to add a peer method here.// if (mp != null)// mp.insertItem(item, index);}
34,954
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); items.insertElementAt(item, index); MenuPeer mp = (MenuPeer)getPeer(); // FIXME: Need to add a peer method here.// if (mp != null)// mp.insertItem(item, index);}
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); items.insertElementAt(item, index); MenuPeer mp = (MenuPeer)getPeer(); // FIXME: Need to add a peer method here.// if (mp != null)// mp.insertItem(item, index);}
34,955
isTearOff(){ return(isTearOff);}
isTearOff(){ return(isTearOff);}
34,956
paramString(){ return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString());}
paramString(){ return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString());}
34,957
public Container getContainer();
public Container getContainer();
34,958
public long skip(long n) throws IOException { if (inf == null) throw new IOException("stream closed"); if (n < 0) throw new IllegalArgumentException(); if (n == 0) return 0; int buflen = (int) Math.min(n, 2048); byte[] tmpbuf = new byte[buflen]; long skipped = 0L; while (n > 0L) ...
public long skip(long n) throws IOException { if (inf == null) throw new IOException("stream closed"); if (n < 0) throw new IllegalArgumentException(); if (n == 0) return 0; int buflen = (int) Math.min(n, 2048); byte[] tmpbuf = new byte[buflen]; long skipped = 0L; while (n > 0L) ...
34,959
private HashMap getEntries() throws IOException { synchronized(raf) { checkClosed(); if (entries == null) readEntries(); return entries; } }
private LinkedHashMap getEntries() throws IOException { synchronized(raf) { checkClosed(); if (entries == null) readEntries(); return entries; } }
34,960
public ZipEntry getEntry(String name) { checkClosed(); try { HashMap entries = getEntries(); ZipEntry entry = (ZipEntry) entries.get(name); // If we didn't find it, maybe it's a directory. if (entry == null && !name.endsWith("/")) entry = (ZipEntry) entries.get(name + '/'); re...
public ZipEntry getEntry(String name) { checkClosed(); try { HashMap entries = getEntries(); ZipEntry entry = (ZipEntry) entries.get(name); // If we didn't find it, maybe it's a directory. if (entry == null && !name.endsWith("/")) entry = (ZipEntry) entries.get(name + '/'); re...
34,961
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; PartialInputStream inp = new PartialInputStream(raf, 1024); inp.s...
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; PartialInputStream inp = new PartialInputStream(raf, 1024); inp.s...
34,962
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * Note that a comment has a maximum length of 64K, so that is the * maximum we search backwards. */ PartialInputStream inp = new...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * Note that a comment has a maximum length of 64K, so that is the * maximum we search backwards. */ PartialInputStream inp = new...
34,963
private void ensureReplyIsOurs(Collection certificates) throws IOException, UnsupportedCallbackException, KeyStoreException { log.entering(this.getClass().getName(), "ensureReplyIsOurs"); //$NON-NLS-1$ Certificate certificate = (Certificate) certificates.iterator().next(); log.finest("certificate = " +...
privatevoidensureReplyIsOurs(Collectioncertificates)throwsIOException,UnsupportedCallbackException,KeyStoreException{log.entering(this.getClass().getName(),"ensureReplyIsOurs");//$NON-NLS-1$Certificatecertificate=(Certificate)certificates.iterator().next();log.finest("certificate="+certificate);//$NON-NLS-1$Certificate...
34,964
private void ensureReplyIsOurs(Collection certificates) throws IOException, UnsupportedCallbackException, KeyStoreException { log.entering(this.getClass().getName(), "ensureReplyIsOurs"); //$NON-NLS-1$ Certificate certificate = (Certificate) certificates.iterator().next(); log.finest("certificate = " +...
private void ensureReplyIsOurs(Collection certificates) throws IOException, UnsupportedCallbackException, KeyStoreException { log.entering(this.getClass().getName(), "ensureReplyIsOurs"); //$NON-NLS-1$ Certificate certificate = (Certificate) certificates.iterator().next(); if (Configuration.DEBUG) log....
34,965
private void ensureReplyIsOurs(Collection certificates) throws IOException, UnsupportedCallbackException, KeyStoreException { log.entering(this.getClass().getName(), "ensureReplyIsOurs"); //$NON-NLS-1$ Certificate certificate = (Certificate) certificates.iterator().next(); log.finest("certificate = " +...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) voidif (Configuration.DEBUG) ensureReplyIsOurs(Collectionif (Configuration.DEBUG) certificates)if (Configuration.DEBUG) throwsif (Configuration.DEBUG) IOException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) ...
34,966
private boolean findTrustAndUpdate(LinkedList reply, boolean promptUser) throws IOException, NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, UnsupportedCallbackException, CertificateEncodingException { log.entering(this.getClass().getName(), "find...
private boolean findTrustAndUpdate(LinkedList reply, boolean promptUser) throws IOException, NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, UnsupportedCallbackException, CertificateEncodingException { log.entering(this.getClass().getName(), "find...
34,967
private PKIXCertPathValidatorResult findTrustInStore(X509CertPath certPath, CertPathValidator validator) { log.entering(this.getClass().getName(), "findTrustInStore"); //$NON-NLS-1$ PKIXCertPathValidatorResult result; try { PKIXParameters par...
privatePKIXCertPathValidatorResultfindTrustInStore(X509CertPathcertPath,CertPathValidatorvalidator){log.entering(this.getClass().getName(),"findTrustInStore");//$NON-NLS-1$PKIXCertPathValidatorResultresult;try{PKIXParametersparams=newPKIXParameters(store);result=(PKIXCertPathValidatorResult)validator.validate(certPath,...
34,968
private PKIXCertPathValidatorResult findTrustInStore(X509CertPath certPath, CertPathValidator validator) { log.entering(this.getClass().getName(), "findTrustInStore"); //$NON-NLS-1$ PKIXCertPathValidatorResult result; try { PKIXParameters par...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) PKIXCertPathValidatorResultif (Configuration.DEBUG) findTrustInStore(X509CertPathif (Configuration.DEBUG) certPath,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG...
34,969
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.IMPORT_CMD, true); result.setHeader(Messages.getString("ImportCmd.27")); //$NON-NLS-1$ result.setFooter(Messages.getString("ImportCmd.26")); //$NON-NLS-1$ OptionGroup o...
ParsergetParser(){log.entering(this.getClass().getName(),"getParser");//$NON-NLS-1$Parserresult=newClasspathToolParser(Main.IMPORT_CMD,true);result.setHeader(Messages.getString("ImportCmd.27"));//$NON-NLS-1$result.setFooter(Messages.getString("ImportCmd.26"));//$NON-NLS-1$OptionGroupoptions=newOptionGroup(Messages.getS...
34,971
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.IMPORT_CMD, true); result.setHeader(Messages.getString("ImportCmd.27")); //$NON-NLS-1$ result.setFooter(Messages.getString("ImportCmd.26")); //$NON-NLS-1$ OptionGroup o...
if (Configuration.DEBUG) if (Configuration.DEBUG) Parserif (Configuration.DEBUG) getParser()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Configuration.DEBUG) "getParser");...
34,972
private void importCertificate(Certificate certificate) throws NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, CertificateException { log.entering(this.getClass().getName(), "importCertificate", certifica...
privatevoidimportCertificate(Certificatecertificate)throwsNoSuchAlgorithmException,CertPathValidatorException,KeyStoreException,UnrecoverableKeyException,IOException,UnsupportedCallbackException,CertificateException{log.entering(this.getClass().getName(),"importCertificate",certificate);//$NON-NLS-1$LinkedListreply=new...
34,973
private void importCertificate(Certificate certificate) throws NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, CertificateException { log.entering(this.getClass().getName(), "importCertificate", certifica...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) voidif (Configuration.DEBUG) importCertificate(Certificateif (Configuration.DEBUG) certificate)if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration....
34,974
private void importCertificateReply() throws CertificateException, IOException, UnsupportedCallbackException, KeyStoreException, NoSuchAlgorithmException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importCertificateReply"); //$NON-NLS-1$ Coll...
privatevoidimportCertificateReply()throwsCertificateException,IOException,UnsupportedCallbackException,KeyStoreException,NoSuchAlgorithmException,CertPathValidatorException,UnrecoverableKeyException{log.entering(this.getClass().getName(),"importCertificateReply");//$NON-NLS-1$Collectioncertificates=x509Factory.generate...
34,975
private void importCertificateReply() throws CertificateException, IOException, UnsupportedCallbackException, KeyStoreException, NoSuchAlgorithmException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importCertificateReply"); //$NON-NLS-1$ Coll...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) voidif (Configuration.DEBUG) importCertificateReply()if (Configuration.DEBUG) throwsif (Configuration.DEBUG) CertificateException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Conf...
34,976
private void importChain(Collection chain) throws NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, CertificateException { log.entering(this.getClass().getName(), "importChain", chain); //$NON-NLS-1$ LinkedLi...
privatevoidimportChain(Collectionchain)throwsNoSuchAlgorithmException,CertPathValidatorException,KeyStoreException,UnrecoverableKeyException,IOException,UnsupportedCallbackException,CertificateException{log.entering(this.getClass().getName(),"importChain",chain);//$NON-NLS-1$LinkedListreply=orderChain(chain);if(findTru...
34,977
private void importChain(Collection chain) throws NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, CertificateException { log.entering(this.getClass().getName(), "importChain", chain); //$NON-NLS-1$ LinkedLi...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) voidif (Configuration.DEBUG) importChain(Collectionif (Configuration.DEBUG) chain)if (Configuration.DEBUG) throwsif (Configuration.DEBUG) NoSuchAlgorithmException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) ...
34,978
private void importNewTrustedCertificate() throws CertificateException, KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importNewTrustedCertificate"); //$NON-NLS-...
privatevoidimportNewTrustedCertificate()throwsCertificateException,KeyStoreException,NoSuchAlgorithmException,IOException,UnsupportedCallbackException,CertPathValidatorException,UnrecoverableKeyException{log.entering(this.getClass().getName(),"importNewTrustedCertificate");//$NON-NLS-1$Certificatecertificate=x509Factor...
34,979
private void importNewTrustedCertificate() throws CertificateException, KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importNewTrustedCertificate"); //$NON-NLS-...
private void importNewTrustedCertificate() throws CertificateException, KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importNewTrustedCertificate"); //$NON-NLS-...
34,980
private void importNewTrustedCertificate() throws CertificateException, KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importNewTrustedCertificate"); //$NON-NLS-...
if (Configuration.DEBUG) if (Configuration.DEBUG) privateif (Configuration.DEBUG) voidif (Configuration.DEBUG) importNewTrustedCertificate()if (Configuration.DEBUG) throwsif (Configuration.DEBUG) CertificateException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if ...
34,981
private LinkedList orderChain(Collection chain) { log.entering(this.getClass().getName(), "orderChain"); //$NON-NLS-1$ LinkedList in = new LinkedList(chain); int initialCount = in.size(); LinkedList result = new LinkedList(); Principal issuer = selfSignedCertificate.getIssuerDN(); ListIterator it; ...
private LinkedList orderChain(Collection chain) { log.entering(this.getClass().getName(), "orderChain"); //$NON-NLS-1$ LinkedList in = new LinkedList(chain); int initialCount = in.size(); LinkedList result = new LinkedList(); Principal issuer = selfSignedCertificate.getIssuerDN(); ListIterator it; ...
34,982
void setup() throws Exception { setInputStreamParam(_certFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-import handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alia...
void setup() throws Exception { setInputStreamParam(_certFileName); setKeyStoreParams(true, _providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-import handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" ...
34,983
void setup() throws Exception { setInputStreamParam(_certFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-import handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alia...
void setup() throws Exception { setInputStreamParam(_certFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-import handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alia...
34,984
void start() throws CertificateException, KeyStoreException, IOException, UnsupportedCallbackException, NoSuchAlgorithmException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (trustCACerts) { String fs = SystemP...
voidstart()throwsCertificateException,KeyStoreException,IOException,UnsupportedCallbackException,NoSuchAlgorithmException,CertPathValidatorException,UnrecoverableKeyException{log.entering(this.getClass().getName(),"start");//$NON-NLS-1$if(trustCACerts){Stringfs=SystemProperties.getProperty("file.separator");//$NON-NLS-...
34,985
void start() throws CertificateException, KeyStoreException, IOException, UnsupportedCallbackException, NoSuchAlgorithmException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (trustCACerts) { String fs = SystemP...
if (Configuration.DEBUG) if (Configuration.DEBUG) voidif (Configuration.DEBUG) start()if (Configuration.DEBUG) throwsif (Configuration.DEBUG) CertificateException,if (Configuration.DEBUG) KeyStoreException,if (Configuration.DEBUG) IOException,if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if...
34,986
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,988
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,989
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,990
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,991
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,992
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,993
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,994
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { p...
34,995
public Object run() throws IOException { // Get the API. final NetDeviceAPI api; try { api = (NetDeviceAPI) device.getAPI(NetDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new NetworkException("Device is not...
public Object run() throws IOException { // Get the API. final NetDeviceAPI api; try { api = (NetDeviceAPI) device.getAPI(NetDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new NetworkException("Device is not...
34,996