bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public final void deviceStarted(Device device) { if (device.implementsAPI(FSBlockDeviceAPI.class)) { // add it to the queue of devices to be mounted only if the action // is not already pending devicesAdded++; devicesWaitingToBeMounted.add(device); //log.info("Started " + device.getId()); } }
public final void deviceStarted(final Device device) { if (device.implementsAPI(FSBlockDeviceAPI.class)) { // add it to the queue of devices to be mounted only if the action // is not already pending devicesAdded++; devicesWaitingToBeMounted.add(device); //log.info("Started " + device.getId()); } }
9,488
public final void deviceStarted(Device device) { if (device.implementsAPI(FSBlockDeviceAPI.class)) { // add it to the queue of devices to be mounted only if the action // is not already pending devicesAdded++; devicesWaitingToBeMounted.add(device); //log.info("Started " + device.getId()); } }
public final void deviceStarted(Device device) { if (device.implementsAPI(FSBlockDeviceAPI.class)) { // add it to the queue of devices to be mounted only if the action // is not already pending devicesAdded++; devicesWaitingToBeMounted.add(device); //log.info("Started " + device.getId()); } }
9,489
public void start() throws PluginException { try { devMan = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME); devMan.addListener(this); fileSystemService = (FileSystemService) InitialNaming .lookup(FileSystemService.NAME); asynchronousMounterThread = new QueueProcessorThread( "Asynchronous-FS-Mounter", devicesWaitingToBeMounted, this); asynchronousMounterThread.start(); } catch (NameNotFoundException ex) { throw new PluginException("Cannot find DeviceManager", ex); } }
public void start() throws PluginException { try { devMan = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME); devMan.addListener(this); fileSystemService = (FileSystemService) InitialNaming .lookup(FileSystemService.NAME); asynchronousMounterThread = new QueueProcessorThread( "Asynchronous-FS-Mounter", devicesWaitingToBeMounted, this); asynchronousMounterThread.start(); } catch (NameNotFoundException ex) { throw new PluginException("Cannot find DeviceManager", ex); } }
9,490
public void stop() { devMan.removeListener(this); asynchronousMounterThread.stopProcessor(); asynchronousMounterThread = null; }
public void stop() { devMan.removeListener(this); asynchronousMounterThread.stopProcessor(); asynchronousMounterThread = null; }
9,491
public ColorUIResource(Color c) { super(c.getRGB()); }
public ColorUIResource(int r, int g, int b) { super(c.getRGB()); }
9,493
public ColorUIResource(Color c) { super(c.getRGB()); }
public ColorUIResource(Color c) { super(r, g, b); }
9,494
public synchronized <S> S[] toArray(S[] a) { if (a.length < elementCount) a = (S[]) Array.newInstance(a.getClass().getComponentType(), elementCount); else if (a.length > elementCount) a[elementCount] = null; System.arraycopy(elementData, 0, a, 0, elementCount); return a; }
public synchronized Object[] toArray() { if (a.length < elementCount) a = (S[]) Array.newInstance(a.getClass().getComponentType(), elementCount); else if (a.length > elementCount) a[elementCount] = null; System.arraycopy(elementData, 0, a, 0, elementCount); return a; }
9,495
public synchronized <S> S[] toArray(S[] a) { if (a.length < elementCount) a = (S[]) Array.newInstance(a.getClass().getComponentType(), elementCount); else if (a.length > elementCount) a[elementCount] = null; System.arraycopy(elementData, 0, a, 0, elementCount); return a; }
public synchronized <S> S[] toArray(S[] a) { if (a.length < elementCount) a = (S[]) Array.newInstance(a.getClass().getComponentType(), elementCount); else if (a.length > elementCount) a[elementCount] = null; System.arraycopy(elementData, 0, a, 0, elementCount); return a; }
9,496
public ObjID(int num) { objNum = (long)num; space = new UID((short)0);}
public ObjID(int num) { objNum = (long)num; space = new UID((short)0);}
9,497
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf);}
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf);}
9,498
protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef)ref); exportObject(this);}
protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef)ref); exportObject(this);}
9,499
public NotBoundException(String s) { super(s); }
public NotBoundException() { super(s); }
9,500
public NotBoundException(String s) { super(s); }
public NotBoundException(String s) { }
9,501
public static XMLReader createXMLReader () throws SAXException { String className = null; ClassLoader loader = NewInstance.getClassLoader (); // 1. try the JVM-instance-wide system property try { className = System.getProperty (property); } catch (RuntimeException e) { /* normally fails for applets */ } // 2. if that fails, try META-INF/services/ if (className == null) { try { String service = "META-INF/services/" + property; InputStream in; BufferedReader reader; if (loader == null) in = ClassLoader.getSystemResourceAsStream (service); else in = loader.getResourceAsStream (service); if (in != null) { reader = new BufferedReader ( new InputStreamReader (in, "UTF8")); className = reader.readLine (); in.close (); } } catch (Exception e) { } } // 3. Distro-specific fallback if (className == null) {// BEGIN DISTRIBUTION-SPECIFIC // use the non-validating one className = "gnu.xml.aelfred2.SAXDriver";// END DISTRIBUTION-SPECIFIC } // do we know the XMLReader implementation class yet? if (className != null) return loadClass (loader, className); // 4. panic -- adapt any SAX1 parser try { return new ParserAdapter (ParserFactory.makeParser ()); } catch (Exception e) { throw new SAXException ("Can't create default XMLReader; " + "is system property org.xml.sax.driver set?"); } }
public static XMLReader createXMLReader () throws SAXException { String className = null; ClassLoader loader = NewInstance.getClassLoader (); // 1. try the JVM-instance-wide system property try { className = System.getProperty (property); } catch (RuntimeException e) { /* normally fails for applets */ } // 2. if that fails, try META-INF/services/ if (className == null) { try { String service = "META-INF/services/" + property; InputStream in; BufferedReader reader; if (loader == null) in = ClassLoader.getSystemResourceAsStream (service); else in = loader.getResourceAsStream (service); if (in != null) { reader = new BufferedReader ( new InputStreamReader (in, "UTF8")); className = reader.readLine (); in.close (); } } catch (Exception e) { } } // 3. Distro-specific fallback if (className == null) {// BEGIN DISTRIBUTION-SPECIFIC // use the non-validating one // END DISTRIBUTION-SPECIFIC } // do we know the XMLReader implementation class yet? if (className != null) return loadClass (loader, className); // 4. panic -- adapt any SAX1 parser try { return new ParserAdapter (ParserFactory.makeParser ()); } catch (Exception e) { throw new SAXException ("Can't create default XMLReader; " + "is system property org.xml.sax.driver set?"); } }
9,502
public Throwable getCause() { return containedException; }
public Throwable getCause() { return containedException; }
9,503
public abstract Templates newTemplates (Source stylesheet) throws TransformerConfigurationException;
public abstract Templates newTemplates (Source stylesheet) throws TransformerConfigurationException;
9,504
public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException()
public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException()
9,505
public abstract Transformer newTransformer() throws TransformerConfigurationException;
public abstract Transformer newTransformer(Source source) throws TransformerConfigurationException;
9,506
public abstract TransformerHandler newTransformerHandler() throws TransformerConfigurationException;
public abstract TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException;
9,507
public abstract XMLFilter newXMLFilter (Source stylesheet) throws TransformerConfigurationException;
public abstract XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException;
9,508
public final Class getCategory() { return QueuedJobCount.class; }
public Class getCategory() { return QueuedJobCount.class; }
9,509
public final String getName() { return "queued-job-count"; }
public String getName() { return "queued-job-count"; }
9,510
public final void set(int year, int month, int date, int hour, int minute) { set(year, month, date); fields[HOUR_OF_DAY] = hour; fields[MINUTE] = minute; isSet[HOUR_OF_DAY] = isSet[MINUTE] = true; isSet[AM_PM] = false; isSet[HOUR] = false; }
public void set(int field, int value) { set(year, month, date); fields[HOUR_OF_DAY] = hour; fields[MINUTE] = minute; isSet[HOUR_OF_DAY] = isSet[MINUTE] = true; isSet[AM_PM] = false; isSet[HOUR] = false; }
9,511
public final void set(int year, int month, int date, int hour, int minute) { set(year, month, date); fields[HOUR_OF_DAY] = hour; fields[MINUTE] = minute; isSet[HOUR_OF_DAY] = isSet[MINUTE] = true; isSet[AM_PM] = false; isSet[HOUR] = false; }
public final void set(int year, int month, int date, int hour, int minute) { set(year, month, date); fields[HOUR_OF_DAY] = hour; fields[MINUTE] = minute; isSet[HOUR_OF_DAY] = isSet[MINUTE] = true; isSet[AM_PM] = false; isSet[HOUR] = false; }
9,512
protected void installDefaults() { divider = createDefaultDivider(); resetLayoutManager(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider UIDefaults defaults = UIManager.getLookAndFeelDefaults(); splitPane.setBackground(defaults.getColor("SplitPane.background")); splitPane.setBorder(defaults.getBorder("SplitPane.border")); splitPane.setDividerSize(defaults.getInt("SplitPane.dividerSize")); splitPane.setOpaque(true); }
protected void installDefaults() { divider = createDefaultDivider(); resetLayoutManager(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider UIDefaults defaults = UIManager.getLookAndFeelDefaults(); splitPane.setBackground(defaults.getColor("SplitPane.background")); splitPane.setBorder(defaults.getBorder("SplitPane.border")); splitPane.setDividerSize(defaults.getInt("SplitPane.dividerSize")); splitPane.setOpaque(true); }
9,513
public static void setCurrentKeyboardFocusManager (KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission (new AWTPermission ("replaceKeyboardFocusManager")); ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); KeyboardFocusManager manager; if (m == null) manager = createFocusManager(); else manager = m; currentKeyboardFocusManagers.put (currentGroup, manager); }
public static void setCurrentKeyboardFocusManager (KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission (new AWTPermission ("replaceKeyboardFocusManager")); ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); KeyboardFocusManager manager; if (m == null) manager = new DefaultKeyboardFocusManager(); else manager = m; currentKeyboardFocusManagers.put (currentGroup, manager); }
9,514
public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), false); }
public static AWTKeyStroke getAWTKeyStroke(char keyChar) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), false); }
9,515
public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), false); }
public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), false); }
9,516
public FocusEvent(Component source, int id, boolean temporary) { this(source, id, temporary, null); }
public FocusEvent(Component source, int id, boolean temporary, Component opposite) { this(source, id, temporary, null); }
9,517
public FocusEvent(Component source, int id, boolean temporary) { this(source, id, temporary, null); }
public FocusEvent(Component source, int id, boolean temporary) { super(source, id); this.temporary = temporary; this.opposite = opposite; }
9,518
public String toString() { return toString(false); }
public String toString(boolean objectInfo) { return toString(false); }
9,519
public String toString() { return toString(false); }
public String toString() { StringBuffer sb = new StringBuffer(super.toString()); Throwable cause = getRootCause(); if (cause != null) { sb.append(" caused by "); sb.append(cause); } Name remaining = getRemainingName(); if (remaining != null) { sb.append(" [remainingName: "); sb.append(remaining); } Object resolved = getResolvedObj(); if (objectInfo && resolved != null) { if (remainingName == null) sb.append(" ["); else sb.append(", "); sb.append("resolvedObj: "); sb.append(resolved); } if ((remaining != null) || (objectInfo && resolved != null)) sb.append(']'); return sb.toString(); }
9,520
public void addCertificate(java.security.Certificate certificate) throws KeyManagementException { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("addIdentityCertificate"); //Check public key of this certificate against the first one //in the vector if (certificates.size() > 0) { if (((Certificate) certificates.firstElement()).getPublicKey() != publicKey) throw new KeyManagementException("Public key does not match"); } certificates.addElement(certificate); }
public void addCertificate(Certificate certificate) throws KeyManagementException { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("addIdentityCertificate"); //Check public key of this certificate against the first one //in the vector if (certificates.size() > 0) { if (((Certificate) certificates.firstElement()).getPublicKey() != publicKey) throw new KeyManagementException("Public key does not match"); } certificates.addElement(certificate); }
9,521
public KeyManagementException(String msg) { super(msg); }
public KeyManagementException() { super(msg); }
9,522
public KeyManagementException(String msg) { super(msg); }
public KeyManagementException(String msg) { }
9,523
public ZipEntry(String name) { if (name == null) throw new NullPointerException(); this.name = name; }
public ZipEntry(String name) { if (name == null) throw new NullPointerException(); this.name = name; }
9,524
public int getColumnCount();
int getColumnCount();
9,525
public TableColumn getColumn(int columnIndex);
TableColumn getColumn(int columnIndex);
9,526
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column);
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column);
9,527
public int getTotalColumnWidth();
int getTotalColumnWidth();
9,528
public SocketException(String message) { super(message); }
public SocketException() { super(message); }
9,529
public SocketException(String message) { super(message); }
public SocketException(String message) { }
9,530
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); /* for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null; */ return stack[3].getClassLoader(); }
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null; */ return stack[3].getClassLoader(); }
9,531
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); /* for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null; */ return stack[3].getClassLoader(); }
ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); /* for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null; */ return stack[3].getClassLoader(); }
9,532
private static final ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Reference ref = (Reference) cache.get(localizedName); // If REF is null, that means that we added a `null' value to // the hash map. That means we failed to find the bundle // previously, and we cached that fact. The JDK does this, so // it must be ok. if (ref == null) return null; else { ResourceBundle rb = (ResourceBundle) ref.get(); if (rb != null) { // RB should already have the right parent, except if // something very strange happened. return rb; } // If RB is null, then we previously found it but it was // collected. So we try again. } } // foundBundle holds exact matches for the localizedName resource // bundle, which may later be cached. ResourceBundle foundBundle = null; try { Class rbClass; if (classloader == null) rbClass = Class.forName(localizedName); else rbClass = classloader.loadClass(localizedName); foundBundle = (ResourceBundle) rbClass.newInstance(); foundBundle.parent = bundle; foundBundle.locale = locale; } catch (Exception ex) { // ignore them all foundBundle = null; } if (foundBundle == null) { try { InputStream is; final String resourceName = localizedName.replace('.', '/') + ".properties"; if (classloader == null) is = ClassLoader.getSystemResourceAsStream(resourceName); else is = classloader.getResourceAsStream(resourceName); if (is != null) { foundBundle = new PropertyResourceBundle(is); foundBundle.parent = bundle; foundBundle.locale = locale; } } catch (IOException ex) { } } // Put the result into the hash table. If we didn't find anything // here, we record our parent bundle. If we record `null' that means // nothing, not even the base, was found. if (foundBundle == null) foundBundle = bundle; if (foundBundle == null) cache.put(localizedName, null); else cache.put(localizedName, new SoftReference(foundBundle)); return foundBundle; }
private static final ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Reference ref = (Reference) cache.get(localizedName); // If REF is null, that means that we added a `null' value to // the hash map. That means we failed to find the bundle // previously, and we cached that fact. The JDK does this, so // it must be ok. if (ref == null) return null; else { ResourceBundle rb = (ResourceBundle) ref.get(); if (rb != null) { // RB should already have the right parent, except if // something very strange happened. return rb; } // If RB is null, then we previously found it but it was // collected. So we try again. } } // foundBundle holds exact matches for the localizedName resource // bundle, which may later be cached. ResourceBundle foundBundle = null; try { Class rbClass; if (classloader == null) rbClass = Class.forName(localizedName); else rbClass = classloader.loadClass(localizedName); foundBundle = (ResourceBundle) rbClass.newInstance(); foundBundle.parent = bundle; foundBundle.locale = locale; } catch (Exception ex) { // ignore them all foundBundle = null; } if (foundBundle == null) { try { InputStream is; final String resourceName = localizedName.replace('.', '/') + ".properties"; if (classloader == null) is = ClassLoader.getSystemResourceAsStream(resourceName); else is = classloader.getResourceAsStream(resourceName); if (is != null) { foundBundle = new PropertyResourceBundle(is); foundBundle.parent = bundle; foundBundle.locale = locale; } } catch (IOException ex) { } } // Put the result into the hash table. If we didn't find anything // here, we record our parent bundle. If we record `null' that means // nothing, not even the base, was found. if (foundBundle == null) foundBundle = bundle; if (foundBundle == null) cache.put(localizedName, null); else cache.put(localizedName, new SoftReference(foundBundle)); return foundBundle; }
9,534
private static final ResourceBundle tryLocalBundle(String baseName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { final String language = locale.getLanguage(); final String country = locale.getCountry(); final String variant = locale.getVariant(); StringBuffer sb = new StringBuffer(60); sb.append(baseName); sb.append('_'); if (language.length() > 0) { sb.append(language); bundle = tryBundle(sb.toString(), new Locale(language), classloader, bundle, cache); } // If LANGUAGE was empty, we still need to try the other // components, and the `_' is required. sb.append('_'); if (country.length() > 0) { sb.append(country); bundle = tryBundle(sb.toString(), new Locale(language, country), classloader, bundle, cache); } sb.append('_'); if (variant.length() > 0) { sb.append(variant); bundle = tryBundle(sb.toString(), locale, classloader, bundle, cache); } return bundle; }
private static final ResourceBundle tryLocalBundle(String baseName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { final String language = locale.getLanguage(); final String country = locale.getCountry(); final String variant = locale.getVariant(); StringBuffer sb = new StringBuffer(60); sb.append(baseName); sb.append('_'); if (language.length() > 0) { sb.append(language); bundle = tryBundle(sb.toString(), new Locale(language), classloader, bundle, cache); } // If LANGUAGE was empty, we still need to try the other // components, and the `_' is required. sb.append('_'); if (country.length() > 0) { sb.append(country); bundle = tryBundle(sb.toString(), new Locale(language, country), classloader, bundle, cache); } sb.append('_'); if (variant.length() > 0) { sb.append(variant); bundle = tryBundle(sb.toString(), locale, classloader, bundle, cache); } return bundle; }
9,535
public Locale(String language) { this(language, "", ""); }
public Locale(String language, String country, String variant) { this(language, "", ""); }
9,536
public Locale(String language) { this(language, "", ""); }
public Locale(String language) { if (defaultLocale != null) { language = convertLanguage(language).intern(); country = country.toUpperCase().intern(); variant = variant.intern(); } this.language = language; this.country = country; this.variant = variant; hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); }
9,537
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { return null; }
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value!=null) super.setText(value.toString()); return this; }
9,538
public void setSelected(boolean b) { getModel().setSelected(b); }
public void setSelected(boolean b) { getModel().setSelected(b); }
9,539
public DefaultTableModel(int numRows, int numColumns) { // Variables int columnIndex; Vector defaultNames; // Create Column Names defaultNames = new Vector(); for (columnIndex = 0; columnIndex < numColumns; columnIndex++) { defaultNames.addElement(super.getColumnName(columnIndex)); } // for // Setup Data// setDataVector(defaultNames, numRows); } // DefaultTableModel()
public DefaultTableModel(int numRows, int numColumns) { // Variables int columnIndex; Vector defaultNames; // Create Column Names defaultNames = new Vector(); for (columnIndex = 0; columnIndex < numColumns; columnIndex++) { defaultNames.addElement(super.getColumnName(columnIndex)); } // for // Setup Data// setDataVector(defaultNames, numRows); } // DefaultTableModel()
9,540
public ListSelectionModel getSelectionModel();
ListSelectionModel getSelectionModel();
9,541
public String getColumnName(int columnIndex);
String getColumnName(int columnIndex);
9,542
public void addColumn(TableColumn column);
void addColumn(TableColumn column);
9,543
public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); } // TableColumn()
public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); } // TableColumn()
9,544
public void removeColumn(TableColumn column);
void removeColumn(TableColumn column);
9,545
public Class getColumnClass(int columnIndex);
Class getColumnClass(int columnIndex);
9,546
public int getColumnMargin();
int getColumnMargin();
9,547
public int getColumnIndex(Object columnIdentifier);
int getColumnIndex(Object columnIdentifier);
9,548
public boolean getColumnSelectionAllowed();
boolean getColumnSelectionAllowed();
9,549
public int getRowCount();
int getRowCount();
9,551
public Object getValueAt(int rowIndex, int columnIndex);
Object getValueAt(int rowIndex, int columnIndex);
9,552
public void addColumnModelListener(TableColumnModelListener listener);
void addColumnModelListener(TableColumnModelListener listener);
9,553
public boolean isCellEditable(int rowIndex, int columnIndex);
boolean isCellEditable(int rowIndex, int columnIndex);
9,554
public void moveColumn(int columnIndex, int newIndex);
void moveColumn(int columnIndex, int newIndex);
9,555
public void addCellEditorListener(CellEditorListener listener);
void addCellEditorListener(CellEditorListener listener);
9,556
public void removeColumnModelListener(TableColumnModelListener listener);
void removeColumnModelListener(TableColumnModelListener listener);
9,557
public void setColumnSelectionAllowed(boolean value);
void setColumnSelectionAllowed(boolean value);
9,558
public void setColumnMargin(int margin);
void setColumnMargin(int margin);
9,559
public void removeTableModelListener(TableModelListener listener);
void removeTableModelListener(TableModelListener listener);
9,560
public void addTableModelListener(TableModelListener listener);
void addTableModelListener(TableModelListener listener);
9,561
public void setValueAt(Object aValue, int rowIndex, int columnIndex);
void setValueAt(Object aValue, int rowIndex, int columnIndex);
9,562
public MultipleComponentProfileHolder(TaggedComponent[] initialValue) { value = initialValue; }
public MultipleComponentProfileHolder() { value = initialValue; }
9,563
public MultipleComponentProfileHolder(TaggedComponent[] initialValue) { value = initialValue; }
public MultipleComponentProfileHolder(TaggedComponent[] initialValue) { }
9,564
Box(int a) { setLayout(new BoxLayout(this, a)); }
Box(int a) { setLayout(new BoxLayout(this, a)); }
9,566
public static Border createEmptyBorder( int top, int left, int bottom, int right) { /* Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides. Parameters: top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelsReturns: the Border object createCompoundBorder */ return null; }
public static Border createEmptyBorder( int top, int left, int bottom, int right) { /* Creates an empty border that takes up no space but which does no drawing, specifying the width of the top, left, bottom, and right sides. Parameters: top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelsReturns: the Border object createCompoundBorder */ return null; }
9,567
public JComboBox(Object[] value0) { // TODO } // JComboBox()
public JComboBox(ComboBoxModel value0) { // TODO } // JComboBox()
9,568
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } String file = url.getFile(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) { password = username.substring(ci + 1); username = username.substring(0, ci); } } final Credentials creds = (username == null) ? null : new Credentials (username, password); boolean retry; do { retry = false; if (connection == null) { connection = getConnection(host, port, secure); if (secure) { SSLSocketFactory factory = getSSLSocketFactory(); HostnameVerifier verifier = getHostnameVerifier(); if (factory != null) { connection.setSSLSocketFactory(factory); } connection.addHandshakeCompletedListener(this); // TODO verifier } } if (proxyHostname != null) { if (proxyPort < 0) { proxyPort = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } connection.setProxy(proxyHostname, proxyPort); } request = connection.newRequest(method, file); if (!keepAlive) { request.setHeader("Connection", "close"); } if (agent != null) { request.setHeader("User-Agent", agent); } request.getHeaders().putAll(requestHeaders); if (requestSink != null) { byte[] content = requestSink.toByteArray(); RequestBodyWriter writer = new ByteArrayRequestBodyWriter(content); request.setRequestBodyWriter(writer); } ByteArrayResponseBodyReader reader = new ByteArrayResponseBodyReader(); request.setResponseBodyReader(reader); if (creds != null) { request.setAuthenticator(new Authenticator() { public Credentials getCredentials(String realm, int attempts) { return (attempts < 2) ? creds : null; } }); } response = request.dispatch(); if (response.getCodeClass() == 3 && getInstanceFollowRedirects()) { // Follow redirect String location = response.getHeader("Location"); if (location != null) { String connectionUri = connection.getURI(); int start = connectionUri.length(); if (location.startsWith(connectionUri) && location.charAt(start) == '/') { file = location.substring(start); retry = true; } else if (location.startsWith("http:")) { connection.close(); connection = null; secure = false; start = 7; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTP_PORT; } file = location.substring(end); retry = true; } else if (location.startsWith("https:")) { connection.close(); connection = null; secure = true; start = 8; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTPS_PORT; } file = location.substring(end); retry = true; } else if (location.length() > 0) { // Malformed absolute URI, treat as file part of URI if (location.charAt(0) == '/') { // Absolute path file = location; } else { // Relative path int lsi = file.lastIndexOf('/'); file = (lsi == -1) ? "/" : file.substring(0, lsi + 1); file += location; } retry = true; } } } else { responseSink = new ByteArrayInputStream(reader.toByteArray ()); if (response.getCode() == 404) { errorSink = responseSink; throw new FileNotFoundException(url.toString()); } } } while (retry); connected = true; }
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } String file = url.getFile(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) { password = username.substring(ci + 1); username = username.substring(0, ci); } } final Credentials creds = (username == null) ? null : new Credentials (username, password); boolean retry; do { retry = false; if (connection == null) { connection = getConnection(host, port, secure); if (secure) { SSLSocketFactory factory = getSSLSocketFactory(); HostnameVerifier verifier = getHostnameVerifier(); if (factory != null) { connection.setSSLSocketFactory(factory); } connection.addHandshakeCompletedListener(this); // TODO verifier } } if (proxyHostname != null) { if (proxyPort < 0) { proxyPort = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } connection.setProxy(proxyHostname, proxyPort); } request = connection.newRequest(method, file); if (!keepAlive) { request.setHeader("Connection", "close"); } if (agent != null) { request.setHeader("User-Agent", agent); } request.getHeaders().putAll(requestHeaders); if (requestSink != null) { byte[] content = requestSink.toByteArray(); RequestBodyWriter writer = new ByteArrayRequestBodyWriter(content); request.setRequestBodyWriter(writer); } ByteArrayResponseBodyReader reader = new ByteArrayResponseBodyReader(); request.setResponseBodyReader(reader); if (creds != null) { request.setAuthenticator(new Authenticator() { public Credentials getCredentials(String realm, int attempts) { return (attempts < 2) ? creds : null; } }); } response = request.dispatch(); if (response.getCodeClass() == 3 && getInstanceFollowRedirects()) { // Follow redirect String location = response.getHeader("Location"); if (location != null) { String connectionUri = connection.getURI(); int start = connectionUri.length(); if (location.startsWith(connectionUri) && location.charAt(start) == '/') { file = location.substring(start); retry = true; } else if (location.startsWith("http:")) { connection.close(); connection = null; secure = false; start = 7; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTP_PORT; } file = location.substring(end); retry = true; } else if (location.startsWith("https:")) { connection.close(); connection = null; secure = true; start = 8; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTPS_PORT; } file = location.substring(end); retry = true; } else if (location.length() > 0) { // Malformed absolute URI, treat as file part of URI if (location.charAt(0) == '/') { // Absolute path file = location; } else { // Relative path int lsi = file.lastIndexOf('/'); file = (lsi == -1) ? "/" : file.substring(0, lsi + 1); file += location; } retry = true; } } } else { responseSink = new ByteArrayInputStream(reader.toByteArray ()); if (response.getCode() == 404) { errorSink = responseSink; throw new FileNotFoundException(url.toString()); } } } while (retry); connected = true; }
9,569
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } String file = url.getFile(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) { password = username.substring(ci + 1); username = username.substring(0, ci); } } final Credentials creds = (username == null) ? null : new Credentials (username, password); boolean retry; do { retry = false; if (connection == null) { connection = getConnection(host, port, secure); if (secure) { SSLSocketFactory factory = getSSLSocketFactory(); HostnameVerifier verifier = getHostnameVerifier(); if (factory != null) { connection.setSSLSocketFactory(factory); } connection.addHandshakeCompletedListener(this); // TODO verifier } } if (proxyHostname != null) { if (proxyPort < 0) { proxyPort = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } connection.setProxy(proxyHostname, proxyPort); } request = connection.newRequest(method, file); if (!keepAlive) { request.setHeader("Connection", "close"); } if (agent != null) { request.setHeader("User-Agent", agent); } request.getHeaders().putAll(requestHeaders); if (requestSink != null) { byte[] content = requestSink.toByteArray(); RequestBodyWriter writer = new ByteArrayRequestBodyWriter(content); request.setRequestBodyWriter(writer); } ByteArrayResponseBodyReader reader = new ByteArrayResponseBodyReader(); request.setResponseBodyReader(reader); if (creds != null) { request.setAuthenticator(new Authenticator() { public Credentials getCredentials(String realm, int attempts) { return (attempts < 2) ? creds : null; } }); } response = request.dispatch(); if (response.getCodeClass() == 3 && getInstanceFollowRedirects()) { // Follow redirect String location = response.getHeader("Location"); if (location != null) { String connectionUri = connection.getURI(); int start = connectionUri.length(); if (location.startsWith(connectionUri) && location.charAt(start) == '/') { file = location.substring(start); retry = true; } else if (location.startsWith("http:")) { connection.close(); connection = null; secure = false; start = 7; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTP_PORT; } file = location.substring(end); retry = true; } else if (location.startsWith("https:")) { connection.close(); connection = null; secure = true; start = 8; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTPS_PORT; } file = location.substring(end); retry = true; } else if (location.length() > 0) { // Malformed absolute URI, treat as file part of URI if (location.charAt(0) == '/') { // Absolute path file = location; } else { // Relative path int lsi = file.lastIndexOf('/'); file = (lsi == -1) ? "/" : file.substring(0, lsi + 1); file += location; } retry = true; } } } else { responseSink = new ByteArrayInputStream(reader.toByteArray ()); if (response.getCode() == 404) { errorSink = responseSink; throw new FileNotFoundException(url.toString()); } } } while (retry); connected = true; }
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } String file = url.getFile(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) { password = username.substring(ci + 1); username = username.substring(0, ci); } } final Credentials creds = (username == null) ? null : new Credentials (username, password); boolean retry; do { retry = false; if (connection == null) { connection = getConnection(host, port, secure); if (secure) { SSLSocketFactory factory = getSSLSocketFactory(); HostnameVerifier verifier = getHostnameVerifier(); if (factory != null) { connection.setSSLSocketFactory(factory); } connection.addHandshakeCompletedListener(this); // TODO verifier } } if (proxyHostname != null) { if (proxyPort < 0) { proxyPort = secure ? HTTPConnection.HTTPS_PORT : HTTPConnection.HTTP_PORT; } connection.setProxy(proxyHostname, proxyPort); } request = connection.newRequest(method, file); if (!keepAlive) { request.setHeader("Connection", "close"); } if (agent != null) { request.setHeader("User-Agent", agent); } request.getHeaders().putAll(requestHeaders); if (requestSink != null) { byte[] content = requestSink.toByteArray(); RequestBodyWriter writer = new ByteArrayRequestBodyWriter(content); request.setRequestBodyWriter(writer); } ByteArrayResponseBodyReader reader = new ByteArrayResponseBodyReader(); request.setResponseBodyReader(reader); if (creds != null) { request.setAuthenticator(new Authenticator() { public Credentials getCredentials(String realm, int attempts) { return (attempts < 2) ? creds : null; } }); } response = request.dispatch(); if (response.getCodeClass() == 3 && getInstanceFollowRedirects()) { // Follow redirect String location = response.getHeader("Location"); if (location != null) { String connectionUri = connection.getURI(); int start = connectionUri.length(); if (location.startsWith(connectionUri) && location.charAt(start) == '/') { file = location.substring(start); retry = true; } else if (location.startsWith("http:")) { connection.close(); connection = null; secure = false; start = 7; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTP_PORT; } file = location.substring(end); retry = true; } else if (location.startsWith("https:")) { connection.close(); connection = null; secure = true; start = 8; int end = location.indexOf('/', start); host = location.substring(start, end); int ci = host.lastIndexOf(':'); if (ci != -1) { port = Integer.parseInt(host.substring (ci + 1)); host = host.substring(0, ci); } else { port = HTTPConnection.HTTPS_PORT; } file = location.substring(end); retry = true; } else if (location.length() > 0) { // Malformed absolute URI, treat as file part of URI if (location.charAt(0) == '/') { // Absolute path file = location; } else { // Relative path int lsi = file.lastIndexOf('/'); file = (lsi == -1) ? "/" : file.substring(0, lsi + 1); file += location; } retry = true; } } } else { responseSink = response.getBody(); if (response.getCode() == 404) { errorSink = responseSink; throw new FileNotFoundException(url.toString()); } } } while (retry); connected = true; }
9,570
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { StringBuffer buf = new StringBuffer(secure ? "https://" : "http://"); buf.append(Thread.currentThread().hashCode()); buf.append('@'); buf.append(host); buf.append(':'); buf.append(port); String key = buf.toString(); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.get(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); // Good housekeeping if (connectionPool.size() == maxConnections) { // maxConnections must always be >= 1 Object lru = connectionPool.keySet().iterator().next(); connectionPool.remove(lru); } connectionPool.put(key, connection); } } } else { connection = new HTTPConnection(host, port, secure); } return connection; }
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { StringBuffer buf = new StringBuffer(secure ? "https://" : "http://"); buf.append(Thread.currentThread().hashCode()); buf.append('@'); buf.append(host); buf.append(':'); buf.append(port); String key = buf.toString(); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.get(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); // Good housekeeping if (connectionPool.size() == maxConnections) { // maxConnections must always be >= 1 Object lru = connectionPool.keySet().iterator().next(); connectionPool.remove(lru); } connectionPool.put(key, connection); } } } else { connection = new HTTPConnection(host, port, secure); } return connection; }
9,571
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { StringBuffer buf = new StringBuffer(secure ? "https://" : "http://"); buf.append(Thread.currentThread().hashCode()); buf.append('@'); buf.append(host); buf.append(':'); buf.append(port); String key = buf.toString(); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.get(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); // Good housekeeping if (connectionPool.size() == maxConnections) { // maxConnections must always be >= 1 Object lru = connectionPool.keySet().iterator().next(); connectionPool.remove(lru); } connectionPool.put(key, connection); } } } else { connection = new HTTPConnection(host, port, secure); } return connection; }
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { StringBuffer buf = new StringBuffer(secure ? "https://" : "http://"); buf.append(Thread.currentThread().hashCode()); buf.append('@'); buf.append(host); buf.append(':'); buf.append(port); String key = buf.toString(); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.remove(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); // Good housekeeping if (connectionPool.size() == maxConnections) { // maxConnections must always be >= 1 Object lru = connectionPool.keySet().iterator().next(); connectionPool.remove(lru); } connectionPool.put(key, connection); } } } else { connection = new HTTPConnection(host, port, secure); } return connection; }
9,572
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { StringBuffer buf = new StringBuffer(secure ? "https://" : "http://"); buf.append(Thread.currentThread().hashCode()); buf.append('@'); buf.append(host); buf.append(':'); buf.append(port); String key = buf.toString(); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.get(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); // Good housekeeping if (connectionPool.size() == maxConnections) { // maxConnections must always be >= 1 Object lru = connectionPool.keySet().iterator().next(); connectionPool.remove(lru); } connectionPool.put(key, connection); } } } else { connection = new HTTPConnection(host, port, secure); } return connection; }
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { StringBuffer buf = new StringBuffer(secure ? "https://" : "http://"); buf.append(Thread.currentThread().hashCode()); buf.append('@'); buf.append(host); buf.append(':'); buf.append(port); String key = buf.toString(); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.get(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); // Good housekeeping if (connectionPool.size() == maxConnections) { // maxConnections must always be >= 1 Object lru = connectionPool.keySet().iterator().next(); connectionPool.remove(lru); } connectionPool.put(key, connection); } } } else { connection = new HTTPConnection(host, port, secure); } return connection; }
9,573
public Map getHeaderFields() { if (!connected) { try { connect(); } catch (IOException e) { return null; } } Map headers = response.getHeaders(); Map ret = new LinkedHashMap(); ret.put("", Collections.singletonList(getStatusLine(response))); for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String key = (String) entry.getKey(); String value = (String) entry.getValue(); ret.put(key, Collections.singletonList(value)); } return ret; }
public Map getHeaderFields() { if (!connected) { try { connect(); } catch (IOException e) { return null; } } Map headers = response.getHeaders(); Map ret = new LinkedHashMap(); ret.put("", Collections.singletonList(getStatusLine(response))); for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String key = (String) entry.getKey(); String value = (String) entry.getValue(); ret.put(key, Collections.singletonList(value)); } return ret; }
9,574
public Map getHeaderFields() { if (!connected) { try { connect(); } catch (IOException e) { return null; } } Map headers = response.getHeaders(); Map ret = new LinkedHashMap(); ret.put("", Collections.singletonList(getStatusLine(response))); for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String key = (String) entry.getKey(); String value = (String) entry.getValue(); ret.put(key, Collections.singletonList(value)); } return ret; }
public Map getHeaderFields() { if (!connected) { try { connect(); } catch (IOException e) { return null; } } Map headers = response.getHeaders(); Map ret = new LinkedHashMap(); ret.put("", Collections.singletonList(getStatusLine(response))); for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String key = (String) entry.getKey(); String value = (String) entry.getValue(); ret.put(key, Collections.singletonList(value)); } return Collections.unmodifiableMap(ret); }
9,575
public int getCodeClass() { return codeClass; }
public int getCodeClass() { return code / 100; }
9,576
public void clearSelection();
void clearSelection();
9,577
public int write(ByteBuffer src) throws IOException;
int write(ByteBuffer src) throws IOException;
9,578
public Component getComponent();
Component getComponent();
9,579
public void setValue(Object value, boolean selected);
void setValue(Object value, boolean selected);
9,580
public MouseHandler(Device fbDevice, Dimension screenSize) { HardwareCursorAPI hwCursor = null; Device pointerDevice = null; PointerAPI pointerAPI = null; try { hwCursor = (HardwareCursorAPI) fbDevice.getAPI(HardwareCursorAPI.class); } catch (ApiNotFoundException ex) { log.info("No hardware-cursor found on device " + fbDevice.getId()); } if (hwCursor != null) { try { final Collection pointers = DeviceUtils.getDevicesByAPI(PointerAPI.class); if (!pointers.isEmpty()) { pointerDevice = (Device) pointers.iterator().next(); pointerAPI = (PointerAPI) pointerDevice.getAPI(PointerAPI.class); } } catch (ApiNotFoundException ex) { log.error("Strange...", ex); } } this.hwCursor = hwCursor; this.pointerAPI = pointerAPI; this.screenSize = screenSize; if (pointerAPI != null) { log.info("Using PointerDevice " + pointerDevice.getId()); hwCursor.setCursorImage(JNodeCursors.ARROW); hwCursor.setCursorVisible(true); hwCursor.setCursorPosition(x, y); pointerAPI.addPointerListener(this); } }
public MouseHandler(Device fbDevice, Dimension screenSize) { HardwareCursorAPI hwCursor = null; Device pointerDevice = null; PointerAPI pointerAPI = null; try { hwCursor = (HardwareCursorAPI) fbDevice.getAPI(HardwareCursorAPI.class); } catch (ApiNotFoundException ex) { log.info("No hardware-cursor found on device " + fbDevice.getId()); } if (hwCursor != null) { try { final Collection pointers = DeviceUtils.getDevicesByAPI(PointerAPI.class); if (!pointers.isEmpty()) { pointerDevice = (Device) pointers.iterator().next(); pointerAPI = (PointerAPI) pointerDevice.getAPI(PointerAPI.class); } } catch (ApiNotFoundException ex) { log.error("Strange...", ex); } } this.hwCursor = hwCursor; this.pointerAPI = pointerAPI; this.screenSize = screenSize; if (pointerAPI != null) { log.debug("Using PointerDevice " + pointerDevice.getId()); hwCursor.setCursorImage(JNodeCursors.ARROW); hwCursor.setCursorVisible(true); hwCursor.setCursorPosition(x, y); pointerAPI.addPointerListener(this); } }
9,581
public abstract Image createImage(byte[] data, int offset, int len);
public abstract Image createImage(String filename);
9,582
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || ! certs.containsAll(cs.certs))) return false; // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
9,583
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
9,584
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
9,585
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
public boolean implies(CodeSource cs) { if (cs == null) return false; // First check the certificate list. if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } // Next check the location. if (location == null) { return true; } if (cs.location == null) { return false; } if (!location.getProtocol().equals(cs.location.getProtocol())) { return false; } final int ourPort = location.getPort(); if ((ourPort != -1) && (ourPort != cs.location.getPort())) { return false; } final String ourRef = location.getRef(); if ((ourRef != null) && !ourRef.equals(cs.location.getRef())) { return false; } final String ourHost = location.getHost(); if (ourHost != null) { final String their_host = cs.location.getHost(); if (their_host == null) { return false; } final SocketPermission our_sockperm = new SocketPermission(ourHost, "accept"); final SocketPermission their_sockperm = new SocketPermission( their_host, "accept"); if (!our_sockperm.implies(their_sockperm)) { return false; } } String our_file = location.getFile(); if (our_file != null) { if (!our_file.endsWith("/")) { our_file += "/"; } final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) return false; } return true; }
9,586
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); }
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); }
9,587
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); }
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); }
9,588
public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return handler.hashCode(this); }
public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return ph.hashCode(this); }
9,589
public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = p.getActions(); if (! ourlist.startsWith(theirlist)) return false; // Now check ports int ourfirstport = 0; // Now check ports int ourlastport = 0; // Now check ports int theirfirstport = 0; // Now check ports int theirlastport = 0; // Get ours if (hostport.indexOf(":") == -1) { ourfirstport = 0; ourlastport = 65535; } else { // FIXME: Needs bulletproofing. // This will dump if hostport if all sorts of bad data was passed to // the constructor String range = hostport.substring(hostport.indexOf(":") + 1); if (range.startsWith("-")) ourfirstport = 0; else if (range.indexOf("-") == -1) ourfirstport = Integer.parseInt(range); else ourfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) ourlastport = 65535; else if (range.indexOf("-") == -1) ourlastport = Integer.parseInt(range); else ourlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Get theirs if (p.hostport.indexOf(":") == -1) { theirfirstport = 0; ourlastport = 65535; } else { // This will dump if hostport if all sorts of bad data was passed to // the constructor// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Wrong usage of hostport and not p.hostport in call to indexOf String range = p.hostport.substring(p.hostport.indexOf(":") + 1);// @classpath-bugfix-end if (range.startsWith("-")) theirfirstport = 0; else if (range.indexOf("-") == -1) theirfirstport = Integer.parseInt(range); else theirfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) theirlastport = 65535; else if (range.indexOf("-") == -1) theirlastport = Integer.parseInt(range); else theirlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Now check them if ((theirfirstport < ourfirstport) || (theirlastport > ourlastport)) return false; // Finally we can check the hosts String ourhost; // Finally we can check the hosts String theirhost; // Get ours if (hostport.indexOf(":") == -1) ourhost = hostport; else ourhost = hostport.substring(0, hostport.indexOf(":")); // Get theirs if (p.hostport.indexOf(":") == -1) theirhost = p.hostport; else theirhost = p.hostport.substring(0, p.hostport.indexOf(":")); // Are they equal? if (ourhost.equals(theirhost)) return true; // Try the canonical names String ourcanonical = null; // Try the canonical names String theircanonical = null; try { ourcanonical = InetAddress.getByName(ourhost).getHostName(); theircanonical = InetAddress.getByName(theirhost).getHostName(); } catch (UnknownHostException e) { // Who didn't resolve? Just assume current address is canonical enough // Is this ok to do? if (ourcanonical == null) ourcanonical = ourhost; if (theircanonical == null) theircanonical = theirhost; } if (ourcanonical.equals(theircanonical)) return true; // Well, last chance. Try for a wildcard if (ourhost.indexOf("*.") != -1) { String wild_domain = ourhost.substring(ourhost.indexOf("*" + 1)); if (theircanonical.endsWith(wild_domain)) return true; }// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Missed wildcard as host address if (ourhost.equals("*")) return true;// @classpath-bugfix-end // Didn't make it return false; }
public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = p.getActions(); if (! ourlist.startsWith(theirlist)) return false; // Now check ports int ourfirstport = 0; // Now check ports int ourlastport = 0; // Now check ports int theirfirstport = 0; // Now check ports int theirlastport = 0; // Get ours if (hostport.indexOf(":") == -1) { ourfirstport = 0; ourlastport = 65535; } else { // FIXME: Needs bulletproofing. // This will dump if hostport if all sorts of bad data was passed to // the constructor String range = hostport.substring(hostport.indexOf(":") + 1); if (range.startsWith("-")) ourfirstport = 0; else if (range.indexOf("-") == -1) ourfirstport = Integer.parseInt(range); else ourfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) ourlastport = 65535; else if (range.indexOf("-") == -1) ourlastport = Integer.parseInt(range); else ourlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Get theirs if (p.hostport.indexOf(":") == -1) { theirfirstport = 0; ourlastport = 65535; } else { // This will dump if hostport if all sorts of bad data was passed to // the constructor// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Wrong usage of hostport and not p.hostport in call to indexOf String range = p.hostport.substring(p.hostport.indexOf(":") + 1);// @classpath-bugfix-end if (range.startsWith("-")) theirfirstport = 0; else if (range.indexOf("-") == -1) theirfirstport = Integer.parseInt(range); else theirfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) theirlastport = 65535; else if (range.indexOf("-") == -1) theirlastport = Integer.parseInt(range); else theirlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Now check them if ((theirfirstport < ourfirstport) || (theirlastport > ourlastport)) return false; // Finally we can check the hosts String ourhost; // Finally we can check the hosts String theirhost; // Get ours if (hostport.indexOf(":") == -1) ourhost = hostport; else ourhost = hostport.substring(0, hostport.indexOf(":")); // Get theirs if (p.hostport.indexOf(":") == -1) theirhost = p.hostport; else theirhost = p.hostport.substring(0, p.hostport.indexOf(":")); // Are they equal? if (ourhost.equals(theirhost)) return true; // Try the canonical names String ourcanonical = null; // Try the canonical names String theircanonical = null; try { ourcanonical = InetAddress.getByName(ourhost).getHostName(); theircanonical = InetAddress.getByName(theirhost).getHostName(); } catch (UnknownHostException e) { // Who didn't resolve? Just assume current address is canonical enough // Is this ok to do? if (ourcanonical == null) ourcanonical = ourhost; if (theircanonical == null) theircanonical = theirhost; } if (ourcanonical.equals(theircanonical)) return true; // Well, last chance. Try for a wildcard if (ourhost.indexOf("*.") != -1) { String wild_domain = ourhost.substring(ourhost.indexOf("*" + 1)); if (theircanonical.endsWith(wild_domain)) return true; }// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Missed wildcard as host address if (ourhost.equals("*")) return true;// @classpath-bugfix-end // Didn't make it return false; }
9,590
public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = p.getActions(); if (! ourlist.startsWith(theirlist)) return false; // Now check ports int ourfirstport = 0; // Now check ports int ourlastport = 0; // Now check ports int theirfirstport = 0; // Now check ports int theirlastport = 0; // Get ours if (hostport.indexOf(":") == -1) { ourfirstport = 0; ourlastport = 65535; } else { // FIXME: Needs bulletproofing. // This will dump if hostport if all sorts of bad data was passed to // the constructor String range = hostport.substring(hostport.indexOf(":") + 1); if (range.startsWith("-")) ourfirstport = 0; else if (range.indexOf("-") == -1) ourfirstport = Integer.parseInt(range); else ourfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) ourlastport = 65535; else if (range.indexOf("-") == -1) ourlastport = Integer.parseInt(range); else ourlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Get theirs if (p.hostport.indexOf(":") == -1) { theirfirstport = 0; ourlastport = 65535; } else { // This will dump if hostport if all sorts of bad data was passed to // the constructor// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Wrong usage of hostport and not p.hostport in call to indexOf String range = p.hostport.substring(p.hostport.indexOf(":") + 1);// @classpath-bugfix-end if (range.startsWith("-")) theirfirstport = 0; else if (range.indexOf("-") == -1) theirfirstport = Integer.parseInt(range); else theirfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) theirlastport = 65535; else if (range.indexOf("-") == -1) theirlastport = Integer.parseInt(range); else theirlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Now check them if ((theirfirstport < ourfirstport) || (theirlastport > ourlastport)) return false; // Finally we can check the hosts String ourhost; // Finally we can check the hosts String theirhost; // Get ours if (hostport.indexOf(":") == -1) ourhost = hostport; else ourhost = hostport.substring(0, hostport.indexOf(":")); // Get theirs if (p.hostport.indexOf(":") == -1) theirhost = p.hostport; else theirhost = p.hostport.substring(0, p.hostport.indexOf(":")); // Are they equal? if (ourhost.equals(theirhost)) return true; // Try the canonical names String ourcanonical = null; // Try the canonical names String theircanonical = null; try { ourcanonical = InetAddress.getByName(ourhost).getHostName(); theircanonical = InetAddress.getByName(theirhost).getHostName(); } catch (UnknownHostException e) { // Who didn't resolve? Just assume current address is canonical enough // Is this ok to do? if (ourcanonical == null) ourcanonical = ourhost; if (theircanonical == null) theircanonical = theirhost; } if (ourcanonical.equals(theircanonical)) return true; // Well, last chance. Try for a wildcard if (ourhost.indexOf("*.") != -1) { String wild_domain = ourhost.substring(ourhost.indexOf("*" + 1)); if (theircanonical.endsWith(wild_domain)) return true; }// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Missed wildcard as host address if (ourhost.equals("*")) return true;// @classpath-bugfix-end // Didn't make it return false; }
public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = p.getActions(); if (! ourlist.startsWith(theirlist)) return false; // Now check ports if (hostport.equals(empty) && p.hostport.equals(empty)) return true; // Now check ports int ourlastport = 0; // Now check ports int theirfirstport = 0; // Now check ports int theirlastport = 0; // Get ours if (hostport.indexOf(":") == -1) { ourfirstport = 0; ourlastport = 65535; } else { // FIXME: Needs bulletproofing. // This will dump if hostport if all sorts of bad data was passed to // the constructor String range = hostport.substring(hostport.indexOf(":") + 1); if (range.startsWith("-")) ourfirstport = 0; else if (range.indexOf("-") == -1) ourfirstport = Integer.parseInt(range); else ourfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) ourlastport = 65535; else if (range.indexOf("-") == -1) ourlastport = Integer.parseInt(range); else ourlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Get theirs if (p.hostport.indexOf(":") == -1) { theirfirstport = 0; ourlastport = 65535; } else { // This will dump if hostport if all sorts of bad data was passed to // the constructor// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Wrong usage of hostport and not p.hostport in call to indexOf String range = p.hostport.substring(p.hostport.indexOf(":") + 1);// @classpath-bugfix-end if (range.startsWith("-")) theirfirstport = 0; else if (range.indexOf("-") == -1) theirfirstport = Integer.parseInt(range); else theirfirstport = Integer.parseInt(range.substring(0, range.indexOf("-"))); if (range.endsWith("-")) theirlastport = 65535; else if (range.indexOf("-") == -1) theirlastport = Integer.parseInt(range); else theirlastport = Integer.parseInt(range.substring(range.indexOf("-") + 1, range.length())); } // Now check them if ((theirfirstport < ourfirstport) || (theirlastport > ourlastport)) return false; // Finally we can check the hosts String ourhost; // Finally we can check the hosts String theirhost; // Get ours if (hostport.indexOf(":") == -1) ourhost = hostport; else ourhost = hostport.substring(0, hostport.indexOf(":")); // Get theirs if (p.hostport.indexOf(":") == -1) theirhost = p.hostport; else theirhost = p.hostport.substring(0, p.hostport.indexOf(":")); // Are they equal? if (ourhost.equals(theirhost)) return true; // Try the canonical names String ourcanonical = null; // Try the canonical names String theircanonical = null; try { ourcanonical = InetAddress.getByName(ourhost).getHostName(); theircanonical = InetAddress.getByName(theirhost).getHostName(); } catch (UnknownHostException e) { // Who didn't resolve? Just assume current address is canonical enough // Is this ok to do? if (ourcanonical == null) ourcanonical = ourhost; if (theircanonical == null) theircanonical = theirhost; } if (ourcanonical.equals(theircanonical)) return true; // Well, last chance. Try for a wildcard if (ourhost.indexOf("*.") != -1) { String wild_domain = ourhost.substring(ourhost.indexOf("*" + 1)); if (theircanonical.endsWith(wild_domain)) return true; }// @classpath-bugfix 18/10/2005 Martin Husted Hartvig (hagar@jnode.org) :// Missed wildcard as host address if (ourhost.equals("*")) return true;// @classpath-bugfix-end // Didn't make it return false; }
9,591