rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
throws NotImplementedException
public List getNativesForFlavor (DataFlavor flav) { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/SystemFlavorMap.java/buggy/core/src/classpath/java/java/awt/datatransfer/SystemFlavorMap.java
public abstract Map getFlavorsForNatives (String[] natives);
Map getFlavorsForNatives (String[] natives);
public abstract Map getFlavorsForNatives (String[] natives);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/FlavorMap.java/buggy/core/src/classpath/java/java/awt/datatransfer/FlavorMap.java
public abstract Map getNativesForFlavors (DataFlavor[] flavors);
Map getNativesForFlavors (DataFlavor[] flavors);
public abstract Map getNativesForFlavors (DataFlavor[] flavors);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/FlavorMap.java/buggy/core/src/classpath/java/java/awt/datatransfer/FlavorMap.java
public long getLastModified() { return 0;
public long getLastModified() throws IOException { return NTFSUTIL.filetimeToMillis(getFileRecord().getFileNameAttribute().getModificationTime());
public long getLastModified() { // TODO Auto-generated method stub return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5f1b7ee30841d00e618b994bb9b6eccb8c702fa8/NTFSEntry.java/buggy/fs/src/fs/org/jnode/fs/ntfs/NTFSEntry.java
*/ XMLParser ret = new XMLParser(reader, null, validating, namespaceAware, coalescing, replacingEntityReferences, externalEntities, supportDTD, baseAware, stringInterning, reporter, resolver); if (xIncludeAware) return new XIncludeFilter(ret, null, namespaceAware, validating, replacingEntityReferences); return ret;
public XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException { return new XMLStreamReaderImpl(reader, null, null, resolver, reporter, validating, namespaceAware, coalescing, replacingE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7c2bfad7a98617f9973c753d7b20b1d8612d7b9/XMLInputFactoryImpl.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLInputFactoryImpl.java
if (name.equals("gnu.xml.stream.stringInterning")) return stringInterning ? Boolean.TRUE : Boolean.FALSE; if (name.equals("gnu.xml.stream.baseAware")) return baseAware ? Boolean.TRUE : Boolean.FALSE; if (name.equals("gnu.xml.stream.xIncludeAware")) return xIncludeAware ? Boolean.TRUE : Boolean.FALSE;
public Object getProperty(String name) throws IllegalArgumentException { if (name.equals(IS_NAMESPACE_AWARE)) return namespaceAware ? Boolean.TRUE : Boolean.FALSE; if (name.equals(IS_VALIDATING)) return validating ? Boolean.TRUE : Boolean.FALSE; if (name.equals(IS_COALESCING)) return coale...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7c2bfad7a98617f9973c753d7b20b1d8612d7b9/XMLInputFactoryImpl.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLInputFactoryImpl.java
name.equals(ALLOCATOR);
name.equals(ALLOCATOR) || name.equals("gnu.xml.stream.stringInterning") || name.equals("gnu.xml.stream.baseAware") || name.equals("gnu.xml.stream.xIncludeAware");
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7c2bfad7a98617f9973c753d7b20b1d8612d7b9/XMLInputFactoryImpl.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLInputFactoryImpl.java
else if (name.equals("gnu.xml.stream.stringInterning")) stringInterning = ((Boolean) value).booleanValue(); else if (name.equals("gnu.xml.stream.baseAware")) baseAware = ((Boolean) value).booleanValue(); else if (name.equals("gnu.xml.stream.xIncludeAware")) xIncludeAware = ((Boolean) value).booleanValue();
public void setProperty(String name, Object value) throws IllegalArgumentException { if (name.equals(IS_NAMESPACE_AWARE)) namespaceAware = ((Boolean) value).booleanValue(); else if (name.equals(IS_VALIDATING)) validating = ((Boolean) value).booleanValue(); else if (name.equals(IS_COALESCING)) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7c2bfad7a98617f9973c753d7b20b1d8612d7b9/XMLInputFactoryImpl.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLInputFactoryImpl.java
public XMLParser(Reader reader, String systemId,
public XMLParser(InputStream in, String systemId,
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
pushInput(new Input(null, reader, null, systemId, null, null, false, true));
pushInput(new Input(in, null, null, systemId, null, null, false, true));
public XMLParser(Reader reader, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean bas...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
private void dumpDebugInfo() {
final void dumpDebugInfo() {
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9ff460e33c877c62d34001d7739d8c9b59345f3/LanceCore.java/buggy/net/src/driver/org/jnode/driver/net/lance/LanceCore.java
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) {
public static int smallestAppropriateTransferType(int bits) { if (bits <= 8) {
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; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Buffers.java/buggy/core/src/classpath/gnu/gnu/java/awt/Buffers.java
} else if (bits <= 16) {
} else if (bits <= 16) {
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; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Buffers.java/buggy/core/src/classpath/gnu/gnu/java/awt/Buffers.java
} else if (bits <= 32) {
} else if (bits <= 32) {
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; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Buffers.java/buggy/core/src/classpath/gnu/gnu/java/awt/Buffers.java
} else {
} else {
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; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/Buffers.java/buggy/core/src/classpath/gnu/gnu/java/awt/Buffers.java
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; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/SignatureFactory.java/clean/core/src/classpath/gnu/gnu/java/security/sig/SignatureFactory.java
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; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/SignatureFactory.java/clean/core/src/classpath/gnu/gnu/java/security/sig/SignatureFactory.java
ObjectId oid = new ObjectId(); os.writeInt(oid.size()); os.writeInt(oid.size()); os.writeInt(oid.size()); os.writeInt(new ReferenceTypeId((byte) 0x00).size()); os.writeInt(oid.size());
os.writeInt(ObjectId.SIZE); os.writeInt(ObjectId.SIZE); os.writeInt(ObjectId.SIZE); os.writeInt(ReferenceTypeId.SIZE); os.writeInt(VMFrame.SIZE);
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/VirtualMachineCommandSet.java/buggy/core/src/classpath/gnu/gnu/classpath/jdwp/processor/VirtualMachineCommandSet.java
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return DateTimeAtCompleted.class; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/DateTimeAtCompleted.java/clean/core/src/classpath/javax/javax/print/attribute/standard/DateTimeAtCompleted.java
public final String getName()
public String getName()
public final String getName() { return "date-time-at-completed"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/DateTimeAtCompleted.java/clean/core/src/classpath/javax/javax/print/attribute/standard/DateTimeAtCompleted.java
DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype == null || !doctype.hasIds() || id == null || id.length() == 0)
if (id == null || id.length() == 0)
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/DomDocument.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomDocument.java
} } String xmlId = element.getAttribute("xml:id"); if (xmlId == null) { xmlId = element.getAttributeNS(XMLConstants.XML_NS_URI, "id"); } if (id.equals(xmlId)) { return element;
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/DomDocument.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomDocument.java
header = null; tagTable = null;
protected void finalize() { header = null; tagTable = null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e32ed4d0b771e0ed9b5a8daf23f7ad9df5afb15/ICC_Profile.java/clean/core/src/classpath/java/java/awt/color/ICC_Profile.java
public ProfileHeader(byte[] data)
public ProfileHeader()
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java
ByteBuffer buf = ByteBuffer.wrap(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;
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java
size = buf.getInt(ICC_Profile.icHdrSize); cmmId = buf.getInt(ICC_Profile.icHdrCmmId); majorVersion = (int) (data[ICC_Profile.icHdrVersion]); minorVersion = (int) (data[ICC_Profile.icHdrVersion + 1]); int classSig = buf.getInt(ICC_Profile.icHdrDeviceClass); profileClass = -1; for (int i = 0; i < classMap.length;...
illuminant = new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0xf6, (byte) 0xd6, (byte) 0x00, (byte) 0x01, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0xd3, (byte) 0x2d };
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java
System.arraycopy(data, ICC_Profile.icHdrAttributes, attributes, 0, 8); intent = buf.getInt(ICC_Profile.icHdrRenderingIntent); illuminant = new byte[12]; System.arraycopy(data, ICC_Profile.icHdrIlluminant, illuminant, 0, 12); creatorSig = buf.getInt(ICC_Profile.icHdrCreator);
profileClass = ICC_Profile.CLASS_DISPLAY;
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java
ICC_ProfileGray(byte[] data)
ICC_ProfileGray(int cspace)
ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ICC_ProfileGray.java/buggy/core/src/classpath/java/java/awt/color/ICC_ProfileGray.java
super(data);
super(cspace);
ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/ICC_ProfileGray.java/buggy/core/src/classpath/java/java/awt/color/ICC_ProfileGray.java
public ContainerOrderFocusTraversalPolicy()
public ContainerOrderFocusTraversalPolicy ()
public ContainerOrderFocusTraversalPolicy() { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
throw new Error("not implemented");
public ContainerOrderFocusTraversalPolicy() { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
public Component getComponentAfter(Container root, Component current)
public Component getComponentAfter (Container root, Component current)
public Component getComponentAfter(Container root, Component current) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
return null;
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 ("root is not a focus cycle root"); Container ancestor = current.getFocusCycleRoot...
public Component getComponentAfter(Container root, Component current) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
if ((Component) root == current) root = current.getFocusCycleRootAncestor (); if (current instanceof Window) return getFirstComponent ((Container) current); Container parent = current.getParent (); synchronized (parent.getTreeLock ()) { Component[] components = parent.getComponents (); int componentIndex = 0;...
public Component getComponentAfter(Container root, Component current) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
public Component getComponentBefore(Container root, Component current)
public Component getComponentBefore (Container root, Component current)
public Component getComponentBefore(Container root, Component current) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
return null;
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 ("root is not a focus cycle root"); Container ancestor = current.getFocusCycleRoot...
public Component getComponentBefore(Container root, Component current) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
} Component result = getComponentBefore (root, parent); return result; } }
public Component getComponentBefore(Container root, Component current) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
public Component getDefaultComponent(Container root)
public Component getDefaultComponent (Container root)
public Component getDefaultComponent(Container root) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
return null;
return getFirstComponent (root);
public Component getDefaultComponent(Container root) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < componentArray.length; i++) { Component component = componentArray [i]; if (accept (compone...
public Component getFirstComponent(Container root) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
public boolean getImplicitDownCycleTraversal()
public boolean getImplicitDownCycleTraversal ()
public boolean getImplicitDownCycleTraversal() { return downCycle; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
return downCycle;
return implicitDownCycleTraversal;
public boolean getImplicitDownCycleTraversal() { return downCycle; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
public Component getLastComponent(Container root)
public Component getLastComponent (Container root)
public Component getLastComponent(Container root) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = componentArray.length - 1; i >= 0; i--) { Component component = componentArray [i]; if (accept (co...
public Component getLastComponent(Container root) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
public void setImplicitDownCycleTraversal(boolean value)
public void setImplicitDownCycleTraversal (boolean value)
public void setImplicitDownCycleTraversal(boolean value) { downCycle = value; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
downCycle = value;
implicitDownCycleTraversal = value;
public void setImplicitDownCycleTraversal(boolean value) { downCycle = value; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/ContainerOrderFocusTraversalPolicy.java/clean/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java
POA n = parent.create_POA(child_name, null, policySets.rootPoa());
POA n = parent.create_POA(child_name, null, StandardPolicies.rootPoa());
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; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/gnuAdapterActivator.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/gnuAdapterActivator.java
public void get(byte[] dst, int dstOffset, int index, int length) { try {
public int get(int index) {
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
next.get(dst, dstOffset, index - size, length);
return next.get(index - size);
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
} else if (index + length <= size) { System.arraycopy(data, start + index, dst, dstOffset, length);
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
if (next != null) { final int myLength = size - index; System.arraycopy(data, start + index, dst, dstOffset, myLength); next.get(dst, dstOffset + myLength, Math.max(0, index - myLength), length - myLength); } else { throw new IndexOutOfBoundsException("at index " + index); } } } catch (IndexOutOfBoundsException ex) { ...
return data[start + index] & 0xFF;
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
public void set(int index, byte[] src, int srcOffset, int length) {
public void set(int index, int value) {
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
next.set(index - size, src, srcOffset, length);
next.set(index - size, value);
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
} else if (index + length <= size) { System.arraycopy(src, srcOffset, data, start + index, length);
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
if (next != null) { final int myLength = size - index; System.arraycopy(src, srcOffset, data, start + index, myLength); next.set(index - myLength, src, srcOffset + myLength, length - myLength); } else { throw new IndexOutOfBoundsException("at index " + index); }
data[start + index] = (byte) value;
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1af21bbcf637af59b7b8485112b5187333236fbf/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java
{
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; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/PRNGFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/prng/PRNGFactory.java
}
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; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/PRNGFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/prng/PRNGFactory.java
{
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; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/PRNGFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/prng/PRNGFactory.java
}
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; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/PRNGFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/prng/PRNGFactory.java
sLoaders.add(iter.next());
sLoaders.add(cl);
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/CombinedClassLoader.java/buggy/core/src/classpath/gnu/gnu/java/rmi/server/CombinedClassLoader.java
if (blinkTimer != null) blinkTimer.stop(); blinkTimer = null;
public void deinstall(JTextComponent c) { textComponent.removeFocusListener(this); textComponent.removeMouseListener(this); textComponent.removeMouseMotionListener(this); textComponent.getDocument().removeDocumentListener(documentListener); documentListener = null; textComponent.removePropertyChang...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
setVisible(true);
public void focusGained(FocusEvent event) { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
if (event.isTemporary() == false) setVisible(false);
public void focusLost(FocusEvent event) { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
public void mouseClicked(MouseEvent event) { // FIXME: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
moveCaret(event);
public void mouseDragged(MouseEvent event) { // FIXME: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
public void mouseExited(MouseEvent event) { // TODO: What to do here, if anything? }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint()));
positionCaret(event);
public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint())); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
int newDot = getComponent().viewToModel(event.getPoint()); moveDot(newDot);
protected void moveCaret(MouseEvent event) { // FIXME: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
adjustVisibility(this);
public void moveDot(int dot) { this.dot = dot; handleHighlight(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
if (textComponent == null)
JTextComponent comp = getComponent(); if (comp == null)
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
assert false : "Unexpected bad caret location: " + dot;
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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
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 (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...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
int newDot = getComponent().viewToModel(event.getPoint()); setDot(newDot);
protected void positionCaret(MouseEvent event) { // FIXME: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
textComponent.repaint(this);
getComponent().repaint(x, y, width, height);
protected final void repaint() { textComponent.repaint(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
if (blinkTimer != null) blinkTimer.setDelay(rate);
public void setBlinkRate(int rate) { blinkRate = rate; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
adjustVisibility(this);
public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
repaint();
if (visible) if (textComponent.isEnabled() && textComponent.isEditable()) { if (blinkTimer == null) initBlinkTimer(); blinkTimer.start(); } else { if (blinkTimer != null) blinkTimer.stop(); } Rectangle area = null; try { area = getComponent().modelToView(getDot()); } catch (BadLocationException ex) { assert false: "Une...
public void setVisible(boolean v) { if (v != visible) { visible = v; repaint(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java
public void serviceAvailable(BeanContextServiceAvailableEvent event);
void serviceAvailable(BeanContextServiceAvailableEvent event);
public void serviceAvailable(BeanContextServiceAvailableEvent event);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/BeanContextServicesListener.java/clean/core/src/classpath/java/java/beans/beancontext/BeanContextServicesListener.java
public RGBImageFilter() {
public RGBImageFilter() {
public RGBImageFilter() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]);
private int[] convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, byte pixels[], int offset, int scansize) { int intPixels[] = new int[pixels.length]; for (int i = 0; i < pixels.length; i++) intPixels[i] = makeColorbyDefaultCM(model, pixels[i]); return intPixels;
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
} }
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
public IndexColorModel filterIndexColorModel(IndexColorModel icm) {
public IndexColorModel filterIndexColorModel(IndexColorModel icm) {
public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues);
icm.getAlphas( alphas ); icm.getReds( reds ); icm.getGreens( greens ); icm.getBlues( blues );
public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
for (int i = 0; i < len; i++) { rgb = filterRGB(-1, -1, makeColor(alphas[i], reds[i], greens[i], blues[i])); alphas[i] = (byte) ((0xff000000 & rgb) >> 24); reds[i] = (byte) ((0xff0000 & rgb) >> 16); greens[i] = (byte) ((0xff00 & rgb) >> 8); blues[i] = (byte) (0xff & rgb); } return new IndexColorModel(icm.getPixelSize()...
for( int i = 0; i < len; i++ ) { rgb = filterRGB( -1, -1, makeColor ( alphas[i], reds[i], greens[i], blues[i] ) ); alphas[i] = (byte)(( 0xff000000 & rgb ) >> 24); reds[i] = (byte)(( 0xff0000 & rgb ) >> 16); greens[i] = (byte)(( 0xff00 & rgb ) >> 8); blues[i] = (byte)(0xff & rgb); } return new IndexColorModel( icm.getPi...
public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
public abstract int filterRGB(int x, int y, int rgb);
public abstract int filterRGB(int x, int y, int rgb);
public abstract int filterRGB(int x, int y, int rgb);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp;
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i;
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); }
i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++;
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
private int makeColor(byte a, byte r, byte g, byte b) { return (0xff000000 & (a << 24) | 0xff0000 & (r << 16) | 0xff00 & (b << 8) | 0xff & g);
private int makeColor( byte a, byte r, byte g, byte b ) { return ( 0xff000000 & (a << 24) | 0xff0000 & (r << 16) | 0xff00 & (g << 8) | 0xff & b );
private int makeColor(byte a, byte r, byte g, byte b) { return (0xff000000 & (a << 24) | 0xff0000 & (r << 16) | 0xff00 & (b << 8) | 0xff & g); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
private int makeColorbyDefaultCM(int rgb) { return makeColor(origmodel.getRed(rgb), origmodel.getGreen(rgb), origmodel.getGreen(rgb), origmodel.getBlue(rgb));
private int makeColorbyDefaultCM(ColorModel model, byte rgb) { return makeColor( model.getAlpha( rgb ) * 4, model.getRed( rgb ) * 4, model.getGreen( rgb ) * 4, model.getBlue( rgb ) * 4 );
private int makeColorbyDefaultCM(int rgb) { return makeColor(origmodel.getRed(rgb), origmodel.getGreen(rgb), origmodel.getGreen(rgb), origmodel.getBlue(rgb)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
public void setColorModel(ColorModel model) {
public void setColorModel(ColorModel model) {
public void setColorModel(ColorModel model) { origmodel = model; newmodel = model; if ((model instanceof IndexColorModel) && canFilterIndexColorModel) { newmodel = filterIndexColorModel((IndexColorModel) model); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
if ((model instanceof IndexColorModel) && canFilterIndexColorModel) { newmodel = filterIndexColorModel((IndexColorModel) model);
if( ( model instanceof IndexColorModel) && canFilterIndexColorModel ) { newmodel = filterIndexColorModel( (IndexColorModel) model );
public void setColorModel(ColorModel model) { origmodel = model; newmodel = model; if ((model instanceof IndexColorModel) && canFilterIndexColorModel) { newmodel = filterIndexColorModel((IndexColorModel) model); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) {
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if(model == origmodel && (model instanceof IndexColorModel) && canFilterIndexColorModel) {
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
} else { int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x, y, w, h, pixelsi, offset, scansize);
} else { int intPixels[] = convertColorModelToDefault( x, y, w, h, model, pixels, offset, scansize ); filterRGBPixels( x, y, w, h, intPixels, offset, scansize ); consumer.setPixels(x, y, w, h, ColorModel.getRGBdefault(), intPixels, offset, scansize);
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
public void substituteColorModel(ColorModel oldcm, ColorModel newcm) {
public void substituteColorModel(ColorModel oldcm, ColorModel newcm) {
public void substituteColorModel(ColorModel oldcm, ColorModel newcm) { origmodel = oldcm; newmodel = newcm; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
return null;
return "CheckBoxMenuItem";
protected String getPropertyPrefix() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicCheckBoxMenuItemUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java
log.finest("SignerInfo: " + val);
if (Configuration.DEBUG) log.fine("SignerInfo: " + val);
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/SignerInfo.java/clean/core/src/classpath/gnu/gnu/java/security/pkcs/SignerInfo.java
log.finest(" Version: " + version);
log.fine(" Version: " + version);
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/SignerInfo.java/clean/core/src/classpath/gnu/gnu/java/security/pkcs/SignerInfo.java
log.finest(" IssuerAndSerialNumber: " + val);
if (Configuration.DEBUG) log.fine(" IssuerAndSerialNumber: " + val);
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/SignerInfo.java/clean/core/src/classpath/gnu/gnu/java/security/pkcs/SignerInfo.java