rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); | put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); put("KeyPairGenerator.DiffieHellman", DiffieHellmanKeyPairGeneratorImpl.class.getName ()); | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note tha... |
put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); | put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman"); | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note tha... |
put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); | put("KeyFactory.DiffieHellman", DiffieHellmanKeyFactoryImpl.class.getName()); put("Alg.Alias.KeyFactory.DH", "DiffieHellman"); | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note tha... |
put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); | put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); | public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note tha... |
put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); | put("KeyPairGenerator.DSA", gnu.java.security.provider.DSAKeyPairGenerator.class.getName()); put("KeyPairGenerator.DiffieHellman", DiffieHellmanKeyPairGeneratorImpl.class.getName ()); | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... |
put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); | put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman"); | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... |
put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); | put("KeyFactory.DiffieHellman", DiffieHellmanKeyFactoryImpl.class.getName()); put("Alg.Alias.KeyFactory.DH", "DiffieHellman"); | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... |
put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); | put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName()); put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); | public Object run() { // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", gnu.java.security.provider.DSAS... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); chooser.setFont(defaults.getFont("ColorChooser.font")); chooser.setForeground(defaults.getColor("ColorChooser.foreground")); chooser.setBackground(defaults.getColor("ColorChooser.background")); | LookAndFeel.installColorsAndFont(chooser, "ColorChooser.background", "ColorChooser.foreground", "ColorChooser.font"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); chooser.setFont(defaults.getFont("ColorChooser.font")); chooser.setForeground(defaults.getColor("ColorChooser.foreground")); chooser.setBackground(defaults.getColor("ColorChooser.background")); } |
public void addTab(String name, Icon icon, Component panel) { addTab(name, icon, panel, null); } | public void addTab(String name, Component panel) { addTab(name, null, panel, null); } | public void addTab(String name, Icon icon, Component panel) { addTab(name, icon, panel, null); } |
throws SocketException { final Integer lport = new Integer(hdr.getDstPort()); final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPDatagramSocketImpl socket = (UDPDatagramSocketImpl) sockets .get(lport); if (socket != null) { final InetAddress laddr = socket.getLocalAddress(); if (laddr.isAnyLo... | throws SocketException { final Integer lport = new Integer(hdr.getDstPort()); final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPDatagramSocketImpl socket = (UDPDatagramSocketImpl) sockets .get(lport); if (socket != null) { final InetAddress laddr = socket.getLocalAddress(); if (laddr.isAnyLo... | private synchronized void deliver(UDPHeader hdr, SocketBuffer skbuf) throws SocketException { final Integer lport = new Integer(hdr.getDstPort()); final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPDatagramSocketImpl socket = (UDPDatagramSocketImpl) sockets... |
stat.noport.inc(); if (ipHdr.getDestination().isBroadcast()) { stat.noportbcast.inc(); } icmp.sendPortUnreachable(skbuf); | } | private synchronized void deliver(UDPHeader hdr, SocketBuffer skbuf) throws SocketException { final Integer lport = new Integer(hdr.getDstPort()); final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPDatagramSocketImpl socket = (UDPDatagramSocketImpl) sockets... |
stat.noport.inc(); if (ipHdr.getDestination().isBroadcast()) { stat.noportbcast.inc(); } icmp.sendPortUnreachable(skbuf); } | private synchronized void deliver(UDPHeader hdr, SocketBuffer skbuf) throws SocketException { final Integer lport = new Integer(hdr.getDstPort()); final IPv4Header ipHdr = (IPv4Header) skbuf.getNetworkLayerHeader(); final UDPDatagramSocketImpl socket = (UDPDatagramSocketImpl) sockets... | |
catch (NoSuchAlgorithmException ignored) {} | catch (NoSuchAlgorithmException e) { } | public static AlgorithmParameterGenerator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} throw ... |
sb.append(getTotalSize()); | long size = getTotalSize(); if (size >= 1024) { sb.append(NumberUtils.size(size) + " (" + getTotalSize() + "b)"); } else { sb.append(size + "b"); } | public void append(StringBuilder sb) { sb.append(name); sb.append(" #"); sb.append(instanceCount); if (objectSize != 0) { sb.append(usage); sb.append(getTotalSize()); } } |
System.err.println("\twith context=" + context + ", pos=" + pos + ", len=" + len); | final void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (stylesheet.terminated) { return; } if (Thread.currentThread().isInterrupted()) { // Try to hea... | |
emmitEMMS(); | emitEMMS(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitMOVD(); | emitMOVD(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitMOVQ(); | emitMOVQ(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPACKUSWB(); | emitPACKUSWB(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPADDW(); | emitPADDW(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPAND(); | emitPAND(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPCMPGTW(); | emitPCMPGTW(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPMULLW(); | emitPMULLW(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPSHUFW(); | emitPSHUFW(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPSRLW(); | emitPSRLW(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPSUBW(); | emitPSUBW(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPUNPCKLBW(); | emitPUNPCKLBW(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
emmitPXOR(); | emitPXOR(); | public boolean emit(String mnemonic, List<Object> operands, int operandSize) { this.operands = operands; this.operandSize = operandSize; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case EMMS_ISN: ... |
JComponent comp = (JComponent) i.next(); | Component comp = (Component) i.next(); while ((!(comp instanceof JComponent) || !((JComponent) comp).isValidateRoot()) && comp.getParent() != null) comp = comp.getParent(); | public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ... |
{ super.installUI(c); this.installDefaults((JScrollPane)c); } | { super.installUI(c); installDefaults((JScrollPane) c); installListeners((JScrollPane) c); } | public void installUI(final JComponent c) { super.installUI(c); this.installDefaults((JScrollPane)c); } |
} | uninstallListeners((JScrollPane) c); } | public void uninstallUI(final JComponent c) { super.uninstallUI(c); this.uninstallDefaults((JScrollPane)c); } |
while (q.peekEvent () != null) { | public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); while (q.peekEvent () != null) { try { wait (... | |
wait (); | q.invokeAndWait (new Runnable () { public void run () { } }); | public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); while (q.peekEvent () != null) { try { wait (... |
catch (InvocationTargetException e) { System.err.println ("Robot: waitForIdle cannot invoke target"); | public void waitForIdle () { if (EventQueue.isDispatchThread ()) throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); while (q.peekEvent () != null) { try { wait (... | |
final int size = getSize(); int offset = headerSize; | final Word size = Word.fromIntZeroExtend(getSize()); final Word headerSize = Word.fromIntZeroExtend(this.headerSize); Word offset = headerSize; | protected final void defragment() throws UninterruptiblePragma { final int size = getSize(); int offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset; lock(); try { Address firstFreePtr = null; while (... |
while (offset < size) { | while (offset.LT(size)) { | protected final void defragment() throws UninterruptiblePragma { final int size = getSize(); int offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset; lock(); try { Address firstFreePtr = null; while (... |
final int objSize = ptr.loadInt(sizeOffset); final int nextOffset = offset + objSize + headerSize; | final Word objSize = ptr.loadWord(sizeOffset); final Word nextOffset = offset.add(objSize).add(headerSize); | protected final void defragment() throws UninterruptiblePragma { final int size = getSize(); int offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset; lock(); try { Address firstFreePtr = null; while (... |
if ((vmt == FREE) && (nextOffset < size)) { | if ((vmt == FREE) && (nextOffset.LT(size))) { | protected final void defragment() throws UninterruptiblePragma { final int size = getSize(); int offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset; lock(); try { Address firstFreePtr = null; while (... |
int nextObjSize = nextObjectPtr.loadInt(sizeOffset); int newObjSize = objSize + headerSize + nextObjSize; | Word nextObjSize = nextObjectPtr.loadWord(sizeOffset); Word newObjSize = objSize.add(headerSize).add(nextObjSize); | protected final void defragment() throws UninterruptiblePragma { final int size = getSize(); int offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset; lock(); try { Address firstFreePtr = null; while (... |
final int mySize = myAddr.loadInt(sizeOffset); | final Word mySize = myAddr.loadWord(sizeOffset); | protected void initialize(Address start, Address end, int slotSize) { // Set my variables this.start = start; this.end = end; initializeAbstract(slotSize); this.sizeOffset = Offset.fromIntSignExtend(-((ObjectLayout.HEADER_SLOTS + 1) * slotSize)); this.headerSize = ObjectLay... |
final int heapObjSize = ObjectLayout.objectAlign(heapClass .getObjectSize()); | final Word heapObjSize = Word.fromIntZeroExtend(ObjectLayout.objectAlign(heapClass .getObjectSize())); final Word flags = Word.fromIntZeroExtend(ObjectFlags.GC_DEFAULT_COLOR); | protected static VmAbstractHeap setupHeap(HeapHelper helper, Address start, VmNormalClass heapClass, int slotSize) { final int headerSize = ObjectLayout .objectAlign((ObjectLayout.HEADER_SLOTS + 1) * slotSize); final Offset vmtOffset = Offset.fromIntSignExtend(ObjectLayout.TI... |
heapPtr.store(ObjectFlags.GC_DEFAULT_COLOR, flagsOffset); | heapPtr.store(flags, flagsOffset); | protected static VmAbstractHeap setupHeap(HeapHelper helper, Address start, VmNormalClass heapClass, int slotSize) { final int headerSize = ObjectLayout .objectAlign((ObjectLayout.HEADER_SLOTS + 1) * slotSize); final Offset vmtOffset = Offset.fromIntSignExtend(ObjectLayout.TI... |
helper.clear(heapPtr, heapObjSize); | helper.clear(heapPtr, heapObjSize.toInt()); | protected static VmAbstractHeap setupHeap(HeapHelper helper, Address start, VmNormalClass heapClass, int slotSize) { final int headerSize = ObjectLayout .objectAlign((ObjectLayout.HEADER_SLOTS + 1) * slotSize); final Offset vmtOffset = Offset.fromIntSignExtend(ObjectLayout.TI... |
final int headerSize = this.headerSize; | final Word headerSize = Word.fromIntZeroExtend(this.headerSize); | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
int offset = headerSize; final int size = getSize(); | Word offset = headerSize; final Word size = Word.fromIntZeroExtend(getSize()); | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
while (offset < size) { | while (offset.LT(size)) { | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
final int objSize; | final Word objSize; | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
objSize = ptr.loadInt(sizeOffset); | objSize = ptr.loadWord(sizeOffset); | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
offset = size; | return; | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
offset += objSize + headerSize; | offset = offset.add(objSize).add(headerSize); | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
final int objSize = ptr.loadInt(sizeOffset); | final Word objSize = ptr.loadWord(sizeOffset); | protected final void walk(ObjectVisitor visitor, boolean locking, Word flagsMask, Word flagsValue) { // Go through the heap and call visit on each object final int headerSize = this.headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset;... |
final String devId = (args.length > 0) ? args[0] : "fb0"; | final String devId = (args.length > 0) ? args[0] : "" ; | public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ... |
final DeviceManager dm = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME); final Device dev = dm.getDevice(devId); | Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBufferAPI.class); int dev_count = devs.size(); if(dev_count > 0){ Device[] dev_a = devs.toArray(new Device[dev_count]); dev = dev_a[0]; } } if(dev == null){ final DeviceManager dm = (DeviceManager) InitialNaming.l... | public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ... |
void addHyperlinkListener(HyperlinkListener listener) { } | public void addHyperlinkListener(HyperlinkListener listener) { listenerList.add (HyperlinkListener.class, listener); } | void addHyperlinkListener(HyperlinkListener listener) { } |
void removeHyperlinkListener(HyperlinkListener listener) { } | public void removeHyperlinkListener (HyperlinkListener listener) { listenerList.remove (HyperlinkListener.class, listener); } | void removeHyperlinkListener(HyperlinkListener listener) { //Removes a hyperlink listener. } |
throws IOException | void setPage(String url) { // Sets the current URL being displayed. } | |
loc); | loc, ClassLoader.getSystemClassLoader()); | private static BreakIterator getInstance (String type, Locale loc) { String className; try { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", loc); className = res.getString(type); } catch (MissingResourceException x) { return null; } try ... |
src.position(src.position() + len); | public int write (ByteBuffer src) throws IOException { int len = src.remaining (); if (src.hasArray()) { byte[] buffer = src.array(); write(buffer, src.arrayOffset() + src.position(), len); } else { // Use a more efficient native method! FIXME! byte[] buffer = new byte [len]; src.get (buf... | |
if (! (obj instanceof FieldPosition)) | if (this == obj) return true; if (obj == null || obj.getClass() != this.getClass()) | public boolean equals (Object obj) { if (! (obj instanceof FieldPosition)) return false; FieldPosition fp = (FieldPosition) obj; return (field_id == fp.field_id && begin == fp.begin && end == fp.end); } |
&& (field_attribute == fp.field_attribute || (field_attribute != null && field_attribute.equals(fp.field_attribute))) | public boolean equals (Object obj) { if (! (obj instanceof FieldPosition)) return false; FieldPosition fp = (FieldPosition) obj; return (field_id == fp.field_id && begin == fp.begin && end == fp.end); } | |
return (getClass ().getName () + "[field=" + getField () + ",beginIndex=" + getBeginIndex () + ",endIndex=" + getEndIndex () + "]"); | return (getClass ().getName () + "[field=" + getField () + ",attribute=" + getFieldAttribute () + ",beginIndex=" + getBeginIndex () + ",endIndex=" + getEndIndex () + "]"); | public String toString () { return (getClass ().getName () + "[field=" + getField () + ",beginIndex=" + getBeginIndex () + ",endIndex=" + getEndIndex () + "]"); } |
equals(Object obj) { | public final boolean equals (Object obj) { | equals(Object obj){ if (obj == this) return(true); else return(false);} |
return(true); | return true; | equals(Object obj){ if (obj == this) return(true); else return(false);} |
return(false); } | return false; } | equals(Object obj){ if (obj == this) return(true); else return(false);} |
hashCode() { return(super.hashCode()); } | public final int hashCode() { return super.hashCode(); } | hashCode(){ return(super.hashCode());} |
toString() { return(getClass().getName() + "(" + getName() + ")"); } | public String toString() { return getClass().getName() + "(" + getName() + ")"; } | toString(){ return(getClass().getName() + "(" + getName() + ")");} |
if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(maxTotalColumnWidth, table.getRowCount()* (table.getRowHeight()+table.getRowMargin())); | return new Dimension(maxTotalColumnWidth, getHeight()); | public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension... |
if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(minTotalColumnWidth, table.getRowCount()*table.getRowHeight()); | return new Dimension(minTotalColumnWidth, getHeight()); | public Dimension getMinimumSize(JComponent comp) { int minTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) minTotalColumnWidth += table.getColumnModel().getColumn(i).getMinWidth(); if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension... |
int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin()); return new Dimension(width, height); | int prefTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) { TableColumn col = table.getColumnModel().getColumn(i); prefTotalColumnWidth += col.getPreferredWidth(); } return new Dimension(prefTotalColumnWidth, getHeight()); | public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin()); return new Dimension(width, height); } |
private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException { | private static int getCharUnit(char[] input, int index, CharUnit unit, boolean quot) throws REException { | private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException { unit.ch = input[index++]; if (unit.bk = (unit.ch == '\\')) if (index < input.length) unit.ch = input[index++]; else throw new REException(getLocalizedMessage("ends.with.backslash"),REException.REG_ESCAPE,index)... |
if (unit.bk = (unit.ch == '\\')) | unit.bk = (unit.ch == '\\' && (!quot || index >= input.length || input[index] == 'E')); if (unit.bk) | private static int getCharUnit(char[] input, int index, CharUnit unit) throws REException { unit.ch = input[index++]; if (unit.bk = (unit.ch == '\\')) if (index < input.length) unit.ch = input[index++]; else throw new REException(getLocalizedMessage("ends.with.backslash"),REException.REG_ESCAPE,index)... |
index = getCharUnit(input,index,unit); | index = getCharUnit(input,index,unit,false); | private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException { // Precondition: input[index-1] == '{', minMax != null boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES); int startIndex = index; if (index == input.length) { if (mustMatch) throw new REEx... |
while (((index = getCharUnit(input,index,unit)) != input.length) && Character.isDigit(unit.ch)) | while (((index = getCharUnit(input,index,unit,false)) != input.length) && Character.isDigit(unit.ch)) | private int getMinMax(char[] input,int index,IntPair minMax,RESyntax syntax) throws REException { // Precondition: input[index-1] == '{', minMax != null boolean mustMatch = !syntax.get(RESyntax.RE_NO_BK_BRACES); int startIndex = index; if (index == input.length) { if (mustMatch) throw new REEx... |
index = getCharUnit(pattern,index,unit); | index = getCharUnit(pattern,index,unit,quot); if (unit.bk) if (unit.ch == 'Q') { quot = true; continue; } else if (unit.ch == 'E') { quot = false; continue; } if (quot) unit.bk = false; | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ unit.bk)) || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\n') && !unit.bk) ) | if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ (unit.bk || quot))) || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\n') && !(unit.bk || quot)) ) | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ unit.bk)) { | else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ (unit.bk || quot))) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '[') && !unit.bk) { | else if ((unit.ch == '[') && !(unit.bk || quot)) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) { | else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
while ( ((nextIndex = getCharUnit(pattern,endIndex,unit)) > 0) && !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) ) | while ( ((nextIndex = getCharUnit(pattern,endIndex,unit,false)) > 0) && !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) ) | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) | else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk)) | else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ unit.bk))) { | else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot)))) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '^') && !unit.bk) { | else if ((unit.ch == '^') && !(unit.bk || quot)) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '$') && !unit.bk) { | else if ((unit.ch == '$') && !(unit.bk || quot)) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '.') && !unit.bk) { | else if ((unit.ch == '.') && !(unit.bk || quot)) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '*') && !unit.bk) { | else if ((unit.ch == '*') && !(unit.bk || quot)) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) { | else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
if (currentToken instanceof RETokenRepeated) throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) | if (currentToken instanceof RETokenRepeated) { RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_POSSESSIVE_OPS) && !tokenRep.isPossessive() && !tokenRep.isStingy()) tokenRep.makePossessive(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,inde... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
if (currentToken.getMinimumLength() == 0) | else if (currentToken.getMinimumLength() == 0) | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
currentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index); | else currentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index); | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ unit.bk)) { | else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) { | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
if (syntax.get(RESyntax.RE_STINGY_OPS) && !((RETokenRepeated)currentToken).isStingy()) ((RETokenRepeated)currentToken).makeStingy(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWo... | RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_STINGY_OPS) && !tokenRep.isStingy() && !tokenRep.isPossessive()) tokenRep.makeStingy(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBound... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... |
empty = false; | void clear(int index) { offset = index; this.index = 0; for (int i = 0; i < start.length; i++) { start[i] = end[i] = -1; } next = null; // cut off alternates } | |
alwaysEmpty = (min == 0 && max == 0); | RETokenRepeated(int subIndex, REToken token, int min, int max) { super(subIndex); this.token = token; this.min = min; this.max = max; } | |
public void addCellEditorListener(CellEditorListener listener) { } | public void addCellEditorListener (CellEditorListener listener) { listenerList.add (CellEditorListener.class, listener); } | public void addCellEditorListener(CellEditorListener listener) { // TODO } // addCellEditorListener() |
protected void fireEditingCanceled() { } | protected void fireEditingCanceled() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingCanceled (changeEvent); } } | protected void fireEditingCanceled() { // TODO } // fireEditingCanceled() |
protected void fireEditingStopped() { } | protected void fireEditingStopped() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingStopped (changeEvent); } } | protected void fireEditingStopped() { // TODO } // fireEditingStopped() |
public void removeCellEditorListener(CellEditorListener listener) { } | public void removeCellEditorListener (CellEditorListener listener) { listenerList.remove (CellEditorListener.class, listener); } | public void removeCellEditorListener(CellEditorListener listener) { // TODO } // removeCellEditorListener() |
throws XMLStreamException | public boolean hasNext() throws XMLStreamException { // XXX ??? return super.hasNext(); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.