rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public NotBoundException(String s) | public NotBoundException() | public NotBoundException(String s) { super(s); } |
super(s); | public NotBoundException(String s) { super(s); } | |
className = "gnu.xml.aelfred2.SAXDriver"; | 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. ... | |
public Throwable getCause() { return containedException; } | public Throwable getCause() { return cause; } | public Throwable getCause() { return containedException; } |
public abstract Templates newTemplates (Source stylesheet) throws TransformerConfigurationException; | public abstract Templates newTemplates(Source source) throws TransformerConfigurationException; | public abstract Templates newTemplates (Source stylesheet) throws TransformerConfigurationException; |
public TransformerConfigurationException(String msg) { super(msg); } | public TransformerConfigurationException() { this(null, null, null); } | public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException() |
public abstract Transformer newTransformer() | public abstract Transformer newTransformer(Source source) | public abstract Transformer newTransformer() throws TransformerConfigurationException; |
public abstract TransformerHandler newTransformerHandler() | public abstract TransformerHandler newTransformerHandler(Source src) | public abstract TransformerHandler newTransformerHandler() throws TransformerConfigurationException; |
public abstract XMLFilter newXMLFilter (Source stylesheet) | public abstract XMLFilter newXMLFilter(Source src) | public abstract XMLFilter newXMLFilter (Source stylesheet) throws TransformerConfigurationException; |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return QueuedJobCount.class; } |
public final String getName() | public String getName() | public final String getName() { return "queued-job-count"; } |
public final void set(int year, int month, int date, int hour, int minute) | public void set(int field, int value) | 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; } |
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; | if (isTimeSet) for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; isTimeSet = false; fields[field] = value; isSet[field] = true; switch (field) { case MONTH: isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; break; case DAY_OF_MONTH: isSet[YEAR] = true; isSet[MONTH] = true; isSet[WEEK_OF_MONTH] = tru... | 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; } |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); splitPane.setBackground(defaults.getColor("SplitPane.background")); splitPane.setBorder(defaults.getBorder("SplitPane.border")); splitPane.setDividerSize(defaults.getInt("SplitPane.dividerSize")); | splitPane.setDividerSize(UIManager.getInt("SplitPane.dividerSize")); | protected void installDefaults() { divider = createDefaultDivider(); resetLayoutManager(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider UIDefaults defaults = UIManager.ge... |
manager = createFocusManager(); | manager = new DefaultKeyboardFocusManager(); | public static void setCurrentKeyboardFocusManager (KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission (new AWTPermission ("replaceKeyboardFocusManager")); ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); KeyboardFocusM... |
public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers) | public static AWTKeyStroke getAWTKeyStroke(char keyChar) | public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), false); } |
return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), false); | return getAWTKeyStroke(keyChar, KeyEvent.VK_UNDEFINED, 0, false); | public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), false); } |
public FocusEvent(Component source, int id, boolean temporary) | public FocusEvent(Component source, int id, boolean temporary, Component opposite) | public FocusEvent(Component source, int id, boolean temporary) { this(source, id, temporary, null); } |
this(source, id, temporary, null); | super(source, id); this.temporary = temporary; this.opposite = opposite; | public FocusEvent(Component source, int id, boolean temporary) { this(source, id, temporary, null); } |
public String toString() | public String toString(boolean objectInfo) | public String toString() { return toString(false); } |
return toString(false); | 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 (objectI... | public String toString() { return toString(false); } |
public void addCertificate(java.security.Certificate certificate) | public void addCertificate(Certificate certificate) | 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... |
public KeyManagementException(String msg) | public KeyManagementException() | public KeyManagementException(String msg) { super(msg); } |
super(msg); | public KeyManagementException(String msg) { super(msg); } | |
public ZipEntry(String name) { if (name == null) throw new NullPointerException(); | public ZipEntry(String name) { int length = name.length(); if (length > 65535) throw new IllegalArgumentException("name length is " + length); | public ZipEntry(String name) { if (name == null) throw new NullPointerException(); this.name = name; } |
public int getColumnCount(); | int getColumnCount(); | public int getColumnCount(); |
public TableColumn getColumn(int columnIndex); | TableColumn getColumn(int columnIndex); | public TableColumn getColumn(int columnIndex); |
public Component getTableCellRendererComponent(JTable table, | Component getTableCellRendererComponent(JTable table, | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column); |
public int getTotalColumnWidth(); | int getTotalColumnWidth(); | public int getTotalColumnWidth(); |
public SocketException(String message) | public SocketException() | public SocketException(String message) { super(message); } |
super(message); | public SocketException(String message) { super(message); } | |
/* | 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... | |
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... | |
return null; | 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... | |
private static final ResourceBundle tryBundle(String localizedName, Locale locale, | private static ResourceBundle tryBundle(String localizedName, Locale locale, | private static final ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, ... |
private static final ResourceBundle tryLocalBundle(String baseName, Locale locale, | private static ResourceBundle tryLocalBundle(String baseName, Locale locale, | private static final ResourceBundle tryLocalBundle(String baseName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { ... |
public Locale(String language) | public Locale(String language, String country, String variant) | public Locale(String language) { this(language, "", ""); } |
this(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(); | public Locale(String language) { this(language, "", ""); } |
return null; | if (value!=null) super.setText(value.toString()); return this; | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { return null; } |
public void setSelected(boolean b) { getModel().setSelected(b); } | public void setSelected(boolean s) { getModel().setSelected(s); } | public void setSelected(boolean b) { getModel().setSelected(b); } |
public DefaultTableModel(int numRows, int numColumns) { int columnIndex; Vector defaultNames; defaultNames = new Vector(); for (columnIndex = 0; columnIndex < numColumns; columnIndex++) { defaultNames.addElement(super.getColumnName(columnIndex)); } | public DefaultTableModel() { this(0, 0); | 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//... |
public ListSelectionModel getSelectionModel(); | ListSelectionModel getSelectionModel(); | public ListSelectionModel getSelectionModel(); |
public String getColumnName(int columnIndex); | String getColumnName(int columnIndex); | public String getColumnName(int columnIndex); |
public void addColumn(TableColumn column); | void addColumn(TableColumn column); | public void addColumn(TableColumn column); |
public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); | public TableColumn() { this(0, 75, null, null); | public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); } // TableColumn() |
public void removeColumn(TableColumn column); | void removeColumn(TableColumn column); | public void removeColumn(TableColumn column); |
public Class getColumnClass(int columnIndex); | Class getColumnClass(int columnIndex); | public Class getColumnClass(int columnIndex); |
public int getColumnMargin(); | int getColumnMargin(); | public int getColumnMargin(); |
public int getColumnIndex(Object columnIdentifier); | int getColumnIndex(Object columnIdentifier); | public int getColumnIndex(Object columnIdentifier); |
public boolean getColumnSelectionAllowed(); | boolean getColumnSelectionAllowed(); | public boolean getColumnSelectionAllowed(); |
super(); this.noFocusBorder = new EmptyBorder(0, 0, 0, 0); | public DefaultTableCellRenderer() { } | |
public int getRowCount(); | int getRowCount(); | public int getRowCount(); |
public Object getValueAt(int rowIndex, int columnIndex); | Object getValueAt(int rowIndex, int columnIndex); | public Object getValueAt(int rowIndex, int columnIndex); |
public void addColumnModelListener(TableColumnModelListener listener); | void addColumnModelListener(TableColumnModelListener listener); | public void addColumnModelListener(TableColumnModelListener listener); |
public boolean isCellEditable(int rowIndex, int columnIndex); | boolean isCellEditable(int rowIndex, int columnIndex); | public boolean isCellEditable(int rowIndex, int columnIndex); |
public void moveColumn(int columnIndex, int newIndex); | void moveColumn(int columnIndex, int newIndex); | public void moveColumn(int columnIndex, int newIndex); |
public void addCellEditorListener(CellEditorListener listener); | void addCellEditorListener(CellEditorListener listener); | public void addCellEditorListener(CellEditorListener listener); |
public void removeColumnModelListener(TableColumnModelListener listener); | void removeColumnModelListener(TableColumnModelListener listener); | public void removeColumnModelListener(TableColumnModelListener listener); |
public void setColumnSelectionAllowed(boolean value); | void setColumnSelectionAllowed(boolean value); | public void setColumnSelectionAllowed(boolean value); |
public void setColumnMargin(int margin); | void setColumnMargin(int margin); | public void setColumnMargin(int margin); |
public void removeTableModelListener(TableModelListener listener); | void removeTableModelListener(TableModelListener listener); | public void removeTableModelListener(TableModelListener listener); |
public void addTableModelListener(TableModelListener listener); | void addTableModelListener(TableModelListener listener); | public void addTableModelListener(TableModelListener listener); |
public void setValueAt(Object aValue, int rowIndex, int columnIndex); | void setValueAt(Object aValue, int rowIndex, int columnIndex); | public void setValueAt(Object aValue, int rowIndex, int columnIndex); |
public MultipleComponentProfileHolder(TaggedComponent[] initialValue) | public MultipleComponentProfileHolder() | public MultipleComponentProfileHolder(TaggedComponent[] initialValue) { value = initialValue; } |
value = initialValue; | public MultipleComponentProfileHolder(TaggedComponent[] initialValue) { value = initialValue; } | |
optionPane.setOpaque(true); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); optionPane.setFont(defaults.getFont("OptionPane.font")); optionPane.setBackground(defaults.getColor("OptionPane.background")); optionPane.setForeground(defaults.getColor("OptionPane.foreground")); optionPane.s... | |
Box(int a) { setLayout(new BoxLayout(this, a)); } | public Box(int a) { setLayout(new BoxLayout(this, a)); } | Box(int a) { setLayout(new BoxLayout(this, a)); } |
public static Border createEmptyBorder( int top, int left, int bottom, int right) { return null; } | public static Border createEmptyBorder () { return new EmptyBorder (0, 0, 0, 0); } | 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... |
public JComboBox(Object[] value0) { | public JComboBox(ComboBoxModel value0) { | public JComboBox(Object[] value0) { // TODO } // JComboBox() |
ByteArrayResponseBodyReader reader = new ByteArrayResponseBodyReader(); request.setResponseBodyReader(reader); | 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 : ... | |
responseSink = new ByteArrayInputStream(reader.toByteArray ()); | responseSink = response.getBody(); | 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 : ... |
StringBuffer buf = new StringBuffer(secure ? "https: buf.append(Thread.currentThread().hashCode()); buf.append('@'); buf.append(host); buf.append(':'); buf.append(port); String key = buf.toString(); | Object key = HTTPConnection.getPoolKey(host, port, secure); | 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.appe... |
connection = (HTTPConnection) connectionPool.get(key); | connection = (HTTPConnection) connectionPool.remove(key); | 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.appe... |
if (connectionPool.size() == maxConnections) { Object lru = connectionPool.keySet().iterator().next(); connectionPool.remove(lru); } connectionPool.put(key, connection); | connection.setPool(connectionPool); | 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.appe... |
Map headers = response.getHeaders(); Map ret = new LinkedHashMap(); ret.put("", Collections.singletonList(getStatusLine(response))); | Headers headers = response.getHeaders(); LinkedHashMap ret = new LinkedHashMap(); ret.put(null, Collections.singletonList(getStatusLine(response))); | public Map getHeaderFields() { if (!connected) { try { connect(); } catch (IOException e) { return null; } } Map headers = response.getHeaders(); Map ret = new LinkedHashMap(); ret.put("", Collections.singletonList(getStatu... |
return ret; | return Collections.unmodifiableMap(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(getStatu... |
return codeClass; | return code / 100; | public int getCodeClass() { return codeClass; } |
public void clearSelection(); | void clearSelection(); | public void clearSelection(); |
public int write(ByteBuffer src) throws IOException; | int write(ByteBuffer src) throws IOException; | public int write(ByteBuffer src) throws IOException; |
public Component getComponent(); | Component getComponent(); | public Component getComponent(); |
public void setValue(Object value, boolean selected); | void setValue(Object value, boolean selected); | public void setValue(Object value, boolean selected); |
log.info("Using PointerDevice " + pointerDevice.getId()); | log.debug("Using PointerDevice " + pointerDevice.getId()); | 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 de... |
public abstract Image createImage(byte[] data, int offset, int len); | public abstract Image createImage(String filename); | public abstract Image createImage(byte[] data, int offset, int len); |
if (certs != null && (cs.certs == null || !certs.containsAll(cs.certs))) { return false; } | if (certs != null && (cs.certs == null || ! certs.containsAll(cs.certs))) return false; | 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.lo... |
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 (location == null) return true; if (cs.location == null || ! location.getProtocol().equals(cs.location.getProtocol()) || (location.getPort() != -1 && location.getPort() != cs.location.getPort()) || (location.getRef() != null && ! location.getRef().equals(cs.location.getRef()))) return false; if (location.getHost() !... | 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.lo... |
if (our_file != null) { if (!our_file.endsWith("/")) { | if (our_file != null) { if (! our_file.endsWith("/")) | 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.lo... |
} final String their_file = cs.location.getFile(); if (their_file == null || !their_file.startsWith(our_file)) | String their_file = cs.location.getFile(); if (their_file == null || ! their_file.startsWith(our_file)) | 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.lo... |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; | public boolean equals(Object obj) { if (! (obj instanceof URL)) return false; | public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); } |
URL uObj = (URL) obj; return handler.equals(this, uObj); | return ph.equals(this, (URL) obj); | public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL) obj; return handler.equals(this, uObj); } |
return handler.hashCode(this); | return ph.hashCode(this); | public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return handler.hashCode(this); } |
if (! ourlist.startsWith(theirlist)) return false; | if (ourlist.indexOf(theirlist) == -1) 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 = ... |
int ourfirstport = 0; | if (hostport.equals(empty) && p.hostport.equals(empty)) return true; | 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 = ... |
int ourlastport = 0; | int ourfirstport = 0; | 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 = ... |
int theirfirstport = 0; | int ourlastport = 0; | 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 = ... |
int theirlastport = 0; | int theirfirstport = 0; | 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 = ... |
if (hostport.indexOf(":") == -1) | int theirlastport = 0; String ourhost; String theirhost; String range; int portsIndex; int portDelimitorIndex; portsIndex = hostport.indexOf(ports); if (portsIndex == -1) | 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 = ... |
ourfirstport = 0; ourlastport = 65535; | ourlastport = 65535; ourhost = hostport; | 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 = ... |
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("-"))); | range = hostport.substring(portsIndex + 1); portDelimitorIndex = range.indexOf(portDelimitor); | 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 = ... |
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())); | if (portDelimitorIndex == 0) { ourfirstport = 0; } else if (portDelimitorIndex == -1) { ourfirstport = Integer.parseInt(range); ourlastport = ourfirstport; } else ourfirstport = Integer.parseInt(range.substring(0, portDelimitorIndex)); if (range.endsWith(portDelimitor)) ourlastport = 65535; else ourlastport = Integer... | 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 = ... |
if (p.hostport.indexOf(":") == -1) | portsIndex = p.hostport.indexOf(ports); if (portsIndex == -1) | 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 = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.