bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
public boolean getDragEnabled() { // FIXME: Implement return false; }
2,531
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return false; }
public boolean getDragEnabled() throws NotImplementedException { // FIXME: Implement return dragEnabled; }
2,532
protected String paramString() { return "JFileChooser"; }
protected String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",approveButtonText="); if (approveButtonText != null) sb.append(approveButtonText); sb.append(",currentDirectory="); if (currentDir != null) sb.append(currentDir); sb.append(",dialogTitle="); if (dialogTitle != nu...
2,533
public void setDragEnabled(boolean b) throws NotImplementedException { // FIXME: Implement }
public void setDragEnabled(boolean b) { // FIXME: Implement }
2,534
public ICC_ColorSpace(ICC_Profile profile) { super(CS_sRGB, profile.getNumComponents()); thisProfile = profile; }
public ICC_ColorSpace(ICC_Profile profile) { super(profile.getColorSpaceType(), profile.getNumComponents()); converter = getConverter(profile); thisProfile = profile; }
2,538
public float[] fromCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
public float[] fromCIEXYZ(float[] colorvalue) { // FIXME: Not implemented return converter.fromCIEXYZ(colorvalue); }
2,540
public float[] fromRGB(float[] rgbvalue) { if (rgbvalue.length < 3) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return rgbvalue; }
public float[] fromRGB(float[] rgbvalue) { if (rgbvalue.length < 3) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return rgbvalue; }
2,541
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
public float getMaxValue(int idx) { if (type == ColorSpace.TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) thro...
2,542
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == ColorSpace.TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) thro...
2,543
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= numComponents) throw new Illeg...
public float getMaxValue(int idx) { if (type == TYPE_XYZ && idx >= 0 && idx <= 2) return 1 + 32767 / 32768f; else if (type == TYPE_Lab) { if (idx == 0) return 100; if (idx == 1 || idx == 2) return 127; } if (idx < 0 || idx >= nComponents) throw new Illegal...
2,544
public float getMinValue(int idx) { if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 0; }
public float getMinValue(int idx) { if (type == TYPE_Lab && (idx == 1 || idx == 2)) return -128; if (idx < 0 || idx >= numComponents) throw new IllegalArgumentException(); return 0; }
2,545
public float[] toCIEXYZ(float[] colorvalue) { // FIXME: Not implemented throw new UnsupportedOperationException(); }
public float[] toCIEXYZ(float[] colorvalue) { // FIXME: Not implemented return converter.toCIEXYZ(colorvalue); }
2,546
public float[] toRGB(float[] colorvalue) { if (colorvalue.length < numComponents) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return colorvalue; }
public float[] toRGB(float[] colorvalue) { if (colorvalue.length < numComponents) throw new IllegalArgumentException (); // FIXME: Always assumes sRGB: return colorvalue; }
2,547
public int getColorSpaceType() { throw new Error("not implemented"); }
public int getColorSpaceType() { return header.getColorSpace(); }
2,548
public int getNumComponents() { switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: // have no clue about this one default: throw new UnsupportedOperationExc...
public int getNumComponents() { switch (profileID) { case ColorSpace.CS_sRGB: case ColorSpace.CS_LINEAR_RGB: case ColorSpace.CS_CIEXYZ: return 3; case ColorSpace.CS_GRAY: return 1; case ColorSpace.CS_PYCC: // have no clue about this one default: throw new UnsupportedOperationExc...
2,549
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException() { super(s); }
2,550
public ArrayIndexOutOfBoundsException(String s) { super(s); }
public ArrayIndexOutOfBoundsException(String s) { }
2,551
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device provider...
public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device providers available."); do ...
2,552
public static MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException { Iterator readers = ServiceFactory.lookupProviders(MidiFileReader.class); while (readers.hasNext()) { MidiFileReader sr = (MidiFileReader) readers.next(); MidiFileFormat sb = sr.getM...
public static MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException { Iterator readers = ServiceFactory.lookupProviders(MidiFileReader.class); while (readers.hasNext()) { MidiFileReader sr = (MidiFileReader) readers.next(); MidiFileFormat sb = sr.getM...
2,553
public static int write(Sequence in, int fileType, OutputStream out) throws IOException, IllegalArgumentException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupp...
public static int write(Sequence in, int fileType, OutputStream out) throws IOException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupported(fileType, in)) ...
2,554
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
protected NIOSocket (SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
2,556
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; }
2,557
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl...
private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl...
2,558
public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
public void mousePressed (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); }
2,559
public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); }
public void mouseReleased (MouseEvent event) { if (SwingUtilities.isRightMouseButton(event)) showPopupMenu(event); }
2,560
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure ...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure ...
2,561
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); String thisString = new String(buf,offset,len); if ( readObj instanceof TaggedXMLDataIOStyle ) { // dont add this data unless it ha...
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); String thisString = new String(buf,offset,len); if ( readObj instanceof TaggedXMLDataIOStyle ) { // dont add this data unless it ha...
2,563
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ...
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ...
2,564
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ...
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ...
2,565
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisLocation(FastestAxis);...
public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis); ...
2,567
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amo...
private void addByteDataToCurrentArray (byte[] data, int amount, String endian) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amount+" bytes of data ...
2,568
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amo...
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amo...
2,569
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b...
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that w...
2,570
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b...
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b...
2,571
private Integer convert2bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 8 | (bb[sbyte+1]&0xFF); else i = (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); }
private Integer convert2bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[sbyte]&0xFF) << 8 | (bb[sbyte+1]&0xFF); else i = (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); }
2,572
private Float convert4bytesToFloat (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0x...
private Float convert4bytesToFloat (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sb...
2,573
private Integer convert4bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2...
private Integer convert4bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals(Constants.BIG_ENDIAN)) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (b...
2,574
private Double convert8bytesToDouble (String endianStyle, byte[] bb, int sbyte) { int i1; int i2; if(endianStyle.equals("BigEndian")) { i1 = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); i2 = (bb[sbyte+4]&0xFF) << 24 |...
private Double convert8bytesToDouble (String endianStyle, byte[] bb, int sbyte) { int i1; int i2; if(endianStyle.equals(Constants.BIG_ENDIAN)) { i1 = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); i2 = (bb[sbyte+4]&0xFF...
2,575
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { ...
private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { ...
2,576
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=...
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=...
2,578
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=...
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=...
2,579
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
2,580
public Object getNextValue() { /* Check for a next value */ if (index < (list.size() - 1)) { /* Return the element at the next index */ return list.get(index + 1); } else { /* Return null as this is the end of the list */ return null; } }
public Object getNextValue() { /* Check for a next value */ if (index < (list.size() - 1)) { /* Return the element at the next index */ return list.get(index + 1); } else { /* Return null as this is the end of the list */ return null; } }
2,581
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
2,582
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } }
2,583
public void setList(List list) { /* Check for null or zero size list */ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } /* Check for a change of referenced list */ if (this.list != list) { /* Store the new list */ this.list = list; /...
public void setList(List list) { /* Check for null or zero size list */ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } /* Check for a change of referenced list */ if (this.list != list) { /* Store the new list */ this.list = list; /...
2,584
public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the ind...
public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the ind...
2,585
public Object clone() throws CloneNotSupportedException { if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException(); KeyPairGenerator result = new DummyKeyPairGenerator ((KeyPairGeneratorSpi) kpgSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return resu...
public Object clone() throws CloneNotSupportedException { if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException(); KeyPairGenerator result = new DummyKeyPairGenerator ((KeyPairGeneratorSpi) kpgSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return resu...
2,586
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.g...
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.g...
2,587
public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "c...
public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "c...
2,588
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ...
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ...
2,589
public Request create_request(org.omg.CORBA.Object target, Context context, String operation, NVList parameters, NamedValue returns ) { throw new NO_IMPLEMENT(); }
public Request create_request(org.omg.CORBA.Object target, Context context, String operation, NVList parameters, NamedValue returns ) { if (orb instanceof OrbFunctional) { ((OrbFunctional) orb).ensureRunning(); } gnuReques...
2,592
public boolean isCompletelyDirty(JComponent component) { if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty; }
public boolean isCompletelyDirty(JComponent component) { if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty; }
2,594
public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; }
public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } }
2,595
public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true; }
public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true; }
2,596
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
2,597
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
2,598
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone...
2,599
public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(...
public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(...
2,601
public Serializable extract_Value() throws BAD_OPERATION { /**@todo Implement this org.omg.CORBA.Any abstract method*/ throw new java.lang.UnsupportedOperationException("Method extract_Value() not yet implemented."); }
public Serializable extract_Value() throws BAD_OPERATION { /**@todo Implement this org.omg.CORBA.Any abstract method*/ try { return ((ValueBaseHolder) has).value; } catch (ClassCastException ex) { return new BAD_OPERATION("Value type expected"); } }
2,602
public void insert_Value(Serializable x, TypeCode typecode) { resetTypes(); /**@todo Implement this org.omg.CORBA.Any abstract method*/ }
public void insert_Value(Serializable x, TypeCode typecode) { type(typecode); insert_Value(x); /**@todo Implement this org.omg.CORBA.Any abstract method*/ }
2,603
public BooleanHolder(boolean initial_value) { value = initial_value; }
public BooleanHolder() { value = initial_value; }
2,604
public BooleanHolder(boolean initial_value) { value = initial_value; }
public BooleanHolder(boolean initial_value) { }
2,605
public DoubleHolder(double initial_value) { value = initial_value; }
public DoubleHolder() { value = initial_value; }
2,606
public DoubleHolder(double initial_value) { value = initial_value; }
public DoubleHolder(double initial_value) { }
2,607
public FixedHolder(BigDecimal initial_value) { value = initial_value; }
public FixedHolder() { value = initial_value; }
2,608
public FixedHolder(BigDecimal initial_value) { value = initial_value; }
public FixedHolder(BigDecimal initial_value) { }
2,609
public FloatHolder(float initial_value) { value = initial_value; }
public FloatHolder() { value = initial_value; }
2,610
public FloatHolder(float initial_value) { value = initial_value; }
public FloatHolder(float initial_value) { }
2,611
public IntHolder(int initial_value) { value = initial_value; }
public IntHolder() { value = initial_value; }
2,612
public IntHolder(int initial_value) { value = initial_value; }
public IntHolder(int initial_value) { }
2,613
public LongHolder(long initial_value) { value = initial_value; }
public LongHolder() { value = initial_value; }
2,614
public LongHolder(long initial_value) { value = initial_value; }
public LongHolder(long initial_value) { }
2,615
public StringHolder(String initial_value) { value = initial_value; }
public StringHolder() { value = initial_value; }
2,616
public StringHolder(String initial_value) { value = initial_value; }
public StringHolder(String initial_value) { }
2,617
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m11); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m11); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
2,618
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m11); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
public int hashCode() { long l = Double.doubleToLongBits(m00); l = l * 31 + Double.doubleToLongBits(m10); l = l * 31 + Double.doubleToLongBits(m01); l = l * 31 + Double.doubleToLongBits(m02); l = l * 31 + Double.doubleToLongBits(m12); return (int) ((l >> 32) ^ l); }
2,619
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new ...
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new ...
2,621
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new ...
private void checkLayout() { if (offsetsX == null || offsetsY == null || spansX == null || spansY == null) { checkRequirements(); checkTotalRequirements(); int len = target.getComponents().length; offsetsX = new int[len]; offsetsY = new int[len]; spansX = new ...
2,622
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues, int trans) { this (bits, size, reds, greens, blues, (byte[]) null); this.trans = trans; }
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues) { this (bits, size, reds, greens, blues, (byte[]) null); this.trans = trans; }
2,623
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues, int trans) { this (bits, size, reds, greens, blues, (byte[]) null); this.trans = trans; }
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues, int trans) { this (bits, size, reds, greens, blues, (byte[]) null); }
2,624
public static InvalidName extract(Any a) { try { return ((InvalidNameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
public static InvalidName extract(Any a) { try { return ((InvalidNameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } }
2,625
private void parseFile() throws IOException, BadLocationException { Token t1 = scanner.readToken(); if (t1.type != Token.LCURLY) throw new RTFParseException("expected left curly braces"); parseHeader(); parseDocument(); Token t2 = scanner.readToken(); if (t2.type != Token.RCURLY) thr...
private void parseFile() throws IOException, BadLocationException { Token t1 = scanner.readToken(); if (t1.type != Token.LCURLY) throw new RTFParseException("expected left curly braces"); parseHeader(); parseDocument(); Token t2 = scanner.readToken(); if (t2.type != Token.RCURLY) thr...
2,626
public MetalToggleButtonUI() { super(); focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); }
public MetalToggleButtonUI() { super(); focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); }
2,627
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToggleButtonUI(); return instance; }
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToggleButtonUI(); return instance; }
2,628
protected Color getDisabledTextColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText"); }
protected Color getDisabledTextColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText"); }
2,629
protected Color getFocusColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus"); }
protected Color getFocusColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus"); }
2,630
protected Color getSelectColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select"); }
protected Color getSelectColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select"); }
2,631
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
public void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
2,632
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) super.get(key); if (old == null) { super.put(key, value); } else { super.put(key, old + ", " + value); } }
2,633
public String getValue(String header) { return (String) super.get(new Header(header)); }
public String getValue(String header) { for (int i = headers.size() - 1; i >= 0; i--) { HeaderElement e = (HeaderElement)headers.get(i); if (e.name.equalsIgnoreCase(header)) { return e.value; } } return null; }
2,634
public Object put(Object key, Object value) { return super.put(new Header((String) key), value); }
public void put(String name, String value) { return super.put(new Header((String) key), value); }
2,635
public Object put(Object key, Object value) { return super.put(new Header((String) key), value); }
public Object put(Object key, Object value) { for (int i = headers.size() - 1; i >= 0; i--) { HeaderElement e = (HeaderElement)headers.get(i); if (e.name.equalsIgnoreCase(name)) { e.value = value; return; } }
2,636
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
public void putAll(Headers o) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
2,638
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
public void putAll(Map t) { for (Iterator it = o.iterator(); it.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
2,639
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); put(key, value); } }
2,640
public Object remove(Object key) { return super.remove(new Header((String) key)); }
public void remove(String name) { return super.remove(new Header((String) key)); }
2,641
public Object remove(Object key) { return super.remove(new Header((String) key)); }
public Object remove(Object key) { for (Iterator it = headers.iterator(); it.hasNext(); ) { HeaderElement e = (HeaderElement)it.next(); if (e.name.equalsIgnoreCase(name)) it.remove(); } }
2,642
private boolean canAddAxisObjToArray(AxisInterface axisToAdd) { if (axisToAdd.getAxisId() == null) { Log.error("Can't add Axis Object without axisId attribute defined"); return false; } return true; }
private boolean canAddAxisObjToArray(AxisInterface axisToAdd) { if (axisToAdd.getAxisId() == null) { Log.warnln("Warning: Can't add Axis Object without axisId attribute defined"); return false; } return true; }
2,644
public CacheEvent(Object source, int type) { super(source); this.eventType = type; }
public CacheEvent(Object source) { super(source); this.eventType = type; }
2,645