rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public String toString() { return null; }
public String toString() { return super.toString() + " inProgress: " + inProgress + " edits: " + edits; }
public String toString() { return null; // TODO } // toString()
public void undo() throws CannotUndoException {
public void undo() throws CannotUndoException { super.undo();
public void undo() throws CannotUndoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } // for: index } // undo()
int index; UndoableEdit current; for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } }
for (int i = edits.size() - 1; i >= 0; i--) ((UndoableEdit) edits.elementAt(i)).undo(); }
public void undo() throws CannotUndoException { // Variables int index; UndoableEdit current; // Loop through all contained UndoableEdits for (index = edits.size() - 1; index >= 0; index--) { current = (UndoableEdit) edits.elementAt(index); current.undo(); } // for: index } // undo()
int pos1 = pos + 1; while (pos1 < input.length() && Character.isDigit(input.charAt(pos1))) { int val1 = val*10 + Character.digit(input.charAt(pos1),10); if (val1 >= start.length) break; pos1++; val = val1; } pos = pos1 - 1;
public String substituteInto(String input) { // a la Perl, $0 is whole thing, $1 - $9 are subexpressions StringBuffer output = new StringBuffer(); int pos; for (pos = 0; pos < input.length()-1; pos++) { if ((input.charAt(pos) == '$') && (Character.isDigit(input.charAt(pos+1)))) { int val = Character.digit(inpu...
{
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAKey)) { return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams...
} if (!(obj instanceof DSAKey)) {
if (! (obj instanceof DSAKey))
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAKey)) { return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams...
}
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAKey)) { return false; } DSAKey that = (DSAKey) obj; return p.equals(that.getParams().getP()) && q.equals(that.getParams().getQ()) && g.equals(that.getParams...
String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("defaultFormat=").append(defaultFormat).append(",").append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls)
String ls = (String) AccessController.doPrivileged(new GetPropertyAction("line.separator")); StringBuilder sb = new StringBuilder(ls) .append("defaultFormat=").append(defaultFormat).append(",") .append(ls); if (hasInheritedParameters()) sb.append("p=inherited,").append(ls) .append("q=inherited,").append(ls) .append("g=...
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("defaultFormat=").append(defaultFormat).append(",").append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls) ...
.append("g=0x").append(g.toString(16)) .toString();
.append("g=0x").append(g.toString(16)); str = sb.toString();
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("defaultFormat=").append(defaultFormat).append(",").append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls) ...
return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, true);
return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, false);
public CharsetEncoder newEncoder () { return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, true); }
catch (CertificateException ignored)
catch (CertificateException e)
public static final CertificateFactory getInstance(String type) throws CertificateException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(type, p[i]); } catch (CertificateException ignored) { ...
return null;
return super.getAccessibleRelationSet();
public AccessibleRelationSet getAccessibleRelationSet() { return null; // TODO }
return Toolkit.getDefaultToolkit().createImage( new FilteredImageSource(src.getSource(), new GrayFilter(false, 100)));
return (Toolkit.getDefaultToolkit(). createImage(new FilteredImageSource(src.getSource(), new GrayFilter(false, 100))));
public static Image createDisabledImage(Image src) { return Toolkit.getDefaultToolkit().createImage( new FilteredImageSource(src.getSource(), new GrayFilter(false, 100))); }
public ImageIcon(Image image) { this(image, null); }
public ImageIcon() { }
public ImageIcon(Image image) { this(image, null); }
return (char) (ch + upper[readChar(ch) >> 7]);
return (char) (upper[0][readCodePoint((int)ch) >>> 7] + ch);
public static char toUpperCase(char ch) { // Signedness doesn't matter, as result is cast back to char. return (char) (ch + upper[readChar(ch) >> 7]); }
public BAD_INV_ORDER(String reason, int minor, CompletionStatus completed)
public BAD_INV_ORDER(String message)
public BAD_INV_ORDER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
super(reason, minor, completed);
super(message, 0, CompletionStatus.COMPLETED_NO);
public BAD_INV_ORDER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
throw new IllegalArgumentException();
throw new IllegalArgumentException((w <= 0 ? " width<=0" : " width is ok") +(h <= 0 ? " height<=0" : " height is ok"));
public SampleModel(int dataType, int w, int h, int numBands) { if ((w <= 0) || (h <= 0)) throw new IllegalArgumentException(); // FIXME: How can an int be greater than Integer.MAX_VALUE? // FIXME: How do we identify an unsupported data type? this.dataType = dataType; this.width = w; this.height = h; this.numB...
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { for (int b = 0; b < numBands; b++) { setSample(x, y, b, iArray[b], data); }
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { for (int b=0; b<numBands; b++) setSample(x, y, b, iArray[b], data);
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { for (int b = 0; b < numBands; b++) { setSample(x, y, b, iArray[b], data); } }
public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) {
public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h;
public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { //int size = w * h; int inOffset = 0; for (int yy = y; yy < (y + h); yy++) for (int xx = x; xx < (x + w); xx++) setSample(xx, yy, b, iArray[inOffset++], data); }
1, k);
1);
private static Monitor installInflatedLock(Object k) { Monitor m = null; Word monAddr = null; final Address kPtr = ObjectReference.fromObject(k).toAddress(); final Address statusPtr = kPtr.add(ObjectLayout.FLAGS_SLOT * Address.size()); for (;;) { final Wo...
public IllegalMonitorStateException(String s)
public IllegalMonitorStateException()
public IllegalMonitorStateException(String s) { super(s); }
super(s);
public IllegalMonitorStateException(String s) { super(s); }
mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) {
if (owner != VmProcessor.current().currentThread) {
public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ...
mutex.unlock();
public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ...
VmMagic.currentProcessor().disableReschedule(false, null); owner = null; lockCount = 0; final VmThread t = this.enterQueue.dequeue(); VmMagic.currentProcessor().enableReschedule(false, null); mutex.unlock(); if (t != null) { t.wakeupFromEnterQueue(this);
lock(); try { wakeupWaitingThreads(enterQueue, true); owner = null; lockCount = 0; } finally { unlock();
public final void exit() { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; mutex.unlock(); } else if (lockCount <= 0) { lockCount = 0; ...
mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) {
if (owner != current) {
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els...
VmMagic.currentProcessor().disableReschedule(false, null); VmThread t = notifyQueue.dequeue(); while (t != null) { t.wakeupFromNotifyQueue(this); enterQueue.enqueue(t, false); if (!all) { break; } t = notifyQueue.dequeue();
lock(); try { wakeupWaitingThreads(notifyQueue, all); } finally { unlock();
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els...
VmMagic.currentProcessor().enableReschedule(false, null);
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els...
mutex.unlock();
final void Notify(boolean all) { String exMsg = null; mutex.lock(); if (owner != VmMagic.currentProcessor().currentThread) { exMsg = "Current thread is not the owner of this monitor"; } else if (lockCount == 0) { exMsg = "Monitor is not locked"; } els...
final VmThreadProxy proxy; final int waitState; if (timeout > 0) { waitState = VmThread.WAITING_NOTIFY_TIMEOUT; proxy = new VmThreadProxy(current, VmSystem .currentKernelMillis() + timeout); } else { waitState = VmThread.WAITING_NOTIFY; proxy = new VmThreadProxy(current); } VmMagic.currentProcessor().disableReschedul...
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
VmMagic.currentProcessor().enableReschedule(true, mutex);
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
current.goSleepByMonitor(this, object, proxy, waitState); notifyQueue.enqueue(proxy);
final int waitState = (timeout > 0) ? VmThread.WAITING_NOTIFY_TIMEOUT : VmThread.WAITING_NOTIFY; lock(); try { prepareWait(current, notifyQueue, waitState, "mon-notify"); VmMagic.currentProcessor().disableReschedule(true); } finally { unlock(); }
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
VmMagic.currentProcessor().getScheduler().addToWakeupQueue( proxy);
current.wakeupTime = VmSystem.currentKernelMillis() + timeout; VmMagic.currentProcessor().getScheduler().addToSleepQueue(current);
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
final VmThread t = this.enterQueue.dequeue(); if (t != null) { t.wakeupFromEnterQueue(this); } VmMagic.currentProcessor().suspend(true, mutex);
wakeupWaitingThreads(enterQueue, true); VmMagic.currentProcessor().suspend(true);
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
if (timeout > 0) { lock(); try { notifyQueue.remove(current); } finally { unlock(); } }
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
mutex.lock();
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
mutex.unlock();
public final void Wait(long timeout) throws InterruptedException { final VmThread current = VmMagic.currentProcessor().getCurrentThread(); // final int id = current.getId(); String exMsg = null; // Prepare allocations final VmThreadProxy proxy; final int waitState; i...
stylesheet.bindings.push(false);
stylesheet.bindings.push(Bindings.PARAM);
TransformerImpl(TransformerFactoryImpl factory, Stylesheet stylesheet, Properties outputProperties) throws TransformerConfigurationException { this.factory = factory; uriResolver = factory.userResolver; errorListener = factory.userListener; this.stylesheet = styleshee...
stylesheet.bindings.pop(false); stylesheet.bindings.push(false);
stylesheet.bindings.pop(Bindings.PARAM); stylesheet.bindings.push(Bindings.PARAM);
public void clearParameters() { if (stylesheet != null) { stylesheet.bindings.pop(false); stylesheet.bindings.push(false); } }
return stylesheet.bindings.get(name, null, 1, 1);
return stylesheet.bindings.get(new QName(null, name), null, 1, 1);
public Object getParameter(String name) { if (stylesheet != null) { return stylesheet.bindings.get(name, null, 1, 1); } return null; }
stylesheet.bindings.set(name, value, false);
stylesheet.bindings.set(new QName(null, name), value, Bindings.PARAM);
public void setParameter(String name, Object value) { if (stylesheet != null) { stylesheet.bindings.set(name, value, false); } }
void push(boolean global)
void push(int type)
void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } }
if (global)
switch (type)
void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } }
} else {
break; case PARAM:
void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } }
break; case WITH_PARAM: withParameters.addFirst(new HashMap()); break;
void push(boolean global) { if (global) { variables.addFirst(new HashMap()); } else { parameters.addFirst(new HashMap()); } }
void pop(boolean global)
void pop(int type)
void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } }
if (global)
switch (type)
void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } }
} else {
break; case PARAM:
void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } }
break; case WITH_PARAM: withParameters.removeFirst(); break;
void pop(boolean global) { if (global) { variables.removeFirst(); } else { parameters.removeFirst(); } }
public Object get(String name, Node context, int pos, int len)
public Object get(QName name, Node context, int pos, int len)
public Object get(String name, Node context, int pos, int len) { //System.err.println("bindings.get: "+name); //System.err.println("\t"+toString()); Object ret = null; for (Iterator i = variables.iterator(); i.hasNext() && ret == null; ) { Map vctx = (Map) i.next(); ret = vctx.get(name...
if (e instanceof AbstractMap.BasicMapEntry)
if (e instanceof AbstractMap.SimpleEntry)
public synchronized void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicM...
AbstractMap.BasicMapEntry<? extends K, ? extends V> entry = (AbstractMap.BasicMapEntry<? extends K, ? extends V>) e;
AbstractMap.SimpleEntry<? extends K, ? extends V> entry = (AbstractMap.SimpleEntry<? extends K, ? extends V>) e;
public synchronized void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicM...
void set(String name, Object value, boolean global)
void set(QName name, Object value, int type)
void set(String name, Object value, boolean global) { if (global) { Map context = (Map) variables.getFirst(); context.put(name, value); } else { Map context = (Map) parameters.getFirst(); context.put(name, value); } }
if (global)
switch (type)
void set(String name, Object value, boolean global) { if (global) { Map context = (Map) variables.getFirst(); context.put(name, value); } else { Map context = (Map) parameters.getFirst(); context.put(name, value); } }
Map context = (Map) variables.getFirst(); context.put(name, value);
case VARIABLE: Map vctx = (Map) variables.getFirst(); vctx.put(name, value); break; case PARAM: Map pctx = (Map) parameters.getFirst(); pctx.put(name, value); break; case WITH_PARAM: Map wctx = (Map) withParameters.getFirst(); wctx.put(name, value); break;
void set(String name, Object value, boolean global) { if (global) { Map context = (Map) variables.getFirst(); context.put(name, value); } else { Map context = (Map) parameters.getFirst(); context.put(name, value); } }
else { Map context = (Map) parameters.getFirst(); context.put(name, value); }
void set(String name, Object value, boolean global) { if (global) { Map context = (Map) variables.getFirst(); context.put(name, value); } else { Map context = (Map) parameters.getFirst(); context.put(name, value); } }
for (Iterator i = variables.iterator(); i.hasNext(); )
current = context; List topLevel = new ArrayList(variables); Collections.sort(topLevel); for (Iterator i = topLevel.iterator(); i.hasNext(); )
void initTopLevelVariables(Node context) throws TransformerException { for (Iterator i = variables.iterator(); i.hasNext(); ) { ParameterNode var = (ParameterNode) i.next(); bindings.set(var.name, var.getValue(this, null, context, 1, 1), var.global); ...
var.global);
var.type);
void initTopLevelVariables(Node context) throws TransformerException { for (Iterator i = variables.iterator(); i.hasNext(); ) { ParameterNode var = (ParameterNode) i.next(); bindings.set(var.name, var.getValue(this, null, context, 1, 1), var.global); ...
current = null;
void initTopLevelVariables(Node context) throws TransformerException { for (Iterator i = variables.iterator(); i.hasNext(); ) { ParameterNode var = (ParameterNode) i.next(); bindings.set(var.name, var.getValue(this, null, context, 1, 1), var.global); ...
public StreamSerializer(int mode, String encoding, String eol)
public StreamSerializer()
public StreamSerializer(int mode, String encoding, String eol) { this.mode = mode; if (encoding == null) { encoding = "UTF-8"; } this.encoding = encoding.intern(); charset = Charset.forName(this.encoding); encoder = charset.newEncoder(); this.eol = (eol != null) ? eol : System.getP...
this.mode = mode; if (encoding == null) { encoding = "UTF-8"; } this.encoding = encoding.intern(); charset = Charset.forName(this.encoding); encoder = charset.newEncoder(); this.eol = (eol != null) ? eol : System.getProperty("line.separator"); namespaces = new HashMap();
this(Stylesheet.OUTPUT_XML, null, null);
public StreamSerializer(int mode, String encoding, String eol) { this.mode = mode; if (encoding == null) { encoding = "UTF-8"; } this.encoding = encoding.intern(); charset = Charset.forName(this.encoding); encoder = charset.newEncoder(); this.eol = (eol != null) ? eol : System.getP...
return name.getEncoded();
if (encoded == null) encodeDer(); return (byte[]) encoded.clone();
public byte[] getEncoded() { return name.getEncoded(); }
adaptee.init (Collections.singletonMap (MDGenerator.MD_NAME, mdName));
protected SecureRandomAdapter(String mdName) { super(); this.mdName = mdName; }
Monitor(VmThread owner, int lockCount, Object object) { this.owner = owner; this.lockCount = lockCount; if (lockCount < 1) { throw new IllegalArgumentException("LockCount must be >= 1"); } this.object = object; this.mutex = new ProcessorLock(); this.enterQueue = new VmThreadScheduleQueue("mon-enter"); this.notifyQueue ...
public Monitor() { this.lockCount = 0; this.monitorLock = 0; this.owner = null; this.enterQueue = new VmThreadQueue.ScheduleQueue("mon-enter"); this.notifyQueue = new VmThreadQueue.ScheduleQueue("mon-notify");
Monitor(VmThread owner, int lockCount, Object object) { this.owner = owner; this.lockCount = lockCount; if (lockCount < 1) { throw new IllegalArgumentException("LockCount must be >= 1"); } this.object = object; this.mutex = new ProcessorLock(); this.enterQ...
computeFields();
public void setTimeInMillis(long time) { clear(); this.time = time; isTimeSet = true; }
public static TimeZone getDefault() { return defaultZone;
public static TimeZone getDefault() { return (TimeZone) defaultZone().clone();
public static TimeZone getDefault() { return defaultZone; }
public static synchronized ResourceBundle getBundle (String baseName, Locale locale, ClassLoader classLoader)
public static ResourceBundle getBundle(String baseName)
public static synchronized ResourceBundle getBundle (String baseName, Locale locale, ClassLoader classLoader) { // If the default locale changed since the last time we were called, // all cache entries are invalidated. Locale defaultLocale = Locale.getDefault(); if (defaultLocale != lastDefaultLocale)...
Locale defaultLocale = Locale.getDefault(); if (defaultLocale != lastDefaultLocale) { bundleCache = new HashMap(); lastDefaultLocale = defaultLocale; } lookupKey.set(baseName, locale, classLoader); Object obj = bundleCache.get(lookupKey); ResourceBundle rb = null; if (obj instanceof ResourceBundle) { return (Resour...
ClassLoader cl = VMStackWalker.getCallingClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return getBundle(baseName, Locale.getDefault(), cl);
public static synchronized ResourceBundle getBundle (String baseName, Locale locale, ClassLoader classLoader) { // If the default locale changed since the last time we were called, // all cache entries are invalidated. Locale defaultLocale = Locale.getDefault(); if (defaultLocale != lastDefaultLocale)...
public GregorianCalendar(TimeZone zone, Locale locale)
public GregorianCalendar()
public GregorianCalendar(TimeZone zone, Locale locale) { this(zone, locale, false); setTimeInMillis(System.currentTimeMillis()); complete(); }
this(zone, locale, false); setTimeInMillis(System.currentTimeMillis()); complete(); }
this(TimeZone.getDefault(), Locale.getDefault()); }
public GregorianCalendar(TimeZone zone, Locale locale) { this(zone, locale, false); setTimeInMillis(System.currentTimeMillis()); complete(); }
public void schedule(TimerTask task, long delay, long period)
private void schedule(TimerTask task, long time, long period, boolean fixed)
public void schedule(TimerTask task, long delay, long period) { positiveDelay(delay); positivePeriod(period); long time = System.currentTimeMillis() + delay; schedule(task, time, period, false); }
positiveDelay(delay); positivePeriod(period); long time = System.currentTimeMillis() + delay; schedule(task, time, period, false);
if (time < 0) throw new IllegalArgumentException("negative time"); if (task.scheduled == 0 && task.lastExecutionTime == -1) { task.scheduled = time; task.period = period; task.fixed = fixed; } else { throw new IllegalStateException ("task was already scheduled or canceled"); } if (!this.canceled && this.thread != nul...
public void schedule(TimerTask task, long delay, long period) { positiveDelay(delay); positivePeriod(period); long time = System.currentTimeMillis() + delay; schedule(task, time, period, false); }
this.started = false;
public Plugin(PluginDescriptor descriptor) { this.descriptor = descriptor; if (descriptor == null) { throw new IllegalArgumentException("descriptor cannot be null"); } }
public InflaterInputStream(InputStream in, Inflater inf, int size)
public InflaterInputStream(InputStream in)
public InflaterInputStream(InputStream in, Inflater inf, int size) { super(in); if (in == null) throw new NullPointerException("in may not be null"); if (inf == null) throw new NullPointerException("inf may not be null"); if (size < 0) throw new IllegalArgumentException("size may not ...
super(in); if (in == null) throw new NullPointerException("in may not be null"); if (inf == null) throw new NullPointerException("inf may not be null"); if (size < 0) throw new IllegalArgumentException("size may not be negative"); this.inf = inf; this.buf = new byte [size];
this(in, new Inflater(), 4096);
public InflaterInputStream(InputStream in, Inflater inf, int size) { super(in); if (in == null) throw new NullPointerException("in may not be null"); if (inf == null) throw new NullPointerException("inf may not be null"); if (size < 0) throw new IllegalArgumentException("size may not ...
setBorderSelectionColor(UIManager.getLookAndFeelDefaults().getColor( "Tree.selectionBorderColor"));
if (tree.getLeadSelectionPath() == null || (tree.getLeadSelectionPath().getLastPathComponent()).equals(val)) setBorderSelectionColor(UIManager.getLookAndFeelDefaults(). getColor("Tree.selectionBorderColor")); else setBorderSelectionColor(null);
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI...
public Component getTreeCellRendererComponent(JTree tree,
Component getTreeCellRendererComponent(JTree tree,
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus);
result.loadToGPR(ec);
final void convert(int fromType, int toType) { final ItemFactory ifac = ec.getItemFactory(); final Item v = vstack.pop(fromType); if (v.isConstant()) { vstack.push(createConst(ifac, toType, getFPValue(v))); v.release(ec); } else { v.pushToFPU(ec); vstack.fpuStack.pop(v); v.release(ec); ...
private static final void fxch(AbstractX86Stream os, FPUStack fpuStack,
static final void fxch(AbstractX86Stream os, FPUStack fpuStack,
private static final void fxch(AbstractX86Stream os, FPUStack fpuStack, Register fpuReg) { if (fpuReg == Register.ST0) { throw new StackException("Cannot fxch ST0"); } os.writeFXCH(fpuReg); fpuStack.fxch(fpuReg); }
public static void _assert(boolean value, String msg) {
public static void _assert(boolean value) {
public static void _assert(boolean value, String msg) { if (!value) { assertionFailed(msg, null); } }
assertionFailed(msg, null);
assertionFailed(null, null);
public static void _assert(boolean value, String msg) { if (!value) { assertionFailed(msg, null); } }
public Iterator getCurrentServiceSelectors(BeanContextServices services, Class serviceClass);
Iterator getCurrentServiceSelectors(BeanContextServices services, Class serviceClass);
public Iterator getCurrentServiceSelectors(BeanContextServices services, Class serviceClass);
public Object getService(BeanContextServices services, Object requestor, Class serviceClass, Object serviceSelector);
Object getService(BeanContextServices services, Object requestor, Class serviceClass, Object serviceSelector);
public Object getService(BeanContextServices services, Object requestor, Class serviceClass, Object serviceSelector);
public void releaseService(BeanContextServices services, Object requestor, Object service);
void releaseService(BeanContextServices services, Object requestor, Object service);
public void releaseService(BeanContextServices services, Object requestor, Object service);
public void serviceRevoked(BeanContextServiceRevokedEvent event);
void serviceRevoked(BeanContextServiceRevokedEvent event);
public void serviceRevoked(BeanContextServiceRevokedEvent event);
public void addBeanContextServicesListener(BeanContextServicesListener listener);
void addBeanContextServicesListener (BeanContextServicesListener listener);
public void addBeanContextServicesListener(BeanContextServicesListener listener);
public boolean addService(Class serviceClass, BeanContextServiceProvider provider);
boolean addService (Class serviceClass, BeanContextServiceProvider provider);
public boolean addService(Class serviceClass, BeanContextServiceProvider provider);
public Iterator getCurrentServiceClasses();
Iterator getCurrentServiceClasses ();
public Iterator getCurrentServiceClasses();
public Iterator getCurrentServiceSelectors(Class serviceClass);
Iterator getCurrentServiceSelectors (Class serviceClass);
public Iterator getCurrentServiceSelectors(Class serviceClass);
public Object getService(BeanContextChild requestorChild, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener listener);
Object getService (BeanContextChild requestorChild, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener listener) throws TooManyListenersException;
public Object getService(BeanContextChild requestorChild, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener listener);
public boolean hasService(Class serviceClass);
boolean hasService (Class serviceClass);
public boolean hasService(Class serviceClass);
public void releaseService(BeanContextChild requestorChild, Object requestor, Object service);
void releaseService (BeanContextChild requestorChild, Object requestor, Object service);
public void releaseService(BeanContextChild requestorChild, Object requestor, Object service);
public void removeBeanContextServicesListener(BeanContextServicesListener listener);
void removeBeanContextServicesListener (BeanContextServicesListener listener);
public void removeBeanContextServicesListener(BeanContextServicesListener listener);
public void revokeService(Class serviceClass, BeanContextServiceProvider provider, boolean revokeNow);
void revokeService (Class serviceClass, BeanContextServiceProvider provider, boolean revokeNow);
public void revokeService(Class serviceClass, BeanContextServiceProvider provider, boolean revokeNow);
return new Enumerator<V>(VALUES);
return new ValueEnumerator();
public Enumeration<V> elements() { return new Enumerator<V>(VALUES); }
switch (event.getType()) { case TableModelEvent.INSERT: tableRowsInserted(event); break; case TableModelEvent.DELETE: tableRowsDeleted(event); break; }
public void tableChanged(TableModelEvent event) { // TODO Auto-generated method stub }
setOpaque(true); if (isSelected) { setBackground(table.getSelectionBackground()); setForeground(table.getSelectionForeground()); } else { setBackground(table.getBackground()); setForeground(table.getForeground()); } setEnabled(table.isEnabled()); setFont(table.getFont());
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value!=null) super.setTex...
public void setDelay(int delay)
public void setDelay(int d)
public void setDelay(int delay) { interval = delay; }
interval = delay;
delay = d;
public void setDelay(int delay) { interval = delay; }