bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private void addGroup(ThreadGroup grp) { final int max = grp.activeCount() * 2; final Thread[] ts = new Thread[max]; grp.enumerate(ts,false); for (int i = 0; i < max; i++) { final Thread t = ts[i]; if (t != null) { JIFSFile F = new JIFSFthread(t.getName(),t, this); addFSE(F); } } final int...
private void addGroup(ThreadGroup grp) { final int max = grp.activeCount() * 2; final Thread[] ts = new Thread[max]; grp.enumerate(ts,false); for (int i = 0; i < max; i++) { final Thread t = ts[i]; if (t != null) { JIFSFile F = new JIFSFthread(t.getName(),t, this); addFSE(F); } } final int...
17,331
public JIFSFthread(String name, Thread t, FSDirectory parent) { super(name,parent); this.t = t; refresh(); }
public JIFSFthread(String name, Thread t, FSDirectory parent) { super(name,parent); this.t = t; refresh(); }
17,332
public int read (ByteBuffer dst) throws IOException;
public int read (ByteBuffer dst) throws IOException;
17,335
public Position createPosition(int offset) throws BadLocationException;
public Position createPosition(int offset) throws BadLocationException;
17,336
public void getChars(int where, int len, Segment txt) throws BadLocationException;
public void getChars(int where, int len, Segment txt) throws BadLocationException;
17,337
public String getString(int where, int len) throws BadLocationException;
public String getString(int where, int len) throws BadLocationException;
17,338
public UndoableEdit insertString(int where, String str) throws BadLocationException;
public UndoableEdit insertString(int where, String str) throws BadLocationException;
17,339
public int length();
public int length();
17,340
public UndoableEdit remove(int where, int nitems) throws BadLocationException;
public UndoableEdit remove(int where, int nitems) throws BadLocationException;
17,341
Dictionary getDocumentProperties() { return null; }
public Dictionary getDocumentProperties() { return null; }
17,342
EventListener[] getListeners(Class listenerType) { return null; }
public EventListener[] getListeners(Class listenerType) { return null; }
17,343
void readLock() { }
public void readLock() { }
17,344
void readUnlock() { }
public void readUnlock() { }
17,345
public static Collator getInstance (Locale loc) { ResourceBundle res; String pattern; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); pattern = res.getString("collation_rules"); } catch (MissingResourceException x) { return null; } try ...
public static Collator getInstance () { ResourceBundle res; String pattern; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); pattern = res.getString("collation_rules"); } catch (MissingResourceException x) { return null; } try { return ...
17,346
public static Collator getInstance (Locale loc) { ResourceBundle res; String pattern; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); pattern = res.getString("collation_rules"); } catch (MissingResourceException x) { return null; } try ...
public static Collator getInstance (Locale loc) { ResourceBundle res; String pattern; try { res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); pattern = res.getString("collation_rules"); } catch (MissingResourceException x) { return null; } try ...
17,347
public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m...
public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m...
17,348
public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m...
public DefaultBoundedRangeModel(int value, int extent, int minimum, int maximum) { if (!(minimum <= value && extent >= 0 && (value + extent) <= maximum)) throw new IllegalArgumentException(); this.value = value; this.extent = extent; this.minimum = minimum; this.m...
17,349
public TransformerFactoryConfigurationError (Exception e, String msg) { super (msg); exception = e; }
public TransformerFactoryConfigurationError (Exception e, String msg) { super (msg); exception = e; }
17,350
public void execute(CommandLine cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { final Runtime rt = Runtime.getRuntime(); out.println("Total memory " + (rt.totalMemory()/1048576) + "Mb"); out.println("Used memory " + ((rt.totalMemory() - rt.freeMemory())/1048576) + "Mb"); out.println(...
public void execute(CommandLine cmdLine, InputStream in, PrintStream out, PrintStream err) throws Exception { final Runtime rt = Runtime.getRuntime(); out.println("Total memory " + (rt.totalMemory()/1048576) + "Mb"); out.println("Used memory " + ((rt.totalMemory() - rt.freeMemory())/1048576) + "Mb"); out.println(...
17,351
public static String size(long v) { // Is < 1Kb? if ((v & (K-1)) != 0) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if ((v & (K-1)) != 0) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if ((v & (K-1)) != 0) { return Strin...
public static String size(long v) { // Is < 1Kb? if ((v & (K-1)) != 0) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if ((v & (K-1)) != 0) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if ((v & (K-1)) != 0) { return Strin...
17,352
public static String size(long v) { // Is < 1Kb? if ((v & (K-1)) != 0) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if ((v & (K-1)) != 0) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if ((v & (K-1)) != 0) { return Strin...
public static String size(long v) { // Is < 1Kb? if ((v & (K-1)) != 0) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if ((v & (K-1)) != 0) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if ((v & (K-1)) != 0) { return Strin...
17,353
public static String size(long v) { // Is < 1Kb? if ((v & (K-1)) != 0) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if ((v & (K-1)) != 0) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if ((v & (K-1)) != 0) { return Strin...
public static String size(long v) { // Is < 1Kb? if ((v & (K-1)) != 0) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if ((v & (K-1)) != 0) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if ((v & (K-1)) != 0) { return Strin...
17,354
public void execute(CommandLine commandLine, InputStream in, PrintStream out, PrintStream err) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(commandLine.toStringArray()); String dir_str = ARG_DIR.getValue(cmdLine); if (((dir_str == null)&&(System.getProperty("user.dir").equals("/")))||(dir_str.equa...
public void execute(CommandLine commandLine, InputStream in, PrintStream out, PrintStream err) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(commandLine.toStringArray()); String dir_str = ARG_DIR.getValue(cmdLine); if (((dir_str == null)&&(System.getProperty("user.dir").equals("/")))||(dir_str.equa...
17,355
public List getDataRuns() { return dataRuns; }
public List<DataRun> getDataRuns() { return dataRuns; }
17,356
private void readDataRuns(int parentoffset) { int offset = parentoffset; long previousLCN = 0; final List dataruns = getDataRuns(); long vcn = 0; while (getUInt8(offset) != 0x0) { final DataRun dataRun = new DataRun(this, offset, vcn, previousLCN); // map VCN...
private void readDataRuns(int parentoffset) { int offset = parentoffset; long previousLCN = 0; final List<DataRun> dataruns = getDataRuns(); long vcn = 0; while (getUInt8(offset) != 0x0) { final DataRun dataRun = new DataRun(this, offset, vcn, previousLCN); /...
17,357
public int readVCN(long vcn, byte[] dst, int dstOffset, int nrClusters) throws IOException { final NTFSVolume volume = getFileRecord().getVolume(); final int clusterSize = volume.getClusterSize(); int readClusters = 0; for (Iterator it = this.getDataRuns().iterator(); it.hasNe...
public int readVCN(long vcn, byte[] dst, int dstOffset, int nrClusters) throws IOException { final NTFSVolume volume = getFileRecord().getVolume(); final int clusterSize = volume.getClusterSize(); int readClusters = 0; for (Iterator it = this.getDataRuns().iterator(); it.hasNe...
17,358
public IORHolder(IOR initialValue) { value = initialValue; }
public IORHolder() { value = initialValue; }
17,359
public IORHolder(IOR initialValue) { value = initialValue; }
public IORHolder(IOR initialValue) { }
17,360
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (parentFile!=null && !parentFile.exists()) { ...
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (parentFile!=null && !parentFile.exists()) { ...
17,361
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(selectedColor); Segment segment = new Segment(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0); }
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(selectedColor); Segment segment = getLineBuffer(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0); }
17,362
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { JTextComponent textComponent = (JTextComponent) getContainer(); if (textComponent.isEnabled()) g.setColor(unselectedColor); else g.setColor(disabledColor); Segment segment = new Segment(); ...
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { JTextComponent textComponent = (JTextComponent) getContainer(); if (textComponent.isEnabled()) g.setColor(unselectedColor); else g.setColor(disabledColor); Segment segment = getLineBuffer()...
17,363
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) ...
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) ...
17,364
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) ...
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) ...
17,365
public Shape modelToView(int position, Shape a, Position.Bias b) throws BadLocationException { // Ensure metrics are up-to-date. updateMetrics(); Document document = getDocument(); // Get rectangle of the line containing position. int lineIndex = getElement().getElementIndex(position); Recta...
public Shape modelToView(int position, Shape a, Position.Bias b) throws BadLocationException { // Ensure metrics are up-to-date. updateMetrics(); Document document = getDocument(); // Get rectangle of the line containing position. int lineIndex = getElement().getElementIndex(position); Recta...
17,367
public float nextTabStop(float x, int tabStop) { float tabSizePixels = getTabSize() + metrics.charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels; }
public float nextTabStop(float x, int tabStop) { float tabSizePixels = getTabSize() * metrics.charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels; }
17,368
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented return 0; }
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented Rectangle rec = a.getBounds(); Document doc = getDocument(); Element root = doc.getDefaultRootElement(); int lineClicked = (int) (y - rec.y) / metrics.getHeight(); if (lineClicked >= root.getElementCount()) retur...
17,369
public ShortMessage(byte[] data) { super(data); }
public ShortMessage() { super(data); }
17,370
public ShortMessage(byte[] data) { super(data); }
public ShortMessage(byte[] data) { this(defaultMessage); }
17,371
private void setMessage(int status, int data1, int data2) throws InvalidMidiDataException { length = getDataLength(status); length++; if (data == null || data.length < length) data = new byte[length]; data[0] = (byte) status; if (length > 1) { if (data1 < 0 || data1 > 127) throw...
public void setMessage(int status, int data1, int data2) throws InvalidMidiDataException { length = getDataLength(status); length++; if (data == null || data.length < length) data = new byte[length]; data[0] = (byte) status; if (length > 1) { if (data1 < 0 || data1 > 127) throw ...
17,372
public static TypeCode type() { ORB orb = OrbRestricted.Singleton; return orb.create_alias_tc(id(), "Object Id", orb.create_string_tc(0)); }
public static TypeCode type() { ORB orb = OrbRestricted.Singleton; return orb.create_alias_tc(id(), "ObjectId", orb.create_string_tc(0)); }
17,373
public int getLength() { return (int)file.length(); }
public int getLength() { return (int) file.length(); }
17,374
public URL getURL() { try { return new URL(loader.baseURL, name, loader.classloader.getURLStreamHandler("file")); } catch(MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } }
public URL getURL() { try { return new URL(loader.baseURL, name, loader.classloader.getURLStreamHandler("file")); } catch(MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } }
17,375
Resource getResource(String name) { File file = new File(dir, name); if (file.exists() && !file.isDirectory()) return new FileResource(this, name, file); return null; }
Resource getResource(String name) { File file = new File(dir, name); if (file.exists() && !file.isDirectory()) return new FileResource(this, name, file); return null; }
17,376
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
17,377
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
17,378
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // cache url prefix for all resources in this jar url String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exter...
17,379
Resource getResource(String name) { if (jarfile == null) return null; JarEntry je = jarfile.getJarEntry(name); if(je != null) return new JarURLResource(this, name, je); else return null; }
Resource getResource(String name) { if (jarfile == null) return null; JarEntry je = jarfile.getJarEntry(name); if(je != null) return new JarURLResource(this, name, je); else return null; }
17,380
InputStream getInputStream() throws IOException { return ((JarURLLoader)loader).jarfile.getInputStream(entry); }
InputStream getInputStream() throws IOException { return ((JarURLLoader) loader).jarfile.getInputStream(entry); }
17,381
int getLength() { return (int)entry.getSize(); }
int getLength() { return (int) entry.getSize(); }
17,382
URL getURL() { try { return new URL(((JarURLLoader)loader).baseJarURL, name, loader.classloader.getURLStreamHandler("jar")); } catch(MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } }
URL getURL() { try { return new URL(((JarURLLoader)loader).baseJarURL, name, loader.classloader.getURLStreamHandler("jar")); } catch(MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } }
17,383
URL getURL() { try { return new URL(((JarURLLoader)loader).baseJarURL, name, loader.classloader.getURLStreamHandler("jar")); } catch(MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } }
URL getURL() { try { return new URL(((JarURLLoader)loader).baseJarURL, name, loader.classloader.getURLStreamHandler("jar")); } catch(MalformedURLException e) { InternalError ie = new InternalError(); ie.initCause(e); throw ie; } }
17,384
Resource getResource(String name) { try { URL url = new URL(baseURL, name, classloader.getURLStreamHandler(protocol)); URLConnection connection = url.openConnection(); // Open the connection and check the stream // just to be sure it exists. int length = connection.getContentLength(); Inpu...
Resource getResource(String name) { try { URL url = new URL(baseURL, name, classloader.getURLStreamHandler(protocol)); URLConnection connection = url.openConnection(); // Open the connection and check the stream // just to be sure it exists. int length = connection.getContentLength(); Inpu...
17,385
Resource getResource(String name) { try { URL url = new URL(baseURL, name, classloader.getURLStreamHandler(protocol)); URLConnection connection = url.openConnection(); // Open the connection and check the stream // just to be sure it exists. int length = connection.getContentLength(); Inpu...
Resource getResource(String name) { try { URL url = new URL(baseURL, name, classloader.getURLStreamHandler(protocol)); URLConnection connection = url.openConnection(); // Open the connection and check the stream // just to be sure it exists. int length = connection.getContentLength(); Inpu...
17,386
protected void addURL(URL newUrl) { synchronized(urlloaders) { if (newUrl == null) return; // Silently ignore... // check global cache to see if there're already url loader // for this url URLLoader loader = (URLLoader)urlloaders.get(newUrl); if (loader == null) { String file = newUrl.getFile...
protected void addURL(URL newUrl) { synchronized(urlloaders) { if (newUrl == null) return; // Silently ignore... // check global cache to see if there're already url loader // for this url URLLoader loader = (URLLoader)urlloaders.get(newUrl); if (loader == null) { String file = newUrl.getFile...
17,387
private void addURLs(URL[] newUrls) { for (int i = 0; i < newUrls.length; i++) { addURL(newUrls[i]); } }
private void addURLs(URL[] newUrls) { for (int i = 0; i < newUrls.length; i++) { addURL(newUrls[i]); } }
17,388
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
17,389
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VERS...
17,390
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
17,391
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
protected Package definePackage(String name, Manifest manifest, URL url) throws IllegalArgumentException { Attributes attr = manifest.getMainAttributes(); String specTitle = attr.getValue(Attributes.Name.SPECIFICATION_TITLE); String specVersion = attr.getValue(Attributes.Name.SPECIFICATION_VE...
17,392
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,393
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,394
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,395
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,396
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,397
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,398
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,399
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
17,400
public Object run() { return defineClass(className, classData, 0, classData.length, source); }
public Object run() { return defineClass(className, classData, 0, classData.length, source); }
17,401
public Enumeration findResources(String resourceName) throws IOException { Vector resources = new Vector(); int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader)urlinfos.elementAt(i); Resource resource = loader.getResource(resourceName); if (resource != null) resources...
public Enumeration findResources(String resourceName) throws IOException { Vector resources = new Vector(); int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader)urlinfos.elementAt(i); Resource resource = loader.getResource(resourceName); if (resource != null) resources...
17,402
public Enumeration findResources(String resourceName) throws IOException { Vector resources = new Vector(); int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader)urlinfos.elementAt(i); Resource resource = loader.getResource(resourceName); if (resource != null) resources...
public Enumeration findResources(String resourceName) throws IOException { Vector resources = new Vector(); int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader)urlinfos.elementAt(i); Resource resource = loader.getResource(resourceName); if (resource != null) resources...
17,403
private Resource findURLResource(String resourceName) { int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader)urlinfos.elementAt(i); if (loader == null) continue; Resource resource = loader.getResource(resourceName); if (resource != null) return resource; } retu...
private Resource findURLResource(String resourceName) { int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader)urlinfos.elementAt(i); if (loader == null) continue; Resource resource = loader.getResource(resourceName); if (resource != null) return resource; } retu...
17,404
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protectedPermissionCollectiongetPermissions(CodeSourcesource){//XXX-ThisimplementationdoesexactlyastheJavadocdescribes.//Butmaybeweshould/coulduseURLConnection.getPermissions()?//FirstgetthepermissionsthatwouldnormallybegrantedPermissionCollectionpermissions=super.getPermissions(source);//Nowaddtheanyextrapermissionsde...
17,405
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
17,406
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted ...
17,407
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protected PermissionCollection getPermissions(CodeSource source) // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getPer...
17,408
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
17,409
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
17,410
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protected PermissionCollection getPermissions(CodeSource source) // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getPer...
17,411
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
protected PermissionCollection getPermissions(CodeSource source) { // XXX - This implementation does exactly as the Javadoc describes. // But maybe we should/could use URLConnection.getPermissions()? // First get the permissions that would normally be granted PermissionCollection permissions = super.getP...
17,412
URLStreamHandler getURLStreamHandler(String protocol) { if (factory == null) return null; URLStreamHandler handler; synchronized (factoryCache) { // check if there're handler for the same protocol in cache HashMap cache = (HashMap)factoryCache.get(factory); handler = (URLStreamHandler)cache.get(pr...
URLStreamHandler getURLStreamHandler(String protocol) { if (factory == null) return null; URLStreamHandler handler; synchronized (factoryCache) { // check if there're handler for the same protocol in cache HashMap cache = (HashMap)factoryCache.get(factory); handler = (URLStreamHandler)cache.get(pr...
17,413
URLStreamHandler getURLStreamHandler(String protocol) { if (factory == null) return null; URLStreamHandler handler; synchronized (factoryCache) { // check if there're handler for the same protocol in cache HashMap cache = (HashMap)factoryCache.get(factory); handler = (URLStreamHandler)cache.get(pr...
URLStreamHandler getURLStreamHandler(String protocol) { if (factory == null) return null; URLStreamHandler handler; synchronized (factoryCache) { // check if there're handler for the same protocol in cache HashMap cache = (HashMap)factoryCache.get(factory); handler = (URLStreamHandler)cache.get(pr...
17,414
public static URLClassLoader newInstance(URL urls[]) throws SecurityException { return newInstance(urls, null); }
public static URLClassLoader newInstance(URL[] urls) throws SecurityException { return newInstance(urls, null); }
17,415
public Object run() { return new URLClassLoader (parent, (AccessControlContext)securityContext); }
public Object run() { return new URLClassLoader (parent, (AccessControlContext)securityContext); }
17,416
public int getResponseCode() throws IOException { if (!gotResponseVals) getResponseVals(); return responseCode; }
public int getResponseCode() throws IOException { if (! gotResponseVals) getResponseVals(); return responseCode; }
17,417
protected SecureClassLoader() { SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkCreateClassLoader(); }
protected SecureClassLoader(ClassLoader parent) { SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkCreateClassLoader(); }
17,418
protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs), this, null); return super.defineCl...
protectedfinalClassdefineClass(Stringname,byte[]b,intoff,intlen, CodeSourcecs){ //FIXME:NeedtocacheProtectionDomainsaccordingto1.3docs.if(cs!=null){ ProtectionDomainprotectionDomain=newProtectionDomain(cs,getPermissions(cs),this,null); returnsuper.defineClass(name,b,off,len,protectionDomain);}else returnsuper.d...
17,420
protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs), this, null); return super.defineCl...
protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain; synchronized (protectionDomainCache) { protectionDomain = (ProtectionDomain)protectionDoma...
17,421
public ReadOnlyFileSystemException(String message, Throwable cause) { super(message, cause); }
public ReadOnlyFileSystemException(String message, Throwable cause) { super(message, cause); }
17,423
public ColorUIResource getMenuDisabledForeground() { return getSecondary3(); }
public ColorUIResource getMenuDisabledForeground() { return getSecondary2(); }
17,425
public void putDefaults(Object[] list) { throw new Error("not implemented"); }
public void putDefaults(Object[] entries) { throw new Error("not implemented"); }
17,426
public void putDefaults(Object[] list) { throw new Error("not implemented"); }
public void putDefaults(Object[] list) { for (int i = 0; (2*i+1) < entries.length; ++i) { super.put (entries[2*i], entries[2*i+1]); } firePropertyChange ("UIDefaults", null, null); }
17,427
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,428
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,429
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,430
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,431
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,432
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,433
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,434
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,435
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
17,436