rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public ValidationConsumer (EventConsumer next) | public ValidationConsumer () | public ValidationConsumer (EventConsumer next) { super (next); setContentHandler (this); setDTDHandler (this); try { setProperty (DECL_HANDLER, this); } catch (Exception e) { /* "can't happen" */ } try { setProperty (LEXICAL_HANDLER, this); } catch (Exception e) { /* "can't happen" */ } } |
super (next); setContentHandler (this); setDTDHandler (this); try { setProperty (DECL_HANDLER, this); } catch (Exception e) { } try { setProperty (LEXICAL_HANDLER, this); } catch (Exception e) { } | this (null); | public ValidationConsumer (EventConsumer next) { super (next); setContentHandler (this); setDTDHandler (this); try { setProperty (DECL_HANDLER, this); } catch (Exception e) { /* "can't happen" */ } try { setProperty (LEXICAL_HANDLER, this); } catch (Exception e) { /* "can't happen" */ } } |
return symbols; | return (DecimalFormatSymbols) symbols.clone(); | public DecimalFormatSymbols getDecimalFormatSymbols () { return symbols; } |
symbols = newSymbols; | symbols = (DecimalFormatSymbols) newSymbols.clone(); | public void setDecimalFormatSymbols (DecimalFormatSymbols newSymbols) { symbols = newSymbols; } |
final ParsedArguments cmdLine = HELP_INFO.parse(args); final File entry = ARG_DIR.getFile(cmdLine); boolean deleteOk=false; if (!entry.exists()) { System.err.println(entry + " does not exist"); } if(entry.isDirectory()){ final File[] subFile=entry.listFiles(); for(int i=0;i<subFile.length;i++){ final String name=subF... | new DeleteCommand().execute(new CommandLine(args), System.in, System.out, System.err); | public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File entry = ARG_DIR.getFile(cmdLine); boolean deleteOk=false; if (!entry.exists()) { System.err.println(entry + " does not exist"); } // for this time, delete only empty directory (wait ... |
if(object == null || list.contains(object)) | public void setSelectedItem(Object object) { selectedItem = object; if(object == null || list.contains(object)) fireContentsChanged(this, -1, -1); } | |
protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { | protected void fireIntervalAdded (Object source, int startIndex, int endIndex) { ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; | protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); // Get Listeners li... |
ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; | event = new ListDataEvent (source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); | protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); // Get Listeners li... |
event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); | listeners = getListDataListeners (); | protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); // Get Listeners li... |
listeners = listenerList.getListeners(ListDataListener.class); for (index = 0; index < listeners.length; index++) { listener = (ListDataListener) listeners[index]; listener.intervalAdded(event); } } | for (index = 0; index < listeners.length; index++) { listener = listeners [index]; listener.intervalAdded (event); } } | protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, startIndex, endIndex); // Get Listeners li... |
protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { | protected void fireIntervalRemoved (Object source, int startIndex, int endIndex) { ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; | protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); // Get Listener... |
ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; | event = new ListDataEvent (source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); | protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); // Get Listener... |
event = new ListDataEvent(source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); | listeners = getListDataListeners (); | protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); // Get Listener... |
listeners = listenerList.getListeners(ListDataListener.class); for (index = 0; index < listeners.length; index++) { listener = (ListDataListener) listeners[index]; listener.intervalRemoved(event); } } | for (index = 0; index < listeners.length; index++) { listener = listeners [index]; listener.intervalRemoved (event); } } | protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REMOVED, startIndex, endIndex); // Get Listener... |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR); | throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); | public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomEx(DomEx.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (source instance... |
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); | throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); | public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomEx(DomEx.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (source instance... |
throw new DomEx(DomEx.NAMESPACE_ERR, name, null, 0); | throw new DomDOMException(DOMException.NAMESPACE_ERR, name, null, 0); | static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) { throw new DomEx(DomEx.NAMESPACE_ERR... |
throw new DomEx (DomEx.NAMESPACE_ERR, name, null, 0); | throw new DomDOMException(DOMException.NAMESPACE_ERR, name, null, 0); | static void checkName(String name, boolean xml11) { if (name == null) { throw new DomEx (DomEx.NAMESPACE_ERR, name, null, 0); } int len = name.length(); if (len == 0) { throw new DomEx (DomEx.NAMESPACE_ERR, name, null, 0); } // dog: rewritten to use the rules for XML 1.0... |
throw new DomEx(DomEx.INVALID_CHARACTER_ERR, name, null, c); | throw new DomDOMException(DOMException.INVALID_CHARACTER_ERR, name, null, c); | static void checkName(String name, boolean xml11) { if (name == null) { throw new DomEx (DomEx.NAMESPACE_ERR, name, null, 0); } int len = name.length(); if (len == 0) { throw new DomEx (DomEx.NAMESPACE_ERR, name, null, 0); } // dog: rewritten to use the rules for XML 1.0... |
throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR, | throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR, | private void checkNewChild(Node newChild) { if (newChild.getNodeType() == ELEMENT_NODE && getDocumentElement() != null) { throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR, "document element already present: " + getDocumentElement(), newChild, 0); ... |
throw new DomEx(DomEx.NAMESPACE_ERR, | throw new DomDOMException(DOMException.NAMESPACE_ERR, | public Attr createAttributeNS(String namespaceURI, String name) { if (checkingCharacters) { checkNCName(name, "1.1".equals(version)); } if ("".equals(namespaceURI)) { namespaceURI = null; } if (name.startsWith ("xml:")) { if (namespaceURI == null) {... |
return new DomCDATA(this, value); | return new DomCDATASection(this, value); | public CDATASection createCDATASection(String value) { if (checkingCharacters) { checkChar(value, "1.1".equals(version)); } return new DomCDATA(this, value); } |
return new DomFragment(this); | return new DomDocumentFragment(this); | public DocumentFragment createDocumentFragment() { return new DomFragment(this); } |
throw new DomEx(DomEx.NAMESPACE_ERR, | throw new DomDOMException(DOMException.NAMESPACE_ERR, | public Element createElementNS(String namespaceURI, String name) { if (checkingCharacters) { checkNCName(name, "1.1".equals(version)); } if ("".equals(namespaceURI)) { namespaceURI = null; } if (name.startsWith("xml:")) { if (namespaceURI != null ... |
throw new DomEx(DomEx.NAMESPACE_ERR, "prefixed name '" + name + "' needs a URI", this, 0); | throw new DomDOMException(DOMException.NAMESPACE_ERR, "prefixed name '" + name + "' needs a URI", this, 0); | public Element createElementNS(String namespaceURI, String name) { if (checkingCharacters) { checkNCName(name, "1.1".equals(version)); } if ("".equals(namespaceURI)) { namespaceURI = null; } if (name.startsWith("xml:")) { if (namespaceURI != null ... |
throw new DomEx(DomEx.SYNTAX_ERR, "illegal PI target name", this, 0); | throw new DomDOMException(DOMException.SYNTAX_ERR, "illegal PI target name", this, 0); | public ProcessingInstruction createProcessingInstruction(String target, String data) { if (checkingCharacters) { boolean xml11 = "1.1".equals(version); checkName(target, xml11); if ("xml".equalsIgnoreCase(target)) { ... |
return new DomPI(this, target, data); | return new DomProcessingInstruction(this, target, data); | public ProcessingInstruction createProcessingInstruction(String target, String data) { if (checkingCharacters) { boolean xml11 = "1.1".equals(version); checkName(target, xml11); if ("xml".equalsIgnoreCase(target)) { ... |
dst = new DomFragment(this); | dst = new DomDocumentFragment(this); | public Node importNode(Node src, boolean deep) { Node dst = null; switch (src.getNodeType()) { case TEXT_NODE: dst = createTextNode(src.getNodeValue()); break; case CDATA_SECTION_NODE: dst = createCDATASection(src.getNodeValue()); break; case COMMENT_NODE: ... |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR, null, src, 0); | throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, null, src, 0); | public Node importNode(Node src, boolean deep) { Node dst = null; switch (src.getNodeType()) { case TEXT_NODE: dst = createTextNode(src.getNodeValue()); break; case CDATA_SECTION_NODE: dst = createCDATASection(src.getNodeValue()); break; case COMMENT_NODE: ... |
throw new DomEx(DomEx.NOT_FOUND_ERR); | throw new DomDOMException(DOMException.NOT_FOUND_ERR); | public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException { if (n instanceof DomNsNode) { DomNsNode src = (DomNsNode) n; if (src == null) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (src.owner != this) { ... |
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR, null, src, 0); | throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR, null, src, 0); | public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException { if (n instanceof DomNsNode) { DomNsNode src = (DomNsNode) n; if (src == null) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (src.owner != this) { ... |
throw new DomEx(DomEx.NAMESPACE_ERR, | throw new DomDOMException(DOMException.NAMESPACE_ERR, | public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException { if (n instanceof DomNsNode) { DomNsNode src = (DomNsNode) n; if (src == null) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (src.owner != this) { ... |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR, null, n, 0); | throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, null, n, 0); | public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException { if (n instanceof DomNsNode) { DomNsNode src = (DomNsNode) n; if (src == null) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (src.owner != this) { ... |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR); | throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); | public void setXmlVersion(String xmlVersion) { if (xmlVersion == null) { xmlVersion = "1.0"; } if ("1.0".equals(xmlVersion) || "1.1".equals(xmlVersion)) { version = xmlVersion; } else { throw new DomEx(DomEx.NOT_SUPPORTED_ERR); } } |
NamedValue returns, ExceptionList exceptions, ContextList ctx_list | NamedValue returns | Request _create_request(Context context, String operation, NVList parameters, NamedValue returns, ExceptionList exceptions, ContextList ctx_list ); |
NVList parameters, NamedValue returns, ExceptionList exceptions, ContextList ctx_list | NVList parameters, NamedValue returns | public abstract Request create_request(org.omg.CORBA.Object target, Context context, String operation, NVList parameters, NamedValue returns, ExceptionList exceptions, ... |
ParameterNode(TemplateNode children, TemplateNode next, String name, Expr select, boolean global) | ParameterNode(String name, Expr select, boolean global) | ParameterNode(TemplateNode children, TemplateNode next, String name, Expr select, boolean global) { super(children, next); this.name = name; this.select = select; this.global = global; } |
super(children, next); | ParameterNode(TemplateNode children, TemplateNode next, String name, Expr select, boolean global) { super(children, next); this.name = name; this.select = select; this.global = global; } | |
return new ParameterNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, | TemplateNode ret = new ParameterNode(name, | TemplateNode clone(Stylesheet stylesheet) { return new ParameterNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, ... |
if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; | TemplateNode clone(Stylesheet stylesheet) { return new ParameterNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, ... | |
log.setLevel(Level.DEBUG); | public Ext2File(INode iNode) { this.iNode=iNode; valid = true; } | |
throw new IOException("EXT2 implementation is currently readonly"); | long blockSize = iNode.getExt2FileSystem().getBlockSize(); if(length<getLength()) { long blockNr = length / blockSize; long blockOffset = length % blockSize; long nextBlock; if(blockOffset==0) nextBlock=blockNr; else nextBlock=blockNr+1; for(long i=iNode.getAllocatedBlockCount()-1; i>=nextBlock; i--) { log.debug(... | public void setLength(long length) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } |
throw new IOException("EXT2 implementation is currently readonly"); | if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+len>src.length) throw new IOException("src is shorter than what you want to write"); log.debug("write(fileOffset="+fileOffset+", src, off, len="+len+")"); final l... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { throw new IOException("EXT2 implementation is currently readonly"); } |
serialVersionOnStream = 1; | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (serialVersionOnStream < 1) { monetarySeparator = decimalSeparator; exponential = 'E'; serialVersionOnStream = 1; } } | |
if (serialVersionOnStream < 2) locale = Locale.getDefault(); serialVersionOnStream = 2; | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (serialVersionOnStream < 1) { monetarySeparator = decimalSeparator; exponential = 'E'; serialVersionOnStream = 1; } } | |
public static Currency getInstance (String currencyCode) | public static Currency getInstance (Locale locale) | public static Currency getInstance (String currencyCode) { Locale[] all_locales = Locale.getAvailableLocales (); for (int i=0;i<all_locales.length;i++) { Currency test_currency = getInstance (all_locales[i]); if (test_currency.getCurrencyCode() != null && test_currency.getCurrencyCode().equals(cu... |
Locale[] all_locales = Locale.getAvailableLocales (); for (int i=0;i<all_locales.length;i++) | Currency newCurrency; newCurrency = (Currency) cache.get(locale); if (newCurrency == null) | public static Currency getInstance (String currencyCode) { Locale[] all_locales = Locale.getAvailableLocales (); for (int i=0;i<all_locales.length;i++) { Currency test_currency = getInstance (all_locales[i]); if (test_currency.getCurrencyCode() != null && test_currency.getCurrencyCode().equals(cu... |
Currency test_currency = getInstance (all_locales[i]); if (test_currency.getCurrencyCode() != null && test_currency.getCurrencyCode().equals(currencyCode)) return test_currency; | newCurrency = new Currency (locale); cache.put(locale, newCurrency); | public static Currency getInstance (String currencyCode) { Locale[] all_locales = Locale.getAvailableLocales (); for (int i=0;i<all_locales.length;i++) { Currency test_currency = getInstance (all_locales[i]); if (test_currency.getCurrencyCode() != null && test_currency.getCurrencyCode().equals(cu... |
return null; | return newCurrency; | public static Currency getInstance (String currencyCode) { Locale[] all_locales = Locale.getAvailableLocales (); for (int i=0;i<all_locales.length;i++) { Currency test_currency = getInstance (all_locales[i]); if (test_currency.getCurrencyCode() != null && test_currency.getCurrencyCode().equals(cu... |
if (! remEx && !force) throw new CompilationError(m[i].getName() + ", defined in " + c.getName() + ", does not throw " + RemoteException.class.getName()); } | } if (! remEx && !force) throw new CompilationError(m[i].getName() + ", defined in " + c.getName() + ", does not throw " + RemoteException.class.getName()); | public synchronized void compile(Class remote) { reset(); String s; // Get the package. s = remote.getName(); int p = s.lastIndexOf('.'); if (p < 0) { // Root package. packag = ""; implName = name = s; } else { packag = s.substring(0, p); implNam... |
public void addChangeListener(ChangeListener listener); | void addChangeListener(ChangeListener listener); | public void addChangeListener(ChangeListener listener); |
public int getSelectedIndex(); | int getSelectedIndex(); | public int getSelectedIndex(); |
public void removeChangeListener(ChangeListener listener); | void removeChangeListener(ChangeListener listener); | public void removeChangeListener(ChangeListener listener); |
protected ImageReaderWriterSpi() | public ImageReaderWriterSpi() | protected ImageReaderWriterSpi() { } |
String classname = p[i].getProperty("AlgorithmParameterGenerator." + algorithm); if (classname != null) return getInstance(classname, algorithm, p[i]); | return getInstance(algorithm, p[i]); | public static AlgorithmParameterGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameterGenerator." + algorithm); if (classname != null) return getIn... |
catch (NoSuchAlgorithmException ignored) {} | public static AlgorithmParameterGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameterGenerator." + algorithm); if (classname != null) return getIn... | |
this.id = id; | name = id; flags = 0; | protected Tag(String id) { this.id = id; } |
public UnknownTag(String id) | public UnknownTag(String name) | public UnknownTag(String id) { super(id); } |
super(id); | super(name); | public UnknownTag(String id) { super(id); } |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); activeBorder = defaults.getBorder("ToolTip.border"); inactiveBorder = defaults.getBorder("ToolTip.borderInactive"); isAcceleratorHidden = defaults.getBoolean("ToolTip.hideAccelerator"); acceleratorFont = defaults.getFont("MenuItem.acceleratorFont"); acceleratorF... | public MetalToolTipUI() { super(); } | |
private int findClosestTick(int value) | int findClosestTick(int value) | private int findClosestTick(int value) { int min = slider.getMinimum(); int max = slider.getMaximum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); // The default value to return is value + minor or // value + major. // Initializing at min - valu... |
if (SwingButtonPeer.this.awtComponent != null) retVal = SwingButtonPeer.this.awtComponent.isShowing(); | if (button != null) retVal = button.isShowing(); | public boolean isShowing() { boolean retVal = false; if (SwingButtonPeer.this.awtComponent != null) retVal = SwingButtonPeer.this.awtComponent.isShowing(); return retVal; } |
SwingButton button = new SwingButton(); | SwingButton button = new SwingButton(theButton); | public SwingButtonPeer(Button theButton) { SwingButton button = new SwingButton(); button.setText(theButton.getLabel()); button.addActionListener(new SwingButtonListener()); init(theButton, button); } |
if (isSet[HOUR_OF_DAY]) hour = fields[HOUR_OF_DAY]; else if (isSet[HOUR]) | if (isSet[HOUR]) | protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... |
if (isSet[AM_PM] && fields[AM_PM] == PM) | if (fields[AM_PM] == PM) | protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... |
if (isSet[AM_PM] && fields[AM_PM] == AM && hour == 12) | if (fields[AM_PM] == AM && hour == 12) | protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... |
int rawOffset = zone.getRawOffset(); int dstOffset = zone.getOffset((year < 1) ? BC : AD, (year < 1) ? 1 - year : year, month, day, weekday, millisInDay) - zone.getRawOffset(); time -= (rawOffset + dstOffset); | int rawOffset = isSet[ZONE_OFFSET] ? fields[ZONE_OFFSET] : zone.getRawOffset(); int dstOffset = isSet[DST_OFFSET] ? fields[DST_OFFSET] : (zone.getOffset((year < 0) ? BC : AD, (year < 0) ? 1 - year : year, month, day, weekday, millisInDay) - zone.getRawOffset()); time -= rawOffset + dstOffset; | protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... |
protected Calendar(TimeZone zone, Locale locale) | protected Calendar() | protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi... |
this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("firstDayOfWeek"); try { if (min != null) minimalDaysInFirstWeek = Int... | this(TimeZone.getDefault(), Locale.getDefault()); | protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi... |
addStringln("Prerequisites:"); | */ addStringln("\tunknown"); addStringln("Prerequisites:"); | public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add... |
public FloatSeqHolder(float[] initial_value) | public FloatSeqHolder() | public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); } |
value = initial_value; typecode.setLength(value.length); | public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); } | |
return (cal.get(Calendar.ZONE_OFFSET) | return - (cal.get(Calendar.ZONE_OFFSET) | public int getTimezoneOffset() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (60 * 1000); } |
private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException | private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException | private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException { input.defaultReadObject(); time = input.readLong(); } |
private void writeObject(java.io.ObjectOutputStream output) throws java.io.IOException | private void writeObject(ObjectOutputStream output) throws IOException | private void writeObject(java.io.ObjectOutputStream output) throws java.io.IOException { output.defaultWriteObject(); output.writeLong(time); } |
public final String getDisplayName(boolean dst, int style) | public final String getDisplayName() | public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); } |
return (getDisplayName(dst, style, Locale.getDefault())); | return (getDisplayName(false, LONG, Locale.getDefault())); | public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); } |
public ReaderDelegate(XMLStreamReader reader) | public ReaderDelegate() | public ReaderDelegate(XMLStreamReader reader) { parent = reader; } |
parent = reader; | public ReaderDelegate(XMLStreamReader reader) { parent = reader; } | |
public String getAttributeName(int index) | public QName getAttributeName(int index) | public String getAttributeName(int index) { if (parent != null) return parent.getAttributeName(index); return null; } |
public String getAttributeValue(int index) | public String getAttributeValue(String namespaceUri, String localName) | public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(index); return null; } |
return parent.getAttributeValue(index); | return parent.getAttributeValue(namespaceUri, localName); | public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(index); return null; } |
public String getNamespaceURI() | public String getNamespaceURI(String prefix) | public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(); return null; } |
return parent.getNamespaceURI(); | return parent.getNamespaceURI(prefix); | public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(); return null; } |
public char[] getTextCharacters() | public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException | public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; } |
return parent.getTextCharacters(); return null; | return parent.getTextCharacters(sourceStart, target, targetStart, length); return 0; | public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; } |
super(in); | super(in.markSupported() ? in : new BufferedInputStream(in)); | public CRLFInputStream(InputStream in) { super(in); } |
int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); | int c = in.read(); | public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... |
buf = super.read(); if (buf == LF) | in.mark(1); int d = in.read(); if (d == LF) | public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... |
c = buf; buf = -1; | c = d; | public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... |
else { in.reset(); | public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... | |
else if (selectedIndex == -1) select(0); | add(String item){ if (item == null) throw new NullPointerException ("item must be non-null"); pItems.addElement(item); int i = pItems.size () - 1; if (peer != null) { ChoicePeer cp = (ChoicePeer) peer; cp.add (item, i); }} | |
else if (selectedIndex == -1 || selectedIndex >= index) select(0); | insert(String item, int index){ if (index < 0) throw new IllegalArgumentException ("index may not be less then 0"); if (index > getItemCount ()) index = getItemCount (); pItems.insertElementAt(item, index); if (peer != null) { ChoicePeer cp = (ChoicePeer) peer; cp.add (item, index); }} | |
protected Inet6Address(byte[] addr, String host) { super(addr, host); | Inet6Address(byte[] addr, String host) { super(addr, host, null); | protected Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; } |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof Inet6Address)) | public boolean equals(Object obj) { if (! (obj instanceof Inet6Address)) | public boolean equals(Object obj) { if (obj == null || !(obj instanceof Inet6Address)) return false; Inet6Address tmp = (Inet6Address) obj; return super.equals(tmp) && this.ipaddress == tmp.ipaddress; } |
return ipaddress == anylocal; | return Arrays.equals(ipaddress, anylocal); | public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; return ipaddress == anylocal; } |
return ipaddress == loopback; | return Arrays.equals(ipaddress, loopback); | public boolean isLoopbackAddress() { byte[] loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; return ipaddress == loopback; } |
c.setBorder(defaults.getBorder("Label.border")); | protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); c.setBorder(defaults.getBorder("Label.border")... | |
c.setBorder(null); | protected void uninstallDefaults(JLabel c) { c.setForeground(null); c.setBackground(null); c.setFont(null); c.setBorder(null); } | |
if (month < 0 || month > 11) throw new IllegalArgumentException("month out of range"); | private int checkRule(int month, int day, int dayOfWeek) { int daysInMonth = getDaysInMonth(month, 1); if (dayOfWeek == 0) { if (day <= 0 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); return DOM_MODE; } else if (dayOfWeek > 0) { if (Math.abs(day) > (daysInMon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.