bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); }
public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(master); }
21,859
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val...
private final void createTable(BitSet master) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the ...
21,860
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val...
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { int sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the value...
21,861
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val...
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0; } // Add the sum of the values...
21,862
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val...
private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val...
21,863
public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi...
public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi...
21,864
public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi...
public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi...
21,865
public final float getSum(int x, int y) { if ((x < 0) || (x >= width)) { throw new IllegalArgumentException("x"); } if ((y < 0) || (y >= height)) { throw new IllegalArgumentException("y"); } return table[y * width + x]; }
public final int getSum(int x, int y) { if ((x < 0) || (x >= width)) { throw new IllegalArgumentException("x"); } if ((y < 0) || (y >= height)) { throw new IllegalArgumentException("y"); } return table[y * width + x]; }
21,866
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =...
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; if(read) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value = REA...
21,867
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =...
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =...
21,868
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =...
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =...
21,869
public DropTarget () { this (null, 0, null, true, null); }
public DropTarget () { this (null, DnDConstants.ACTION_COPY_OR_MOVE, null, true, null); }
21,871
public void addNotify(java.awt.peer.ComponentPeer peer) { }
public void addNotify(ComponentPeer p) { }
21,873
protected DropTarget.DropTargetAutoScroller createDropTargetAutoScroller (Component c, Point p) { return new DropTarget.DropTargetAutoScroller (c, p); }
protected DropTarget.DropTargetAutoScroller createDropTargetAutoScroller (Component c, Point p) { if (autoscroller == null) autoscroller = new DropTarget.DropTargetAutoScroller (c, p); return autoscroller; }
21,876
protected DropTargetContext createDropTargetContext() { return new DropTargetContext (this); }
protected DropTargetContext createDropTargetContext() { if (dropTargetContext == null) dropTargetContext = new DropTargetContext (this); return dropTargetContext; }
21,877
public void removeNotify(java.awt.peer.ComponentPeer peer) { }
public void removeNotify(ComponentPeer p) { }
21,885
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de...
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de...
21,888
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de...
public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de...
21,889
public boolean contains(IPv4Address address) { return addresses.containsKey(address); }
public boolean contains(IPv4Address address) { Collection c = addresses.values(); IPv4IfAddress ipv4IfAddress; for (Iterator iterator = c.iterator(); iterator.hasNext();) { ipv4IfAddress = (IPv4IfAddress) iterator.next(); if (ipv4IfAddress.matches(address)) { return true; } } return false; }
21,890
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalSplitPaneUI(); return instance; }
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSplitPaneUI instance; if (o == null) { instance = new MetalSplitPaneUI(); return instance; }
21,891
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
21,893
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
21,894
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
21,895
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript...
21,896
public void run() { while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } byte scancode = buf.get(0); //Syslog.debug("Interpreting " + scancode); KeyboardEvent event = kbInterpreter.interpretScancode(scancode & 0xff); if (ev...
public void run() { while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } byte scancode = buf.get(0); //Syslog.debug("Interpreting " + scancode); KeyboardEvent event = kbInterpreter.interpretScancode(scancode & 0xff); if (ev...
21,897
public synchronized void addKeyboardListener(KeyboardListener l) { listeners.add(l); }
public synchronized void addKeyboardListener(KeyboardListener l) { listeners.add(l); }
21,898
protected void dispatchEvent(KeyboardEvent event) { //Syslog.debug("Dispatching event to " + listeners.size()); for (Iterator i = listeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l....
protected void dispatchEvent(KeyboardEvent event) { //Syslog.debug("Dispatching event to " + listeners.size()); for (Iterator i = listeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l....
21,899
public synchronized void removeKeyboardListener(KeyboardListener l) { listeners.remove(l); }
public synchronized void removeKeyboardListener(KeyboardListener l) { listeners.remove(l); }
21,900
protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr...
protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr...
21,901
protected synchronized void stopDevice() throws DriverException { getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null; try { channel.close(); } catch (IOException e...
protected synchronized void stopDevice() throws DriverException { getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null; try { channel.close(); } catch (IOException e...
21,902
static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); }
static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); }
21,903
String getContentType() { return ctype; }
String getContentType() { return ctype; }
21,904
static String getEditorKitClassNameForContentType(String type) { return "text/plain"; }
static String getEditorKitClassNameForContentType(String type) { return "text/plain"; }
21,905
EditorKit getEditorKitForContentType(String type) { return kit; }
EditorKit getEditorKitForContentType(String type) { return kit; }
21,906
void read(InputStream in, Object desc) { //This method initializes from a stream. }
public void read(InputStream in, Object desc) { //This method initializes from a stream. }
21,907
static void registerEditorKitForContentType(String type, String classname) { //Establishes the default bindings of type to classname. }
public static void registerEditorKitForContentType(String type, String classname) { //Establishes the default bindings of type to classname. }
21,908
void setContentType(String type) { ctype = type; invalidate(); repaint(); }
public void setContentType(String type) { ctype = type; invalidate(); repaint(); }
21,909
void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); }
public void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); }
21,910
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String message; buf.append("<record>"); buf.append(lin...
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String message; buf.append("<record>"); buf.append(lin...
21,911
static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(path); } catch (IOException ex) { return false; } }
static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(getNormalizedPath(path)); } catch (IOException ex) { return false; } }
21,912
static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(path); } catch (IOException ioe) { return (false); } }
static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(getNormalizedPath(path)); } catch (IOException ioe) { return (false); } }
21,913
static boolean create(String path) throws IOException { //moved from JNode File.createInternal(File file) v1.3 : if(exists(path)) return false; VMFileHandle vmFileHandler=VMIOUtils.getAPI().open(path,VMOpenMode.WRITE); vmFileHandler.close(); return true; }
static boolean create(String path) throws IOException { //moved from JNode File.createInternal(File file) v1.3 : if(exists(path)) return false; VMFileHandle vmFileHandler=VMIOUtils.getAPI().open(path,VMOpenMode.WRITE); vmFileHandler.close(); return true; }
21,914
static boolean delete(String path) { try { VMIOUtils.getAPI().delete(path); return true; } catch (IOException ex) { return false; } }
static boolean delete(String path) { try { VMIOUtils.getAPI().delete(path); return true; } catch (IOException ex) { return false; } }
21,915
static boolean exists(String string) { try { return VMIOUtils.getAPI().fileExists(string); } catch (IOException ex) { return false; } }
static boolean exists(String string) { try { return VMIOUtils.getAPI().fileExists(string); } catch (IOException ex) { return false; } }
21,916
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; } }
21,917
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; } }
21,918
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; } }
21,919
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; } }
21,920
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; } }
21,921
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]; } }
21,922
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; } }
21,923
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; } }
21,924
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; } }
21,925
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); }
21,926
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...
21,927
public void addNotify() { if (peer == null) peer = getToolkit().createLabel(this); super.addNotify(); }
addNotify() { if (peer == null) peer = getToolkit().createLabel(this); super.addNotify(); }
21,929
public int getAlignment() { return (alignment); }
public int getAlignment() { return (alignment); }
21,930
public String getText() { return (text); }
public String getText() { return (text); }
21,931
protected String paramString() { return ("text=" + getText() + ",alignment=" + getAlignment() + "," + super.paramString()); }
protected String paramString() { return ("text=" + getText() + ",alignment=" + getAlignment() + "," + super.paramString()); }
21,932
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); } }
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); } }
21,933
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); } }
21,934
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; }
21,936
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"); } ...
21,937
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 { ...
21,938
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) { ...
21,939
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) { ...
21,940
private void refreshCurrentLine() { currentLine.refreshCurrentLine(console, currentPrompt, out); }
private void refreshCurrentLine() { currentLine.refreshCurrentLine(currentPrompt); }
21,941
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()) { ...
21,942
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...
21,943
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, ...
21,944
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, ...
21,945
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, ...
21,946
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++; ...
21,947
public void start(ScrollableShellConsole console) { start(console, false); }
public void start() { start(console, false); }
21,948
public void start(ScrollableShellConsole console) { start(console, false); }
public void start(ScrollableShellConsole console) { start(false); }
21,949
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; }
21,950
public int getMacLength() { return macSpi.engineGetMacLength(); }
public final int getMacLength() { return macSpi.engineGetMacLength(); }
21,951
protected AccessibleJOptionPane() { super(JOptionPane.this); }
protected AccessibleJOptionPane() { }
21,952
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...
21,953
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...
21,954
public void refresh(){ return; }
public void refresh(){ entries = new HashSet(); }
21,955
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...
21,956
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); }
21,957
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);}
21,959
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); int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) peer.delItem (i); peer.addItem (item); for (in...
21,960
isTearOff(){ return(isTearOff);}
isTearOff(){ return(tearOff);}
21,961
paramString(){ return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString());}
paramString(){ return (",tearOff=" + tearOff + ",isHelpMenu=" + isHelpMenu + super.paramString());}
21,962
public Container getContainer();
Container getContainer();
21,963
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; } }
21,964
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 { LinkedHashMap 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 + '/...
21,965
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(); LinkedHashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; PartialInputStream inp = new PartialInputStream(raf, 1024); ...
21,966
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...
21,967
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....
21,968
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...
21,970
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-...
21,977
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; ...
21,979
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=" ...
21,980
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...
21,981
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 ...
21,984
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 ...
21,985