bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public int readUnsignedShort() throws IOException { return readShort() & 0xffff; }
public int readUnsignedShort() throws IOException { return (int) readShort() & 0xffff; }
31,563
public void setBitOffset (int bitOffset) throws IOException { checkClosed(); if (bitOffset < 0 || bitOffset > 7) throw new IllegalArgumentException(); this.bitOffset = bitOffset; }
public void setBitOffset (int bitOffset) throws IOException { checkClosed(); if (bitOffset < 0 || bitOffset > 7) throw new IllegalArgumentException("bitOffset not between 0 and 7 inclusive"); this.bitOffset = bitOffset; }
31,564
private static void setStaticField(Class<?> clazz, String fieldName, Object value) { final VmStaticField f = (VmStaticField) clazz.getVmClass().getField( fieldName); final Vm vm = Vm.getVm(); final Object staticsTable; final Offset offset; if (f.isShared(...
private static void setStaticField(Class<?> clazz, String fieldName, Object value) throws PrivilegedActionPragma { final VmStaticField f = (VmStaticField) clazz.getVmClass().getField( fieldName); final Vm vm = Vm.getVm(); final Object staticsTable; final Offset ...
31,565
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_octet); }
public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_octet); }
31,566
public IllegalThreadStateException() { super(); }
public IllegalThreadStateException() { super(); }
31,567
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_double); }
public static TypeCode type() { return new ArrayTypeCode(TCKind.tk_double); }
31,568
synchronized boolean isShutdown () { if (shutdown) return true; // This is the exact self-shutdown condition specified in J2SE: // http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/AWTThreadIssues.html if (peekEvent() == null && ((ClasspathToolkit) Toolkit.getDefaultToolkit()).na...
synchronized boolean isShutdown () { if (shutdown) return true; // This is the exact self-shutdown condition specified in J2SE: // http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/AWTThreadIssues.html if (peekEvent() == null && ((ClasspathToolkit) Toolkit.getDefaultToolkit()).na...
31,570
synchronized void setShutdown (boolean b) { shutdown = b; }
synchronized void setShutdown (boolean b) { shutdown = b; }
31,571
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + dispatchThreadNum++); this.queue = queue; setPriority(NORM_PRIORITY + 1); start(); }
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + dispatchThreadNum++); this.queue = queue; setPriority(NORM_PRIORITY + 1); start(); }
31,572
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
31,573
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, null, false); }
31,574
public void flushBefore(long position) throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
public void flushBefore(long position) throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
31,577
public int read() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
public int read() throws IOException, NotImplementedException { // FIXME: Implement me. throw new Error("not implemented"); }
31,578
public final Class getCategory() { return JobMediaSheets.class; }
public Class getCategory() { return JobMediaSheets.class; }
31,579
public final String getName() { return "job-media-sheets"; }
public String getName() { return "job-media-sheets"; }
31,580
public void setMaximum(Comparable newMaximum) { if (maximum != newMaximum) { maximum = newMaximum; fireStateChanged(); } }
public void setMaximum(Comparable newMaximum) { if (maximum != null ? !maximum.equals(newMaximum) : newMaximum != null) { maximum = newMaximum; fireStateChanged(); } }
31,581
public void setMinimum(Comparable newMinimum) { if (minimum != newMinimum) { minimum = newMinimum; fireStateChanged(); } }
public void setMinimum(Comparable newMinimum) { if (minimum != null ? !minimum.equals(newMinimum) : newMinimum != null) { minimum = newMinimum; fireStateChanged(); } }
31,582
public void setStepSize(Number newStepSize) { if (newStepSize == null) throw new IllegalArgumentException(); if (stepSize != newStepSize) { stepSize = newStepSize; fireStateChanged(); } }
public void setStepSize(Number newStepSize) { if (newStepSize == null) throw new IllegalArgumentException(); if (!stepSize.equals(newStepSize)) { stepSize = newStepSize; fireStateChanged(); } }
31,583
public final Class getCategory() { return PageRanges.class; }
public Class getCategory() { return PageRanges.class; }
31,585
public final String getName() { return "page-ranges"; }
public String getName() { return "page-ranges"; }
31,586
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
public void setVisible(final boolean visible) { // Hook up this call so that it gets executed on the event thread in order // to avoid synchronization problems when calling the layout manager. if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { ...
31,587
public void unregister_value_factory(String id) { throw new NO_IMPLEMENT(); }
public void unregister_value_factory(String repository_id) { throw new NO_IMPLEMENT(); }
31,588
public void setHorizontalAlignment(int newAlign) { int oldAlign = align; align = newAlign; invalidate(); repaint(); firePropertyChange("horizontalAlignment", oldAlign, newAlign); }
public void setHorizontalAlignment(int newAlign) { int oldAlign = align; align = newAlign; invalidate(); repaint(); }
31,589
getMaxAscent(){ return(getAscent());}
getMaxAscent(){ return(getAscent());}
31,590
getMaxDescent(){ return getMaxDecent ();}
getMaxDescent(){ return getMaxDecent ();}
31,591
public Object stringToValue(String string) throws ParseException { if (format != null) { Object o = format.parseObject(string); // If a value class has been set, call super in order to get // the class right. That is what the JDK API docs suggest, so we do // it that way. ...
public Object stringToValue(String string) throws ParseException { if (format != null) { Object o = format.parseObject(string); // If a value class has been set, call super in order to get // the class right. That is what the JDK API docs suggest, so we do // it that way. ...
31,592
public String getSelectedText() { try { return doc.getText(getSelectionStart(), getSelectionEnd()); } catch (BadLocationException e) { // This should never happen. return null; } }
public String getSelectedText() { try { return doc.getText(start, offset); } catch (BadLocationException e) { // This should never happen. return null; } }
31,593
public void beginLayout() { // TODO Auto-generated method stub }
public void beginLayout() { // TODO Auto-generated method stub }
31,594
public void beginValidate() { // TODO Auto-generated method stub }
public void beginValidate() { // TODO Auto-generated method stub }
31,595
public void endLayout() { // TODO Auto-generated method stub }
public void endLayout() { // TODO Auto-generated method stub }
31,596
public void endValidate() { // TODO Auto-generated method stub }
public void endValidate() { // TODO Auto-generated method stub }
31,597
public Insets insets() { return getInsets(); }
public Insets insets() { return getInsets(); }
31,598
public abstract Map getFlavorsForNatives (String[] natives);
public abstract Map getFlavorsForNatives (String[] natives);
31,601
public abstract Map getNativesForFlavors (DataFlavor[] flavors);
public abstract Map getNativesForFlavors (DataFlavor[] flavors);
31,602
public long getLastModified() { // TODO Auto-generated method stub return 0; }
public long getLastModified() { // TODO Auto-generated method stub return 0; }
31,603
public boolean isPropertySupported(String name) { return name.equals(IS_NAMESPACE_AWARE) || name.equals(IS_VALIDATING) || name.equals(IS_COALESCING) || name.equals(IS_REPLACING_ENTITY_REFERENCES) || name.equals(IS_SUPPORTING_EXTERNAL_ENTITIES) || name.equals(SUPPORT_DTD) || name.equa...
public boolean isPropertySupported(String name) { return name.equals(IS_NAMESPACE_AWARE) || name.equals(IS_VALIDATING) || name.equals(IS_COALESCING) || name.equals(IS_REPLACING_ENTITY_REFERENCES) || name.equals(IS_SUPPORTING_EXTERNAL_ENTITIES) || name.equals(SUPPORT_DTD) || name.equa...
31,606
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
public XMLParser(InputStream in, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean ba...
31,608
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
31,609
private void dumpDebugInfo() { log.debug("Debug Dump"); log.debug("CSR0 = " + io.getCSR(0)); // stop the device so we can read all registers io.setCSR(0, CSR0_STOP); bufferManager.dumpData(log); int validVMWareLanceRegs[] = { 0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14...
private void dumpDebugInfo() { log.debug("Debug Dump"); log.debug("CSR0 = " + io.getCSR(0)); // stop the device so we can read all registers io.setCSR(0, CSR0_STOP); bufferManager.dumpData(log); int validVMWareLanceRegs[] = { 0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14...
31,610
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
31,611
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
31,612
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
31,613
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) { return DataBuffer.TYPE_BYTE; } else if (bits <= 16) { return DataBuffer.TYPE_USHORT; } else if (bits <= 32) { return DataBuffer.TYPE_INT; } else { return DataBuffer.TYPE_UNDEFINED; } }
31,614
public static synchronized final Set getNames() { if (names == null) { HashSet hs = new HashSet(); hs.add(Registry.DSS_SIG); hs.addAll(RSASignatureFactory.getNames()); names = Collections.unmodifiableSet(hs); } return names; }
publicstaticsynchronizedfinalSetgetNames(){if(names==null){HashSeths=newHashSet();hs.add(Registry.DSS_SIG);hs.addAll(RSASignatureFactory.getNames());names=Collections.unmodifiableSet(hs);}returnnames;}
31,615
public static synchronized final Set getNames() { if (names == null) { HashSet hs = new HashSet(); hs.add(Registry.DSS_SIG); hs.addAll(RSASignatureFactory.getNames()); names = Collections.unmodifiableSet(hs); } return names; }
publicstaticsynchronizedfinalSetgetNames(){if(names==null){HashSeths=newHashSet();hs.add(Registry.DSS_SIG);hs.addAll(RSASignatureFactory.getNames());names=Collections.unmodifiableSet(hs);}returnnames;}
31,616
private void executeIDsizes(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ObjectId oid = new ObjectId(); os.writeInt(oid.size()); // fieldId os.writeInt(oid.size()); // methodId os.writeInt(oid.size()); // objectId os.writeInt(new ReferenceTypeId((byte) 0x00).size()); // r...
private void executeIDsizes(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ObjectId oid = new ObjectId(); os.writeInt(oid.size()); // fieldId os.writeInt(oid.size()); // methodId os.writeInt(oid.size()); // objectId os.writeInt(new ReferenceTypeId((byte) 0x00).size()); // r...
31,617
public final Class getCategory() { return DateTimeAtCompleted.class; }
public Class getCategory() { return DateTimeAtCompleted.class; }
31,618
public final String getName() { return "date-time-at-completed"; }
public String getName() { return "date-time-at-completed"; }
31,619
public Element getElementById(String id) { DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype == null || !doctype.hasIds() || id == null || id.length() == 0) { return null; } // yes, this is linear in size of document. // it'd be easy enough to maintain a hashtabl...
public Element getElementById(String id) { DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype == null || !doctype.hasIds() || id == null || id.length() == 0) { return null; } // yes, this is linear in size of document. // it'd be easy enough to maintain a hashtabl...
31,620
protected void finalize() { header = null; tagTable = null; }
protected void finalize() { header = null; tagTable = null; }
31,622
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int...
public ProfileHeader() { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int) (data[ICC...
31,623
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int...
public ProfileHeader(byte[] data) { creatorSig = 0; intent = 0; modelSig = manufacturerSig = (int) 0x6E6f6E65; magic = icMagicNumber; cmmId = 0; platform = 0; timestamp = new byte[8]; majorVersion = 2; minorVersion = 0x10; flags = 0; // Get size (the sign bit shouldn't matter. // A valid profile can never...
31,624
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int...
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int...
31,625
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int...
public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int...
31,626
ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); }
ICC_ProfileGray(int cspace) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); }
31,627
ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); }
ICC_ProfileGray(byte[] data) { super(cspace); whitePoint = getXYZData(icSigMediaWhitePointTag); }
31,628
public ContainerOrderFocusTraversalPolicy() { throw new Error("not implemented"); }
public ContainerOrderFocusTraversalPolicy () { throw new Error("not implemented"); }
31,629
public ContainerOrderFocusTraversalPolicy() { throw new Error("not implemented"); }
public ContainerOrderFocusTraversalPolicy() { }
31,630
public Component getComponentAfter(Container root, Component current) { return null; }
public Component getComponentAfter (Container root, Component current) { return null; }
31,631
public Component getComponentAfter(Container root, Component current) { return null; }
public Component getComponentAfter(Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalArgumentException ("roo...
31,632
public Component getComponentBefore(Container root, Component current) { return null; }
public Component getComponentBefore (Container root, Component current) { return null; }
31,634
public Component getComponentBefore(Container root, Component current) { return null; }
public Component getComponentBefore(Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalArgumentException ("ro...
31,635
public Component getDefaultComponent(Container root) { return null; }
public Component getDefaultComponent (Container root) { return null; }
31,637
public Component getDefaultComponent(Container root) { return null; }
public Component getDefaultComponent(Container root) { return getFirstComponent (root); }
31,638
public boolean getImplicitDownCycleTraversal() { return downCycle; }
public boolean getImplicitDownCycleTraversal () { return downCycle; }
31,640
public boolean getImplicitDownCycleTraversal() { return downCycle; }
public boolean getImplicitDownCycleTraversal() { return implicitDownCycleTraversal; }
31,641
public Component getLastComponent(Container root) { return null; }
public Component getLastComponent (Container root) { return null; }
31,642
public void setImplicitDownCycleTraversal(boolean value) { downCycle = value; }
public void setImplicitDownCycleTraversal (boolean value) { downCycle = value; }
31,644
public void setImplicitDownCycleTraversal(boolean value) { downCycle = value; }
public void setImplicitDownCycleTraversal(boolean value) { implicitDownCycleTraversal = value; }
31,645
public boolean unknown_adapter(POA parent, String child_name) { try { POA n = parent.create_POA(child_name, null, policySets.rootPoa()); n.the_POAManager().activate(); } catch (Exception ex) { return false; } return true; }
public boolean unknown_adapter(POA parent, String child_name) { try { POA n = parent.create_POA(child_name, null, StandardPolicies.rootPoa()); n.the_POAManager().activate(); } catch (Exception ex) { return false; } return true; }
31,646
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
31,647
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
publicvoidget(byte[]dst,intdstOffset,intindex,intlength){ try{ if(index>=size){ //Indexisbeyondmydata if(next!=null){ next.get(dst,dstOffset,index-size,length); }else{ thrownewIndexOutOfBoundsException("atindex"+index); } }elseif(index+length<=size){ //Allbytesarewithinmydata System.arraycopy(data...
31,648
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
31,649
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
31,650
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
public void get(byte[] dst, int dstOffset, int index, int length) { try { if (index >= size) { // Index is beyond my data if (next != null) { next.get(dst, dstOffset, index - size, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // A...
31,651
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
31,652
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
publicvoidset(intindex,byte[]src,intsrcOffset,intlength){ if(index>=size){ //Indexisbeyondmydata if(next!=null){ next.set(index-size,src,srcOffset,length); }else{ thrownewIndexOutOfBoundsException("atindex"+index); } }elseif(index+length<=size){ //Allbytesarewithinmydata System.arraycopy(src,srcOff...
31,653
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
31,654
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
31,655
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
31,656
public static final IRandom getInstance(String prng) { if (prng == null) { return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); } return result; }
public static final IRandom getInstance(String prng) if (prng == null) return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) result = new MDGenerator(); } return result; }
31,657
public static final IRandom getInstance(String prng) { if (prng == null) { return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); } return result; }
public static final IRandom getInstance(String prng) { if (prng == null) { return null; prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); return result; }
31,658
public static final IRandom getInstance(String prng) { if (prng == null) { return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); } return result; }
public static final IRandom getInstance(String prng) if (prng == null) return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) result = new MDGenerator(); } return result; }
31,659
public static final IRandom getInstance(String prng) { if (prng == null) { return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); } return result; }
public static final IRandom getInstance(String prng) { if (prng == null) { return null; prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); return result; }
31,660
public CombinedClassLoader(Collection a_loaders) { ArrayList sLoaders = new ArrayList(a_loaders.size()); Iterator iter = a_loaders.iterator(); Object cl; while (iter.hasNext()) { cl = iter.next(); if (!sLoaders.contains(cl)) sLoaders.add(iter.next()); } loaders...
public CombinedClassLoader(Collection a_loaders) { ArrayList sLoaders = new ArrayList(a_loaders.size()); Iterator iter = a_loaders.iterator(); Object cl; while (iter.hasNext()) { cl = iter.next(); if (!sLoaders.contains(cl)) sLoaders.add(cl); } loaders = new Cl...
31,661
public void focusGained(FocusEvent event) { // TODO: Implement this properly. }
setVisible(true); setVisible(true); publicsetVisible(true); voidsetVisible(true); focusGained(FocusEventsetVisible(true); event)setVisible(true); setVisible(true); {setVisible(true); setVisible(true); setVisible(true); setVisible(true); //setVisible(true); TODO:setVisible(true); ImplementsetVisible(true); thissetVisibl...
31,663
public void focusLost(FocusEvent event) { // TODO: Implement this properly. }
if (event.isTemporary() == false) setVisible(false); if (event.isTemporary() == false) setVisible(false); publicif (event.isTemporary() == false) setVisible(false); voidif (event.isTemporary() == false) setVisible(false); focusLost(FocusEventif (event.isTemporary() == false) setVisible(false); event)if (event.isTempora...
31,664
public void mouseClicked(MouseEvent event) { // FIXME: Implement this properly. }
public void mouseClicked(MouseEvent event) { // FIXME: Implement this properly. }
31,665
public void mouseDragged(MouseEvent event) { // FIXME: Implement this properly. }
moveCaret(event); moveCaret(event); publicmoveCaret(event); voidmoveCaret(event); mouseDragged(MouseEventmoveCaret(event); event)moveCaret(event); moveCaret(event); {moveCaret(event); moveCaret(event); moveCaret(event); moveCaret(event); //moveCaret(event); FIXME:moveCaret(event); ImplementmoveCaret(event); thismoveCar...
31,666
public void mouseExited(MouseEvent event) { // TODO: What to do here, if anything? }
public void mouseExited(MouseEvent event) { // TODO: What to do here, if anything? }
31,667
public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint())); }
public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint())); }
31,668
protected void moveCaret(MouseEvent event) { // FIXME: Implement this properly. }
int newDot = getComponent().viewToModel(event.getPoint()); moveDot(newDot); int newDot = getComponent().viewToModel(event.getPoint()); moveDot(newDot); protectedint newDot = getComponent().viewToModel(event.getPoint()); moveDot(newDot); voidint newDot = getComponent().viewToModel(event.getPoint()); moveDot(newDot); mov...
31,669
public void paint(Graphics g) { if (textComponent == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. return; } if (rect == nul...
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. retu...
31,671
public void paint(Graphics g) { if (textComponent == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. return; } if (rect == nul...
assert false : "Unexpected bad caret location: " + dot; assert false : "Unexpected bad caret location: " + dot; publicassert false : "Unexpected bad caret location: " + dot; voidassert false : "Unexpected bad caret location: " + dot; paint(Graphicsassert false : "Unexpected bad caret location: " + dot; g)assert false :...
31,672
public void paint(Graphics g) { if (textComponent == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. return; } if (rect == nul...
if ((x != rect.x) || (y != rect.y)) { repaint(); x = rect.x; y = rect.y; width = 1; height = rect.height; } public void paint(Graphics g) if ((x != rect.x) || (y != rect.y)) { repaint(); x = rect.x; y = rect.y; width = 1; height = rect.height; } { if ((x != rect.x) || (y != rect.y)) { repaint(); x = rect.x; y = rec...
31,673
protected void positionCaret(MouseEvent event) { // FIXME: Implement this properly. }
int newDot = getComponent().viewToModel(event.getPoint()); setDot(newDot); int newDot = getComponent().viewToModel(event.getPoint()); setDot(newDot); protectedint newDot = getComponent().viewToModel(event.getPoint()); setDot(newDot); voidint newDot = getComponent().viewToModel(event.getPoint()); setDot(newDot); positio...
31,674
protected final void repaint() { textComponent.repaint(this); }
protected final void repaint() { getComponent().repaint(x, y, width, height); }
31,675
public void setVisible(boolean v) { if (v != visible) { visible = v; repaint(); } }
public void setVisible(boolean v) { if (v != visible) { visible = v; if (visible) if (textComponent.isEnabled() && textComponent.isEditable()) { if (blinkTimer == null) initBlinkTimer(); blinkTimer.start(); } else { if (blinkTimer != null) blinkTimer.stop(); } Rectangle area = null; try { area = getCom...
31,678
public void serviceAvailable(BeanContextServiceAvailableEvent event);
public void serviceAvailable(BeanContextServiceAvailableEvent event);
31,679
public RGBImageFilter() { }
public RGBImageFilter() { }
31,680