rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return KeyPairGeneratorFactory.getNames(); | if (names == null) { HashSet hs = new HashSet(); hs.add(Registry.DSS_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.X509_ENCODING_SORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.PKCS8_ENCODING_SHORT_NAME); hs.add(Registry.RSA_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); h... | public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); } |
return super.clone(); | BasePRNG result = (BasePRNG) super.clone(); if (this.buffer != null) result.buffer = (byte[])this.buffer.clone(); return result; | public Object clone() throws CloneNotSupportedException { return super.clone(); } |
checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); | DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... |
checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); | DerUtil.checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... |
checkIsConstructed(derParams, "Wrong DSS Parameters field"); | DerUtil.checkIsConstructed(derParams, "Wrong DSS Parameters field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... |
checkIsBigInteger(val, "Wrong P field"); | DerUtil.checkIsBigInteger(val, "Wrong P field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... |
checkIsBigInteger(val, "Wrong Q field"); | DerUtil.checkIsBigInteger(val, "Wrong Q field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... |
checkIsBigInteger(val, "Wrong G field"); | DerUtil.checkIsBigInteger(val, "Wrong G field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... |
checkIsBigInteger(val, "Wrong Y field"); | DerUtil.checkIsBigInteger(val, "Wrong Y field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... |
String indentStr = ""; | StringBuffer b = new StringBuffer(); | public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } |
indentStr += " "; dumpElement(stream, indentStr, this); | b.append(' '); b.append('<'); b.append(getName()); if (getAttributeCount() > 0) { b.append('\n'); Enumeration attNames = getAttributeNames(); while (attNames.hasMoreElements()) { for (int i = 0; i < indent + 2; ++i) b.append(' '); Object attName = attNames.nextElement(); b.append(attName); b.append('='); Object attrib... | public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } |
protected Content getContent() { return content; } | protected final Content getContent() { return content; } | protected Content getContent() { return content; } |
this.currentUninterruptible = method.isUninterruptible(); | public void startMethod(VmMethod method) { this.currentMethod = method; this.currentKernelSpace = method.hasKernelSpacePragma(); super.startMethod(method); } | |
if (currentKernelSpace) { | if (currentKernelSpace || currentUninterruptible) { | protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRef.getResolvedVmMethod(); ... |
if (!callee.hasKernelSpacePragma()) { System.out.println("Method '" + currentMethod.getFullName() + "' calls method outside KernelSpace: " + callee.getFullName()); | if (currentKernelSpace) { if (!callee.hasKernelSpacePragma()) { System.out.println("Method calls method outside KernelSpace:\n\tcaller: " + currentMethod.getFullName() + "\n\tcallee: " + callee.getFullName()); } } if (currentUninterruptible) { if (!callee.isUninterruptible()) { if (currentMethod.getDeclaringClass().g... | protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRef.getResolvedVmMethod(); ... |
selectedItem = getElementAt(selected - 1); | setSelectedItem(getElementAt(selected - 1)); | public void removeElementAt(int index) { int selected = getIndexOf(selectedItem); if (selected == index) // choose a new selected item { if (selected > 0) selectedItem = getElementAt(selected - 1); else selectedItem = getElementAt(selected + 1); } list.removeElemen... |
selectedItem = getElementAt(selected + 1); | setSelectedItem(getElementAt(selected + 1)); | public void removeElementAt(int index) { int selected = getIndexOf(selectedItem); if (selected == index) // choose a new selected item { if (selected > 0) selectedItem = getElementAt(selected - 1); else selectedItem = getElementAt(selected + 1); } list.removeElemen... |
final DoubleWordItem result = DoubleWordItem.createReg(jvmType, lsb, | final DoubleWordItem result = ifac.createReg(jvmType, lsb, | static final DoubleWordItem requestDoubleWordRegisters( EmitterContext eContext, int jvmType) { final X86RegisterPool pool = eContext.getPool(); final Register lsb = requestRegister(eContext, JvmType.INT, false); final Register msb = requestRegister(eContext, JvmType.INT, false); final DoubleWordItem result = Do... |
final WordItem result = WordItem.createReg(jvmType, reg); | final WordItem result = ifac.createReg(jvmType, reg); | static final WordItem requestWordRegister(EmitterContext eContext, int jvmType, boolean supportsBits8) { final X86RegisterPool pool = eContext.getPool(); final Register reg = requestRegister(eContext, JvmType.INT, supportsBits8); final WordItem result = WordItem.createReg(jvmType, reg); pool.transferOwnerTo(r... |
vsb.setValue(vr.y, vr.height, 0, vs.height); | vsb.setValues(vr.y, vr.height, 0, vs.height); | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... |
hsb.setValue(vr.x, vr.width, 0, vs.width); | hsb.setValues(vr.x, vr.width, 0, vs.width); | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... |
vsb.setValue(vr.y, vr.height, 0, vs.height); | vsb.setValues(vr.y, vr.height, 0, vs.height); | public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) ... |
hsb.setValue(vr.x, vr.width, 0, vs.width); | hsb.setValues(vr.x, vr.width, 0, vs.width); | public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) ... |
super(); | this.list = list; | public SwingListPeer(final List list) { super(); SwingToolkit.add(list, this); SwingToolkit.copyAwtProperties(list, this); final ListModel model = new AbstractListModel() { public int getSize() { return list.getItemCount(); } public Object getElementAt(int idx) { return list.getItem(idx); } }; } |
public int getSize() { return list.getItemCount(); } public Object getElementAt(int idx) { return list.getItem(idx); } }; | public Object getElementAt(int idx) { return list.getItem(idx); } public int getSize() { return list.getItemCount(); } }; | public SwingListPeer(final List list) { super(); SwingToolkit.add(list, this); SwingToolkit.copyAwtProperties(list, this); final ListModel model = new AbstractListModel() { public int getSize() { return list.getItemCount(); } public Object getElementAt(int idx) { return list.getItem(idx); } }; } |
public void addNodeChangeListener(NodeChangeListener listener) { | public void addNodeChangeListener(NodeChangeListener listener) { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("node has been removed"); if (listener == null) throw new NullPointerException("listener is null"); if (nodeListeners == null) nodeListeners = new ArrayList(); nodeListeners.add(listen... | public void addNodeChangeListener(NodeChangeListener listener) { // XXX } |
public void addPreferenceChangeListener(PreferenceChangeListener listener) { | public void addPreferenceChangeListener(PreferenceChangeListener listener) { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("node has been removed"); if (listener == null) throw new NullPointerException("listener is null"); if (preferenceListeners == null) preferenceListeners = new ArrayList(); ... | public void addPreferenceChangeListener(PreferenceChangeListener listener) { // XXX } |
synchronized(this) { | synchronized(lock) { | private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized(lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(new String[]{}); } if (keys != null) { for (int i = 0; i < keys.length; i++) { ... |
if (child.newNode && nodeListeners != null) fire(new NodeChangeEvent(this, child), true); | private Preferences getNode(String path) { // if mark is dom then goto end // Empty String "" indicates this node if (path.length() == 0) return this; // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path; c... | |
synchronized(node) { | synchronized(node.lock) { | private void purge() throws BackingStoreException { // Make sure all children have an AbstractPreferences node in cache String children[] = childrenNamesSpi(); for (int i = 0; i < children.length; i++) { if (childCache.get(children[i]) == null) childCache.put(children[i], childSpi(children[i])); } // p... |
if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); | private void purge() throws BackingStoreException { // Make sure all children have an AbstractPreferences node in cache String children[] = childrenNamesSpi(); for (int i = 0; i < children.length; i++) { if (childCache.get(children[i]) == null) childCache.put(children[i], childSpi(children[i])); } // p... | |
if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); | public void put(String key, String value) { if (key.length() > MAX_KEY_LENGTH || value.length() > MAX_VALUE_LENGTH) throw new IllegalArgumentException("key (" + key.length() + ")" + " or value (" ... | |
put(key, String.valueOf(value)); | put(key, Boolean.toString(value)); | public void putBoolean(String key, boolean value) { put(key, String.valueOf(value)); // XXX - Use when using 1.4 compatible Boolean // put(key, Boolean.toString(value)); } |
if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, null)); | public void remove(String key) { if (key.length() > MAX_KEY_LENGTH) throw new IllegalArgumentException(key); synchronized(lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); removeSpi(key); } } | |
synchronized(parent) { synchronized(this) { | synchronized (parent.lock) { synchronized(this.lock) { | public void removeNode() throws BackingStoreException { // Check if it is a root node if (parent == null) throw new UnsupportedOperationException("Cannot remove root node"); synchronized(parent) { synchronized(this) { if (isRemoved()) throw new IllegalStateException("Node Removed"); pur... |
public void removeNodeChangeListener(NodeChangeListener listener) { } | public void removeNodeChangeListener(NodeChangeListener listener) { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("node has been removed"); if (listener == null) throw new NullPointerException("listener is null"); if (nodeListeners != null) nodeListeners.remove(listener); } } | public void removeNodeChangeListener(NodeChangeListener listener) { // XXX } |
} | synchronized (lock) { if (isRemoved()) throw new IllegalStateException("node has been removed"); if (listener == null) throw new NullPointerException("listener is null"); if (preferenceListeners != null) preferenceListeners.remove(listener); } } | public void removePreferenceChangeListener (PreferenceChangeListener listener) { // XXX } |
} else if (f.isAddressType()) { if (val == null) { } else if (val instanceof UnboxedObject) { final UnboxedObject uobj = (UnboxedObject)val; statics.setAddress(idx, uobj); } else if (val instanceof Label) { final Label lbl = (Label)val; statics.setAddress(idx, lbl); } else { throw new BuildException("Cannot handle mag... | private void copyStaticField(VmType< ? > type, VmField f, Field jf, VmSharedStatics sharedStatics, VmIsolatedStatics isolatedStatics, NativeStream os, ObjectEmitter emitter) throws IllegalAccessException, JNodeClassNotFoundException { jf.setAccessible(true); final Obje... | |
public static boolean passEulerCriterion(final BigInteger w) { WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) | public static boolean passEulerCriterion(final BigInteger bn) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
debug("found in known primes"); } return true; } BigInteger w_minus_one = w.subtract(ONE); BigInteger e = w_minus_one; | BigInteger bn_minus_one = bn.subtract(ONE); BigInteger e = bn_minus_one; | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
BigInteger A; | BigInteger a; | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
if ((l & 7) != 0) | if (l != 0) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
A = TWO.modPow(e, w); if ((l & 7) == 6) { if (A.bitCount() != 1) | a = TWO.modPow(e, bn); if (l == 6) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
if (DEBUG && debuglevel > 4) | if (a.bitLength() != 1) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
debug(w.toString(16) + " fails Euler criterion #1..."); } | debugBI("Fails Euler criterion #1", bn); | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
else { A = A.add(ONE); if (!A.equals(w)) | else | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
if (DEBUG && debuglevel > 4) | a = a.add(ONE); if (a.compareTo(bn) != 0) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
debug(w.toString(16) + " fails Euler criterion #2..."); } | debugBI("Fails Euler criterion #2", bn); | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
A = TWO.modPow(e, w); if (A.bitCount() == 1) { | a = TWO.modPow(e, bn); if (a.bitLength() == 1) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
} | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... | |
A = A.add(ONE); if (!A.equals(w)) | a = a.add(ONE); if (a.compareTo(bn) != 0) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
if (DEBUG && debuglevel > 4) { debug(w.toString(16) + " fails Euler criterion #3..."); } | debugBI("Fails Euler criterion #3", bn); | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
for (int i = j; i < 13; i++) { A = SMALL_PRIME[i]; A = A.modPow(e, w); if (A.bitCount() == 1) | for (int i = j; i < 7; i++) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
if (A.equals(w_minus_one)) { | if (a.compareTo(bn_minus_one) == 0) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
} if (--l == 0) { if (DEBUG && debuglevel > 4) | if (--l == 0) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
debug(w.toString(16) + " fails Euler criterion #4..."); } | debugBI("Fails Euler criterion #4", bn); | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
A = A.modPow(TWO, w); if (A.bitCount() == 1) | a = a.modPow(TWO, bn); if (a.bitLength() == 1) | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
if (DEBUG && debuglevel > 4) { debug(w.toString(16) + " fails Euler criterion #5..."); } | debugBI("Fails Euler criterion #5", bn); | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
if (DEBUG && debuglevel > 4) { debug(w.toString(16) + " passes Euler criterion..."); } knownPrimes.put(w, new WeakReference(w)); | debugBI("Passes Euler criterion", bn); | public static boolean passEulerCriterion(final BigInteger w) { // first check if it's already a known prime WeakReference obj = (WeakReference) knownPrimes.get(w); if (obj != null && w.equals(obj.get())) { if (DEBUG && debuglevel > 4) { debug("found in known primes"); ... |
return new InliningBytecodeVisitor(entryPoints, cbv, loader); | return new OptimizingBytecodeVisitor(entryPoints, cbv, loader); | protected CompilerBytecodeVisitor createBytecodeVisitor(VmMethod method, CompiledMethod cm, NativeStream os, int level, boolean isBootstrap) { final InlineBytecodeVisitor cbv; final EntryPoints entryPoints = getEntryPoints(); cbv = new X86BytecodeVisitor(os, cm, isBootstrap, entryPoi... |
System.out.println(" Endi dragging "); | public void endDraggingFrame(JComponent f) {// super.endDraggingFrame(f); JInternalFrame frame = (JInternalFrame)f;// JDesktopPane desk = frame.getDesktopPane();// desk.repaint();// frame.validate();// frame.repaint(); ((Gui5250)frame.getContent... | |
setSize(300,300); | setSize(600,500); | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the w... |
displayMessage("Internal frame deactivated", e); | public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable internalId = openFrameCount; //...Create the GUI and put it in the window... //...Then set the w... | |
disconnectMe(); | public void internalFrameClosed(InternalFrameEvent e) {// displayMessage("Internal frame closed", e); } | |
displayMessage("Internal frame deactivated", e); | public void internalFrameDeactivated(InternalFrameEvent e) { activated = false; displayMessage("Internal frame deactivated", e); } | |
System.out.println("update"); | public void update(Graphics g) { paint(g); System.out.println("update"); } | |
try { frame.setMaximum(true); } catch (java.beans.PropertyVetoException pve) { System.out.println("Can not set maximum " + pve.getMessage()); } | public void addSessionView(String tabText,Session session) { MyInternalFrame frame = new MyInternalFrame(); frame.setVisible(true); desktop.add(frame); selectedIndex = desktop.getComponentCount(); frame.setContentPane(session); try { frame.setSelected(true); } catch (java.b... | |
this.repaint(); | public void removeSessionView(Session targetSession) { int index = getIndexOfSession(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); desktop.remove(index); } | |
attribOrder.add("errorValue"); | private void init() { // append more attributes attribOrder.add("upperErrorValue"); attribOrder.add("lowerErrorValue"); attribOrder.add("errorValue"); //set up the attribute hashtable key with the default initial value attribHash.put("upperErrorValue", new XMLAttribute(null, Constan... | |
attribHash.put("errorValue", new XMLAttribute(null, Constants.STRING_TYPE)); | private void init() { // append more attributes attribOrder.add("upperErrorValue"); attribOrder.add("lowerErrorValue"); attribOrder.add("errorValue"); //set up the attribute hashtable key with the default initial value attribHash.put("upperErrorValue", new XMLAttribute(null, Constan... | |
i++; | while (++i < abyte0.length && abyte0[i + 1] != IAC); | protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if(abyte0[i] == IAC) { // -1 while(i < abyte0.length && abyte0[i++] == -1) switch(abyte0[i++]) { // we will not worry about what it WONT do case W... |
exd.printStackTrace(); | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | |
public void setInput(Object input) | public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata) | public void setInput(Object input) { setInput(input, false, false); } |
setInput(input, false, false); | Class[] okClasses = originatingProvider.getInputTypes(); if (okClasses == null) { if (!(input instanceof ImageInputStream)) throw new IllegalArgumentException(); } else { boolean classOk = false; for (int i = 0; i < okClasses.length; ++i) if (okClasses[i].isInstance(input)) classOk = true; if (!classOk) throw new Illeg... | public void setInput(Object input) { setInput(input, false, false); } |
throw new Error("setHelpMenu() not yet implemented."); | public void setHelpMenu(JMenu menu) { } | |
ValueListInterface valueListObj = (ValueListInterface) iter.next(); | ValueList valueListObj = (ValueList) iter.next(); | protected String basicXMLWriter ( Writer outputWriter, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ... |
protected void setValueListObj (ValueListInterface valueListObj) | protected void setValueListObj (ValueList valueListObj) | protected void setValueListObj (ValueListInterface valueListObj) { resetBaseValueListObjects(); addValueListObj(valueListObj); } |
if (bindings == null) { bindings = new JTextComponent.KeyBinding[0]; defaults.put(prefix + ".keyBindings", bindings); } | protected Keymap createKeymap() { String prefix = getPropertyPrefix(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) defaults.get(prefix + ".keyBindings"); Keymap km = JTextComponent.addKeymap(getKeymapName(), ... | |
boolean editable = ((Boolean) event.getNewValue()).booleanValue(); | protected void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("editable")) { boolean editable = ((Boolean) event.getNewValue()).booleanValue(); // Changing the color only if the current background is an instance of // ColorUIResource is the behavio... | |
textComponent.setBackground(editable ? background : inactiveBackground); | { Color c = null; Color old = textComponent.getBackground(); String prefix = getPropertyPrefix(); if (! textComponent.isEnabled()) c = SharedUIDefaults.getColor(prefix + ".disabledBackground"); if (c == null && ! textComponent.isEditable()) c = SharedUIDefaults.getColor(prefix + ".inactiveBackground"); if (c == null) c... | protected void propertyChange(PropertyChangeEvent event) { if (event.getPropertyName().equals("editable")) { boolean editable = ((Boolean) event.getNewValue()).booleanValue(); // Changing the color only if the current background is an instance of // ColorUIResource is the behavio... |
int newsize = shortIndex; | int newsize = shortIndex+1; | private void checkDataArrayBounds (int longIndex, int shortIndex, int type) throws SetDataException { // Does the location exist yet? If not, create the primative arrays // that lie along the short axis int shortAxisSize = getShortAxis().getLength(); // is the long array too small? if (... |
Log.debugln("Expanding Long array size to "+newsize+" from "+currentSize +" (add capacity is "+additionalCapacity+")"); | Log.debugln(" DataCube is expanding internal LongDataArray size to "+(newsize*2)+" from "+(currentSize*2)+" (added capacity is:"+additionalCapacity+")"); | private void expandLongArray (int newsize) { int currentSize = longDataArray.size(); int additionalCapacity = (newsize - currentSize) * 2; // mult by 2 to allow for shadow byte array if (additionalCapacity > 0) {Log.debugln("Expanding Long array size to "+newsize+" from "+currentSize +" (add capacity... |
List axisList = parentArray.getAxes(); | public Object getData (Locator locator) throws NoDataException { List axisList = parentArray.getAxes(); int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !=1... | |
List axisList = parentArray.getAxes(); | public double getDoubleData (Locator locator) throws NoDataException { List axisList = parentArray.getAxes(); int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) !... | |
List axisList = parentArray.getAxes(); | public int getIntData (Locator locator) throws NoDataException { List axisList = parentArray.getAxes(); int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex) ... | |
List axisList = parentArray.getAxes(); | public long getLongData (Locator locator) throws NoDataException { List axisList = parentArray.getAxes(); int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortIndex)... | |
shortAxis = (AxisInterface) parentArray.getAxes().get(1); | shortAxis = (AxisInterface) axisList.get(1); | private AxisInterface getShortAxis () { AxisInterface shortAxis = null; List axisList = parentArray.getAxes(); if (axisList.size() > 1) { shortAxis = (AxisInterface) parentArray.getAxes().get(1); } return shortAxis; } |
List axisList = parentArray.getAxes(); | public short getShortData (Locator locator) throws NoDataException { List axisList = parentArray.getAxes(); int longIndex = getLongArrayIndex(locator); int shortIndex = getShortArrayIndex(locator); try { if (java.lang.reflect.Array.getByte(longDataArray.get(longIndex), shortInde... | |
Log.errorln("in DataCube, reset(), method is empty needs to be implemented!"); | Log.debugln("in DataCube, called reset()"); | public void reset() { Log.errorln("in DataCube, reset(), method is empty needs to be implemented!"); // reset the longDataArray, will free all related shortDataArrays. // What else needs to be done? // this.longDataArray = Collections.synchronizedList(new ArrayList()); } |
longDataArray = Collections.synchronizedList(new ArrayList()); | public void reset() { Log.errorln("in DataCube, reset(), method is empty needs to be implemented!"); // reset the longDataArray, will free all related shortDataArrays. // What else needs to be done? // this.longDataArray = Collections.synchronizedList(new ArrayList()); } | |
firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, oldPainted, | firePropertyChange("borderPainted", oldPainted, | public void setBorderPainted(boolean painted) { if (painted != paintBorder) { boolean oldPainted = paintBorder; paintBorder = painted; firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, oldPainted, paintBorder); } } |
firePropertyChange(INDETERMINATE_CHANGED_PROPERTY, olddeter, | firePropertyChange("indeterminate", olddeter, | public void setIndeterminate(boolean newValue) { if (indeterminate != newValue) { boolean olddeter = indeterminate; indeterminate = newValue; firePropertyChange(INDETERMINATE_CHANGED_PROPERTY, olddeter, indeterminate); } } |
firePropertyChange(ORIENTATION_CHANGED_PROPERTY, oldOrientation, | firePropertyChange("orientation", oldOrientation, | public void setOrientation(int orientation) { if (orientation != VERTICAL && orientation != HORIZONTAL) throw new IllegalArgumentException("orientation must be one of VERTICAL or HORIZONTAL"); if (this.orientation != orientation) { int oldOrientation = this.orientation; this.orientation = orientation... |
firePropertyChange(STRING_CHANGED_PROPERTY, oldString, progressString); | firePropertyChange("string", oldString, progressString); | public void setString(String string) { if (((string == null || progressString == null) && string != progressString) || (string != null && ! string.equals(progressString))) { String oldString = progressString; progressString = string; firePropertyChange(STRING_CHANGED_PROPERTY, oldString, progressStrin... |
firePropertyChange(STRING_PAINTED_CHANGED_PROPERTY, oldPainted, | firePropertyChange("stringPainted", oldPainted, | public void setStringPainted(boolean painted) { if (paintString != painted) { boolean oldPainted = paintString; paintString = painted; firePropertyChange(STRING_PAINTED_CHANGED_PROPERTY, oldPainted, paintString); } } |
if (accessibleContext == null) accessibleContext = new AccessibleJFrame(); | public AccessibleContext getAccessibleContext() { return accessibleContext; } | |
bad.minor = Minor.Any; | public static NameDynAnyPair extract(Any any) { try { return ((NameDynAnyPairHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("NameDynAnyPair expected"); bad.initCause(cex); throw bad; } } | |
return calculateInsetArea(b, c.getInsets(), r); | if (r == null) r = new Rectangle(); Insets i = c.getInsets(); r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom; return r; | public static Rectangle calculateInnerArea(JComponent c, Rectangle r) { Rectangle b = getLocalBounds(c); return calculateInsetArea(b, c.getInsets(), r); } |
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalComboBoxUI instance; if (o == null) { instance = new MetalComboBoxUI(); instances.put(component, instance); } else instance = (MetalComboBoxUI) o; return instance; | return new MetalComboBoxUI(); | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalComboBoxUI instance; if (o == null) { instance = new MetalComboBoxUI(); instances.put(component, instance); } else instance = ... |
Log.error("XDF::BinaryInteger cant handle > 32 bit Integer Numbers"); | Log.error("BinaryInteger cant handle > 32 bit Integer Numbers"); | public String templateNotation(String strEndian, String strEncoding) { if (numOfBytes() >4) { Log.error("XDF::BinaryInteger cant handle > 32 bit Integer Numbers"); Log.error("returning null"); return null; } if (!Utility.isValidEndian(strEndian)) { Log.error("not a valid endian, returning... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.