rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
boolean offer(T value); | boolean offer(E e); | boolean offer(T value); |
T peek(); | E peek(); | T peek(); |
T poll(); | E poll(); | T poll(); |
T remove(); | E remove(); | T remove(); |
java.util.Date d = (java.util.Date) dateFormat.parseObject(str); | java.util.Date d; synchronized (dateFormat) { d = (java.util.Date) dateFormat.parseObject(str); } | public static Timestamp valueOf(String str) { int nanos = 0; int dot = str.indexOf('.'); if (dot != -1) { if (str.lastIndexOf('.') != dot) throw new IllegalArgumentException(str); int len = str.length() - dot - 1; if (len < 1 || len > 9) throw new IllegalArgumentException(str); nanos = Integer.pars... |
public boolean equals(Object obj) { return getTime() == ((Date) obj).getTime(); | public boolean equals(Object obj) { return (obj instanceof Date && time == ((Date) obj).time); | public boolean equals(Object obj) { return getTime() == ((Date) obj).getTime(); } |
public String toString() { refresh_components(); return days[day] + " " + months[month] + " " + fixed_int(date) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + tzname[isdst ? 1 : 0] + " " + (1900 + year); | public String toString() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); String day = "0" + cal.get(Calendar.DATE); String hour = "0" + cal.get(Calendar.HOUR_OF_DAY); String min = "0" + cal.get(Calendar.MINUTE); String sec = "0" + cal.get(Calendar.SECOND); String year = "000" + cal.get(Calendar.YEAR... | public String toString() { refresh_components(); return days[day] + " " + months[month] + " " + fixed_int(date) + " " + fixed_int(hrs) + ":" + fixed_int(min) + ":" + fixed_int(sec) + " " + tzname[isdst ? 1 : 0] + " " + (1900 + year); } |
public StringBuffer format (long number, StringBuffer dest, | public StringBuffer format (double number, StringBuffer dest, | public StringBuffer format (long number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != ... |
if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != null) dest.append(negativePrefix); else { dest.append(symbols.getMinusSign()); dest.append(positivePrefix); } number = - number; } else dest.append(positivePrefix); int integer... | formatInternal (number, new StringFormatBuffer(dest), fieldPos); | public StringBuffer format (long number, StringBuffer dest, FieldPosition fieldPos) { // If using exponential notation, we just format as a double. if (useExponentialNotation) return format ((double) number, dest, fieldPos); boolean is_neg = number < 0; if (is_neg) { if (negativePrefix != ... |
abstract protected void flushSpi() throws BackingStoreException; | protected abstract void flushSpi() throws BackingStoreException; | abstract protected void flushSpi() throws BackingStoreException; |
abstract protected String getSpi(String key); | protected abstract String getSpi(String key); | abstract protected String getSpi(String key); |
abstract protected String[] keysSpi() throws BackingStoreException; | protected abstract String[] keysSpi() throws BackingStoreException; | abstract protected String[] keysSpi() throws BackingStoreException; |
abstract protected void putSpi(String key, String value); | protected abstract void putSpi(String key, String value); | abstract protected void putSpi(String key, String value); |
abstract protected void removeNodeSpi() throws BackingStoreException; | protected abstract void removeNodeSpi() throws BackingStoreException; | abstract protected void removeNodeSpi() throws BackingStoreException; |
abstract protected void removeSpi(String key); | protected abstract void removeSpi(String key); | abstract protected void removeSpi(String key); |
abstract protected void syncSpi() throws BackingStoreException; | protected abstract void syncSpi() throws BackingStoreException; | abstract protected void syncSpi() throws BackingStoreException; |
public static long parseLong(String s) | public static long parseLong(String str, int radix) | public static long parseLong(String s) { return parseLong(s, 10, false); } |
return parseLong(s, 10, false); | return parseLong(str, radix, false); | public static long parseLong(String s) { return parseLong(s, 10, false); } |
public static String toString(long num) | public static String toString(long num, int radix) | public static String toString(long num) { return toString(num, 10); } |
return toString(num, 10); | if ((int) num == num) return Integer.toString((int) num, radix); if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) radix = 10; char[] buffer = new char[65]; int i = 65; boolean isNeg = false; if (num < 0) { isNeg = true; num = -num; if (num < 0) { buffer[--i] = digits[(int) (-(num + radix) % radix)]... | public static String toString(long num) { return toString(num, 10); } |
public BERValue(int tag, Object value) | public BERValue(int tag, Object value, byte[] encoded) | public BERValue(int tag, Object value) { super(tag, 0, value, null); } |
super(tag, 0, value, null); | super(tag, 0, value, encoded); indefinite = true; | public BERValue(int tag, Object value) { super(tag, 0, value, null); } |
if (origin == null || events == null) | if (origin == null || events == null || dgr == null) | public DragGestureEvent(DragGestureRecognizer dgr, int action, Point origin, List events) { super(dgr); if (origin == null || events == null) throw new IllegalArgumentException(); this.origin = origin; this.action = action; } |
this.events = events; this.dgr = dgr; this.component = dgr.getComponent(); this.dragSource = dgr.getDragSource(); | public DragGestureEvent(DragGestureRecognizer dgr, int action, Point origin, List events) { super(dgr); if (origin == null || events == null) throw new IllegalArgumentException(); this.origin = origin; this.action = action; } | |
return null; | return component; | public Component getComponent() { return null; } |
return 0; | return action; | public int getDragAction() { return 0; } |
return null; | return dragSource; | public DragSource getDragSource() { return null; } |
return (DragGestureRecognizer) source; | return (DragGestureRecognizer) getSource(); | public DragGestureRecognizer getSourceAsDragGestureRecognizer() { return (DragGestureRecognizer) source; } |
return null; | return dgr.getTriggerEvent(); | public InputEvent getTriggerEvent() { return null; } |
return null; | return events.iterator(); | public Iterator iterator() { return null; } |
return null; | return events.toArray(); | public Object[] toArray() { return null; } |
Transferable trans, DragSourceListener dsl) | Transferable trans, DragSourceListener dsl, FlavorMap map) | public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl) { startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); } |
startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); | public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl) { startDrag(trigger, dragCursor, dragImage, imageOffset, trans, dsl, null); } | |
public TransformerConfigurationException(String msg) { super(msg); | public TransformerConfigurationException() { super((String)null); | public TransformerConfigurationException(String msg) { super(msg); } // TransformerConfigurationException() |
protected AccessibleJTextField(JTextField component) { super(component); } | protected AccessibleJTextField() { } | protected AccessibleJTextField(JTextField component) { super(component); // TODO } // AccessibleJTextField() |
public void removeActionListener(ActionListener l) { actions.removeElement(l); } | public void removeActionListener(ActionListener listener) { listenerList.remove(ActionListener.class, listener); } | public void removeActionListener(ActionListener l) { actions.removeElement(l); } |
if (defaultLocale != null) { language = convertLanguage(language); country = country.toUpperCase(); variant = variant.toUpperCase(); | if (defaultLocale != null) { language = convertLanguage(language).intern(); country = country.toUpperCase().intern(); variant = variant.toUpperCase().intern(); | public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if ... |
public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; | public boolean equals(Object obj) { if (this == obj) return true; if (! (obj instanceof Locale)) return false; | public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); } |
return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); | return (language == l.language && country == l.country && variant == l.variant); | public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false; Locale l = (Locale) obj; return (language.equals(l.language) && country.equals(l.country) && variant .equals(l.variant)); } |
public String getDisplayCountry() { | public final String getDisplayCountry() { | public String getDisplayCountry() { return getDisplayCountry(defaultLocale); } |
public String getDisplayLanguage() { | public final String getDisplayLanguage() { | public String getDisplayLanguage() { return getDisplayLanguage(defaultLocale); } |
public String getDisplayName() { | public final String getDisplayName() { | public String getDisplayName() { return getDisplayName(defaultLocale); } |
public String getDisplayVariant() { | public final String getDisplayVariant() { | public String getDisplayVariant() { return getDisplayVariant(defaultLocale); } |
public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," | public String getISO3Country() { if (country == "") return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," | public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,... |
if (index % 3 != 0 || language.length() != 2) throw new MissingResourceException( "Can't find ISO3 country for " + country, | if (index % 3 != 0 || country.length() != 2) throw new MissingResourceException ("Can't find ISO3 country for " + country, | public String getISO3Country() { if ("".equals(country)) return ""; int index = ("AD,AE,AF,AG,AI,AL,AM,AN,AO,AQ,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF," + "BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CF,CG,CH,CI,CK," + "CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,... |
public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," | public String getISO3Language() { if (language == "") return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," | public String getISO3Language() { if ("".equals(language)) return ""; int index = ("aa,ab,af,am,ar,as,ay,az,ba,be,bg,bh,bi,bn,bo,br,ca,co,cs,cy,da," + "de,dz,el,en,eo,es,et,eu,fa,fi,fj,fo,fr,fy,ga,gd,gl,gn,gu,ha,iw," + "hi,hr,hu,hy,ia,in,ie,ik,in,is,it,iu,iw,ja,ji,jw,ka,k... |
ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternChars = res.getString ("localPatternChars"); months = res.getStringArray ("months"); shortMonths = res.getStringArray ("shortMonths"); shortWeekdays = res.getStringArray ("shortWeekdays"); weekdays = res.getStringArray ("weekdays"); z... | ampms = getStringArray(res, "ampms"); eras = getStringArray(res, "eras"); localPatternChars = res.getString("localPatternChars"); months = getStringArray(res, "months"); shortMonths = getStringArray(res, "shortMonths"); shortWeekdays = getStringArray(res, "shortWeekdays"); weekdays = getStringArray(res, "weekdays"); zo... | public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale, ClassLoader.getSystemClassLoader()); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternC... |
{ values[i] = res.getString(formatPrefixes[i]+key); } | values[i] = res.getString(formatPrefixes[i] + key); | private String[] formatsForKey(ResourceBundle res, String key) { String[] values = new String [formatPrefixes.length]; for (int i = 0; i < formatPrefixes.length; i++) { values[i] = res.getString(formatPrefixes[i]+key); } return values; } |
return 0.0F; | return super.getAlignment(axis); | public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F... |
float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F) / prefHeight; | View first = getView(0); float firstRowHeight = first.getPreferredSpan(Y_AXIS); return prefHeight != 0 ? (firstRowHeight * first.getAlignment(Y_AXIS)) / prefHeight : 0; | public float getAlignment(int axis) { if (axis == X_AXIS) return 0.0F; if (axis == Y_AXIS) { if (getViewCount() == 0) return 0.0F; float prefHeight = getPreferredSpan(Y_AXIS); float firstRowHeight = getView(0).getPreferredSpan(Y_AXIS); return (firstRowHeight / 2.F... |
Rectangle rect = (Rectangle) a; getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.height, this); | Rectangle rect = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); painter.paint(g, rect.x, rect.y, rect.width, rect.height, this); | public void paint(Graphics g, Shape a) { Rectangle rect = (Rectangle) a; // FIXME: not fully implemented getStyleSheet().getBoxPainter(getAttributes()).paint(g, rect.x, rect.y, rect.width, rect.he... |
StyleSheet ss = getStyleSheet(); attributes = ss.getViewAttributes(this); painter = ss.getBoxPainter(attributes); if (attributes != null) { setInsets((short) painter.getInset(TOP, this), (short) painter.getInset(LEFT, this), (short) painter.getInset(BOTTOM, this), (short) painter.getInset(RIGHT, this)); } float e... | protected void setPropertiesFromAttributes() { // FIXME: Not implemented (need to use StyleSheet). } | |
StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; | HTMLDocument doc = (HTMLDocument) getDocument(); return doc.getStyleSheet(); | protected StyleSheet getStyleSheet() { StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; } |
return getStyleSheet().getViewAttributes(this); | if (attributes == null) attributes = getStyleSheet().getViewAttributes(this); return attributes; | public AttributeSet getAttributes() { return getStyleSheet().getViewAttributes(this); } |
if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); | public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + len) > length) ... | |
if (where >= length) | if (where > length) | public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where < 0) throw new BadLocationException("The where argument cannot be smaller" + " than the zero",... |
if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) | if ((where + nitems) >= length) | public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) thro... |
setPositionsInRange(gapEnd, 0, gapStart); | resetMarksAtZero(); | protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add... |
public IllegalAccessError() { super(); } | public IllegalAccessError() { } | public IllegalAccessError() { super(); } |
return pane.getLayer(this); | return pane.getLayer((Component) this); | public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) return pane.getLayer(this); return -1; } |
protected AccessibleJComponent(JComponent component) {} | protected AccessibleJComponent() {} | protected AccessibleJComponent(JComponent component) {} |
VetoableChangeListener[] listeners = getVetoableChangeListeners(); PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newValue); for (int i = 0; i < listeners.length; i++) listeners[i].vetoableChange(evt); | protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException { // Support for reporting constrained property changes. } | |
public void setLayer(Component c, int layer, int position) | public void setLayer(Component c, int layer) | public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); } |
setPosition(c, position); revalidate(); repaint(); | public void setLayer(Component c, int layer, int position) { componentToLayer.put (c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); } | |
if (Configuration.DEBUG) | if (DEBUG) | private void debug(String s) { if (Configuration.DEBUG) System.out.println(s); } |
if (!Configuration.DEBUG) | if (!DEBUG) | private void dumpTable() { int start_range = 0; if (!Configuration.DEBUG) return; System.out.println("Dumping internal table:"); for (int i = 0; i < ranges.length; i++) { System.out.print("\t" + start_range + " => " + ranges[i] + ":"); if (attributes[i] == null) System.out.println("null")... |
public _NamingContextStub(Delegate delegate) | public _NamingContextStub() | public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); } |
_set_delegate(delegate); | public _NamingContextStub(Delegate delegate) { super(); _set_delegate(delegate); } | |
public static final ResourceBundle getBundle(String baseName) | public static ResourceBundle getBundle(String baseName) | public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); } |
return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); | ClassLoader cl = security.getCallingClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return getBundle(baseName, Locale.getDefault(), cl); | public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); } |
try | public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M... | |
catch (MissingResourceException ex) { } | public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M... | |
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { if (cache.containsKey(localizedName)) { Reference ref = (Reference) cache.get(localizedName); if (ref == null) return null; else { ResourceBundle rb = (ResourceBundle) ref.g... | private static ResourceBundle tryBundle(String localizedName, ClassLoader classloader) | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... |
return rb; } } } ResourceBundle foundBundle = null; | ResourceBundle bundle = null; | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... |
foundBundle = (ResourceBundle) rbClass.newInstance(); foundBundle.parent = bundle; foundBundle.locale = locale; | if (ResourceBundle.class.isAssignableFrom(rbClass)) bundle = (ResourceBundle) rbClass.newInstance(); | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... |
catch (Exception ex) { foundBundle = null; } if (foundBundle == null) | catch (IllegalAccessException ex) {} catch (InstantiationException ex) {} catch (ClassNotFoundException ex) {} if (bundle == null) | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... |
final String resourceName | String resourceName | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... |
{ foundBundle = new PropertyResourceBundle(is); foundBundle.parent = bundle; foundBundle.locale = locale; } | bundle = new PropertyResourceBundle(is); | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... |
if (foundBundle == null) foundBundle = bundle; if (foundBundle == null) cache.put(localizedName, null); else cache.put(localizedName, new SoftReference(foundBundle)); return foundBundle; | return bundle; | private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere... |
HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); | adaptee.addRandomBytes (seed); | public void engineSetSeed(byte[] seed) { HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); } |
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException | public void nextBytes(byte[] out) throws IllegalStateException, LimitReachedException | public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde... |
if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayIndexOutOfBoundsException("offset=" + offset + " length=" + length + " limit=" + out.length); if (ndx >= buffer.length) { fillBlock(); ndx = 0; }... | nextBytes(out, 0, out.length); | public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde... |
System.out.println("Michael: FieldView.getPreferredSpan: Error"); | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g... | |
resetRecognizer(); | protected void fireDragGestureRecognized(int dragAction, Point p) { if(dragGestureListener != null) dragGestureListener.dragGestureRecognized (new DragGestureEvent(this, dragAction, p, events)); } | |
public abstract byte[] getEncoded(int format); | public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); } | public abstract byte[] getEncoded(int format); |
public UndoableEditSupport() { } | public UndoableEditSupport() { realSource = this; } | public UndoableEditSupport() { // TODO } // UndoableEditSupport() |
protected void _postEdit(UndoableEdit value0) { } | protected void _postEdit(UndoableEdit edit) { UndoableEditEvent event; Iterator iter; if (listeners.isEmpty()) return; event = new UndoableEditEvent(realSource, edit); iter = ((Vector) listeners.clone()).iterator(); while (iter.hasNext()) ((UndoableEditListener) iter.next()).undoableEditHappened(event); } | protected void _postEdit(UndoableEdit value0) { // TODO } // _postEdit() |
public synchronized void addUndoableEditListener(UndoableEditListener value0) { } | public synchronized void addUndoableEditListener(UndoableEditListener val) { listeners.add(val); } | public synchronized void addUndoableEditListener(UndoableEditListener value0) { // TODO } // addUndoableEditListener() |
public synchronized void beginUpdate() { } | public synchronized void beginUpdate() { if (compoundEdit == null) compoundEdit = createCompoundEdit(); ++updateLevel; } | public synchronized void beginUpdate() { // TODO } // beginUpdate() |
protected CompoundEdit createCompoundEdit() { return null; } | protected CompoundEdit createCompoundEdit() { return new CompoundEdit(); } | protected CompoundEdit createCompoundEdit() { return null; // TODO } // createCompoundEdit() |
public synchronized void endUpdate() { } | public synchronized void endUpdate() { if (updateLevel == 0) throw new IllegalStateException(); if (--updateLevel > 0) return; compoundEdit.end(); _postEdit(compoundEdit); compoundEdit = null; } | public synchronized void endUpdate() { // TODO } // endUpdate() |
public int getUpdateLevel() { return 0; } | public int getUpdateLevel() { return updateLevel; } | public int getUpdateLevel() { return 0; // TODO } // getUpdateLevel() |
public synchronized void postEdit(UndoableEdit value0) { } | public synchronized void postEdit(UndoableEdit edit) { if (compoundEdit != null) compoundEdit.addEdit(edit); else _postEdit(edit); } | public synchronized void postEdit(UndoableEdit value0) { // TODO } // postEdit() |
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { } | public synchronized void removeUndoableEditListener(UndoableEditListener val) { listeners.removeElement(val); } | public synchronized void removeUndoableEditListener(UndoableEditListener value0) { // TODO } // removeUndoableEditListener() |
public String toString() { return null; } | public String toString() { return super.toString() + " updateLevel: " + updateLevel + " listeners: " + listeners + " compoundEdit: " + compoundEdit; } | public String toString() { return null; // TODO } // toString() |
branchClone.replace(0, numChildren, cloneChildren); | branchClone.replace(0, 0, cloneChildren); | public Element clone(Element parent, Element clonee) { Element clone = clonee; // We can only handle AbstractElements here. if (clonee instanceof BranchElement) { BranchElement branchEl = (BranchElement) clonee; BranchElement branchClone = new BranchElement(pare... |
BranchElement rightBranch = new BranchElement(parent, parentAtts); | BranchElement rightBranch = (BranchElement) createBranchElement(parent, parentAtts); | private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn... |
leftBranch = new BranchElement(parent, parentAtts); | leftBranch = (BranchElement) createBranchElement(parent, parentAtts); | private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn... |
BranchElement br = new BranchElement(parent, curr.getAttributes()); | BranchElement br = (BranchElement) createBranchElement(parent, curr.getAttributes()); | private Element[] recreateAfterFracture(Element[] recreate, BranchElement parent, int startFrom, int startOffset) { Element[] added = new Element[recreate.length - startFrom]; int j = 0; for (int i = startFrom; i < recreat... |
BranchElement newPar = (BranchElement) new BranchElement(el.getParentElement(), | BranchElement newPar = (BranchElement) createBranchElement(el.getParentElement(), | private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.