rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
"Invalid signature in getArgSlotCount: " + signature);*/ return getArgSlotCount(signature.toCharArray()); | "Invalid signature in getArgSlotCount: " + String.valueOf(signature)); | public static final int getArgSlotCount(String signature) { /*int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' :... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/Signature.java/buggy/core/src/core/org/jnode/vm/classmgr/Signature.java |
{ | { | public Exception getException() { return exception; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/TransformerFactoryConfigurationError.java/clean/core/src/classpath/javax/javax/xml/transform/TransformerFactoryConfigurationError.java |
} | } | public Exception getException() { return exception; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/TransformerFactoryConfigurationError.java/clean/core/src/classpath/javax/javax/xml/transform/TransformerFactoryConfigurationError.java |
Log.infoln("Locator.setIterationOrder() has reset the current location to the dataCube origin."); | public void setIterationOrder (List axisIterationList) { int stop = axisIterationList.size(); for (int i = 0; i < stop; i++) { Object axisObj = axisIterationList.get(i); axisOrderList.add(axisObj); locations.put(axisObj, new Integer(0)); } } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7a1f6cf6a7a7fc6090c4fb963741090ff753f9cc/Locator.java/buggy/src/gov/nasa/gsfc/adc/xdf/Locator.java | |
System.out.println("restore screen partial"); | private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1:... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/138d7f531fedca589f174b282c497f86f7e83899/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
screen52.clearGuiStuff(); | private boolean writeToDisplayStructuredField() { boolean error = false; boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (!done) { int s = bk.getNextByte() & 0xff; switch (s) { ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/138d7f531fedca589f174b282c497f86f7e83899/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
b = Character.toString(index).getBytes("Cp1141")[0]; | b = characterToString(index).getBytes("Cp1141")[0]; | public byte uni2ebcdic (char index) { if (convert) { if (codePage.equals("1141")) { byte b = 0x0; try { b = Character.toString(index).getBytes("Cp1141")[0]; } catch (java.io.UnsupportedEncodingException uee) { uee.printStackTrace(); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0906d8d2a99a603761fa1193fa1c71481813bb17/CodePage.java/buggy/tn5250j/src/org/tn5250j/tools/CodePage.java |
b = Character.toString(index).getBytes("Cp1140")[0]; | b = characterToString(index).getBytes("Cp1140")[0]; | public byte uni2ebcdic (char index) { if (convert) { if (codePage.equals("1141")) { byte b = 0x0; try { b = Character.toString(index).getBytes("Cp1141")[0]; } catch (java.io.UnsupportedEncodingException uee) { uee.printStackTrace(); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0906d8d2a99a603761fa1193fa1c71481813bb17/CodePage.java/buggy/tn5250j/src/org/tn5250j/tools/CodePage.java |
public MarginBorder() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicBorders.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicBorders.java | ||
protected void setPendingInsert(boolean flag) { | protected void setPendingInsert(boolean flag, int icX, int icY) { | protected void setPendingInsert(boolean flag) { if (homePos != -1) pendingInsert = flag; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/446c691d87b77c1be3b434626845a4988e42aea7/Screen5250.java/buggy/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java |
if (homePos != -1) | pendingInsert = flag; | protected void setPendingInsert(boolean flag) { if (homePos != -1) pendingInsert = flag; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/446c691d87b77c1be3b434626845a4988e42aea7/Screen5250.java/buggy/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java |
pendingInsert = flag; | if (pendingInsert) { homePos = getPos(icX, icY); } if (!isStatusErrorCode()) { setCursor(icX, icY); } | protected void setPendingInsert(boolean flag) { if (homePos != -1) pendingInsert = flag; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/446c691d87b77c1be3b434626845a4988e42aea7/Screen5250.java/buggy/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java |
public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); final Properties res = new Properties(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.pu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java | ||
res.put("gnu.java.io.encoding_scheme_alias.US-ASCII", "ISO8859-1"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16LE", "UTF16LE"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16BE", "UTF16BE"); | res.put("gnu.java.io.encoding_scheme_alias.US-ASCII", "ISO8859-1"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16LE", "UTF16LE"); res.put("gnu.java.io.encoding_scheme_alias.UTF-16BE", "UTF16BE"); | public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = vm.getArch().getName(); final Properties res = new Properties(); // Java properties res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.pu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java |
if (current == proc.getCurrentThread()) { | if (current.isInSystemException()) { proc.disableReschedule(); try { mt = reader.getVmStackTrace(current.getExceptionStackFrame(), current.getExceptionInstructionPointer(), STACKTRACE_LIMIT); } finally { proc.enableReschedule(); } } else if (current == proc.getCurrentThread()) { | public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); Unsafe.die("getStackTrace"); return null; } else { current.inException = true; } if (Vm.getVm().getHeapManager().isL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java |
super(); | public NoClassDefFoundError() { super(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/NoClassDefFoundError.java/buggy/core/src/classpath/java/java/lang/NoClassDefFoundError.java | |
public ArrayStoreException(String s) { super(s); | public ArrayStoreException() { | public ArrayStoreException(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/ArrayStoreException.java/buggy/core/src/classpath/java/java/lang/ArrayStoreException.java |
if (eTable != null) { return eTable[index]; } else { throw new IndexOutOfBoundsException("eTable is null; index " + index); } } | if (eTable != null) { return eTable[ index]; } else { throw new IndexOutOfBoundsException("eTable is null; index " + index); } } | public VmCompiledExceptionHandler getExceptionHandler(int index) { if (eTable != null) { return eTable[index]; } else { throw new IndexOutOfBoundsException("eTable is null; index " + index); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
return resolved; | return true; | public boolean isResolved() { return resolved; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10b9028253f5fe6331eb3ee3c17eb137e07633c9/VmConstObject.java/buggy/core/src/core/org/jnode/vm/classmgr/VmConstObject.java |
final int cmpStart = Address.compare(codePtr, nativeCode); final int cmpEnd = Address.compare(codePtr, Address.add(nativeCode, nativeCodeSize1)); return ((cmpStart >= 0) && (cmpEnd < 0)); } | final int cmpStart = Address.compare(codePtr, nativeCode); final int cmpEnd = Address.compare(codePtr, Address.add(nativeCode, nativeCodeSize1)); return ((cmpStart >= 0) && (cmpEnd < 0)); } | public boolean contains(Address codePtr) { final int cmpStart = Address.compare(codePtr, nativeCode); final int cmpEnd = Address.compare(codePtr, Address.add(nativeCode, nativeCodeSize1)); return ((cmpStart >= 0) && (cmpEnd < 0)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
return defaultExceptionHandler; } | return defaultExceptionHandler; } | public Address getDefaultExceptionHandler() { return defaultExceptionHandler; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
ip = stack[i].getReturnAddress(); | ip = Address.add(stack[i].getReturnAddress(), -1); | final VmStackFrame[] getVmStackTrace(Address argFrame, Address ip, int limit) { final Address frame = argFrame; Address f = frame; int count = 0; while (isValid(f) && (count < limit)) { count++; f = getPrevious(f); } if ((f != null) && !isStackBottom(f) && (count < limit)) { Unsafe.debug("Corrupted stack!,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmStackReader.java/buggy/core/src/core/org/jnode/vm/VmStackReader.java |
public BigDecimal (String num) throws NumberFormatException | public BigDecimal (BigInteger num) | public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e81465c8dc08fe3c0a055c4bb1c2588e37b39c25/BigDecimal.java/buggy/core/src/classpath/java/java/math/BigDecimal.java |
int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while (point < len) { char c = num.charAt (point); if (c == '.') { if (dot >= 0) throw new NumberFormatExceptio... | this (num, 0); | public BigDecimal (String num) throws NumberFormatException { int len = num.length(); int start = 0, point = 0; int dot = -1; boolean negative = false; if (num.charAt(0) == '+') { ++start; ++point; } else if (num.charAt(0) == '-') { ++start; ++point; negative = true; } while... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e81465c8dc08fe3c0a055c4bb1c2588e37b39c25/BigDecimal.java/buggy/core/src/classpath/java/java/math/BigDecimal.java |
/*if (newFreeSize <= headerSize) { Unsafe.debug("Block splitup failed"); Unsafe.debug("\ncurFreeSize "); Unsafe.debug(curFreeSize); Unsafe.debug("\ntotalSize "); Unsafe.debug(totalSize); Unsafe.debug("\nnewFreeSize "); Unsafe.debug(newFreeSize); Unsafe.debug("\nheaderSize "); Unsafe.debug(headerSize); throw new Erro... | protected Object alloc(VmClassType vmClass, int alignedSize) { if (nextFreePtr == null) { /* This heap is full */ return null; } final int totalSize = alignedSize + headerSize; final Object tib = vmClass.getTIB(); //final int size = getSize(); final int tibOffset = this.tib... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/VmDefaultHeap.java/buggy/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java | |
registerPool.release(l.getLocation()); | RegisterLocation regLoc = (RegisterLocation) l.getLocation(); registerPool.release(regLoc.getRegister()); | private void expireOldRange(LiveRange lr) { for (int i=0; i<active.size(); i+=1) { LiveRange l = (LiveRange) active.get(i); if (l.getLastUseAddress() >= lr.getAssignAddress()) { return; } active.remove(l); registerPool.release(l.getLocation()); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d18e9a04e790dda0051cb1f66d02c6027be23f2e/LinearScanAllocator.java/buggy/core/src/core/org/jnode/vm/compiler/ir/LinearScanAllocator.java |
public StackLocation() { this(0); | public StackLocation(int displacement) { super("local" + displacement); this.displacement = displacement; | public StackLocation() { this(0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/StackLocation.java/buggy/core/src/core/org/jnode/vm/compiler/ir/StackLocation.java |
HelpException(String message) { super(message); | HelpException() { super(); | HelpException(String message) { super(message); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/HelpException.java/buggy/shell/src/shell/org/jnode/shell/help/HelpException.java |
public void append(SocketBuffer skbuf) { | public void append(int count) { | public void append(SocketBuffer skbuf) { if (next != null) { next.append(skbuf); } else { next = skbuf; } testBuffer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java |
next.append(skbuf); | next.append(count); | public void append(SocketBuffer skbuf) { if (next != null) { next.append(skbuf); } else { next = skbuf; } testBuffer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java |
next = skbuf; | setSize(size + count); | public void append(SocketBuffer skbuf) { if (next != null) { next.append(skbuf); } else { next = skbuf; } testBuffer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/SocketBuffer.java/buggy/net/src/net/org/jnode/net/SocketBuffer.java |
kbArea = new Rectangle2D.Float(0,0,0,0); | private void checkOffScreenImage() { // do we have something already? if (bi == null) { bi = new GuiGraphicBuffer(); // allocate a buffer Image with appropriate size bi.getImageBuffer(fmWidth * numCols,fmHeight * (numRows + 2)); // fill in the areas tArea = new Recta... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java | |
kbArea.setRect(bi.getKBIndicatorArea()); | private void drawOIA() { // get ourselves a global pointer to the graphics g2d = bi.drawOIA(fmWidth,fmHeight,numRows,numCols,font,colorBg,colorBlue); tArea.setRect(bi.getTextArea()); cArea.setRect(bi.getCommandLineArea()); aArea.setRect(bi.getScreenArea()); sArea.setRect(bi.getStatusAre... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java | |
if (bufferedKeys != null) | if (bufferedKeys != null) { | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; simulateMnemonic(getMnemonicValue(text)); } else { keysBuffered ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java |
setKBIndicatorOn(); } | public void sendKeys(String text) { if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { bufferedKeys = ""; keysBuffered = false; simulateMnemonic(getMnemonicValue(text)); } else { keysBuffered ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java | |
restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,""); isInField(lastPos); simulated = true; updateDirty(); | if (isStatusErrorCode()) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,""); isInField(lastPos); updateDirty(); } setKBIndicatorOff(); simulated = true; | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java |
return getPreferredSize(c); | Dimension d = getPreferredSize(c); View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) d.width += view.getMaximumSpan(View.X_AXIS) - view.getPreferredSpan(View.X_AXIS); return d; | public Dimension getMaximumSize(JComponent c) { return getPreferredSize(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java |
return getPreferredSize(c); | Dimension d = getPreferredSize(c); View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) d.width -= view.getPreferredSpan(View.X_AXIS) - view.getMinimumSpan(View.X_AXIS); return d; | public Dimension getMinimumSize(JComponent c) { return getPreferredSize(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java |
FontMetrics fm; Toolkit g = tip.getToolkit(); text = tip.getTipText(); Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = tip.getInsets(); fm = g.getFontMetrics(tip.getFont()); SwingUtilities.layoutCompoundLabel(tip, fm, text, null, SwingConstants.CENTER, Sw... | String str = tip.getTipText(); FontMetrics fm = c.getFontMetrics(c.getFont()); Insets i = c.getInsets(); Dimension d = new Dimension(i.left + i.right, i.top + i.bottom); if (str != null && ! str.equals("")) { View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) { d.width += (int) view.getPre... | public Dimension getPreferredSize(JComponent c) { JToolTip tip = (JToolTip) c; FontMetrics fm; Toolkit g = tip.getToolkit(); text = tip.getTipText(); Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = tip.getInsets(); fm = g.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java |
propertyChangeHandler = new PropertyChangeHandler(); c.addPropertyChangeListener(propertyChangeHandler); | protected void installListeners(JComponent c) { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java | |
BasicHTML.updateRenderer(c, ((JToolTip) c).getTipText()); | public void installUI(JComponent c) { c.setOpaque(true); installDefaults(c); installListeners(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java | |
Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = t.getFontMetrics(tip.getFont()); | Font font = c.getFont(); FontMetrics fm = c.getFontMetrics(font); | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java |
SwingUtilities.layoutCompoundLabel(tip, fm, text, null, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.CENTER, vr, ir, tr, 0); | Insets i = c.getInsets(); Dimension size = c.getSize(); Rectangle paintR = new Rectangle(i.left, i.top, size.width - i.left - i.right, size.height - i.top - i.bottom); | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java |
g.drawString(text, vr.x, vr.y + ascent); | View view = (View) c.getClientProperty(BasicHTML.propertyKey); if (view != null) view.paint(g, paintR); else g.drawString(text, paintR.x + 3, paintR.y + ascent); | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java |
g.setFont(oldFont); | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java | |
if (propertyChangeHandler != null) { c.removePropertyChangeListener(propertyChangeHandler); propertyChangeHandler = null; } | protected void uninstallListeners(JComponent c) { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java | |
BasicHTML.updateRenderer(c, ""); | public void uninstallUI(JComponent c) { uninstallDefaults(c); uninstallListeners(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicToolTipUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java | |
public ToolTipUI() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/ToolTipUI.java | ||
return new Icon() { public int getIconHeight() { return 10; } public int getIconWidth() { return 10; } public void paintIcon(Component c, Graphics g, int x, int y) { if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("CheckBox.highlight");... | if (checkBoxIcon == null) checkBoxIcon = new CheckBoxIcon(); return checkBoxIcon; | public static Icon getCheckBoxIcon() { return new Icon() { public int getIconHeight() { return 10; } public int getIconWidth() { return 10; } public void paintIcon(Component c, Graphics g, int x, int y) { if (c i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java |
return new Icon() { public int getIconHeight() { return 12; | if (radioButtonIcon == null) radioButtonIcon = new RadioButtonIcon(); return radioButtonIcon; | public static Icon getRadioButtonIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java |
public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel = defaults.getColor("Radio... | public static Icon getRadioButtonIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java | |
public ISO9660Directory(ISO9660Entry entry) { this.entry = entry; } | public ISO9660Directory(ISO9660Entry entry) { this.entry = entry; } | public ISO9660Directory(ISO9660Entry entry) { this.entry = entry; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public FSEntry addDirectory(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | public FSEntry addDirectory(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | public FSEntry addDirectory(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public FSEntry addFile(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | public FSEntry addFile(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | public FSEntry addFile(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public FSEntry getEntry(String name) throws IOException { for(Iterator it = this.iterator();it.hasNext();) { ISO9660Entry entry = (ISO9660Entry) it.next(); if(entry.getName().equalsIgnoreCase(name)) return entry; } return null; } | public FSEntry getEntry(String name) throws IOException { for (Iterator it = this.iterator(); it.hasNext();) { ISO9660Entry entry = (ISO9660Entry) it.next(); if (entry.getName().equalsIgnoreCase(name)) return entry; } return null; } | public FSEntry getEntry(String name) throws IOException { for(Iterator it = this.iterator();it.hasNext();) { ISO9660Entry entry = (ISO9660Entry) it.next(); if(entry.getName().equalsIgnoreCase(name)) return entry; } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public FileSystem getFileSystem() { return null; } | public final FileSystem getFileSystem() { return entry.getFileSystem(); } | public FileSystem getFileSystem() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public boolean isValid() { return true; } | public final boolean isValid() { return true; } | public boolean isValid() { return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; } | public Iterator iterator() throws IOException { return new Iterator() { | public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; } public Object next() { EntryRecord fEntry =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public Object next() { EntryRecord fEntry = new EntryRecord(parent.getVolume(),buffer,offset); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry(fEntry); } | int offset = 0; | public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; } public Object next() { EntryRecord fEntry =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public void remove() { throw new UnsupportedOperationException("Not yet implemented"); } }; } | final EntryRecord parent = ISO9660Directory.this.entry .getCDFSentry(); final byte[] buffer = parent.getExtentData(); public boolean hasNext() { return ((offset < buffer.length) && (buffer[ offset] > 0)); } public Object next() { final ISO9660Volume volume = parent.getVolume(); final EntryRecord fEntry = new EntryRe... | public Iterator iterator() throws IOException { return new Iterator() { int offset = 0; EntryRecord parent = ISO9660Directory.this.entry.getCDFSentry(); byte[] buffer = parent.getExtentData(); public boolean hasNext() { return buffer[offset] > 0; } public Object next() { EntryRecord fEntry =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public boolean hasNext() { return buffer[offset] > 0; } | public boolean hasNext() { return ((offset < buffer.length) && (buffer[ offset] > 0)); } | public boolean hasNext() { return buffer[offset] > 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public Object next() { EntryRecord fEntry = new EntryRecord(parent.getVolume(),buffer,offset); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry(fEntry); } | public Object next() { final ISO9660Volume volume = parent.getVolume(); final EntryRecord fEntry = new EntryRecord(volume, buffer, offset, parent.getEncoding()); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry((ISO9660FileSystem) entry .getFileSystem(), fEntry); } | public Object next() { EntryRecord fEntry = new EntryRecord(parent.getVolume(),buffer,offset); offset += fEntry.getLengthOfDirectoryEntry(); return new ISO9660Entry(fEntry); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public void remove() { throw new UnsupportedOperationException("Not yet implemented"); } | public void remove() { throw new UnsupportedOperationException("Not yet implemented"); } | public void remove() { throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
public void remove(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | public void remove(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | public void remove(String name) throws IOException { throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/aa324658a8e5c25a895787936a31595462ad8442/ISO9660Directory.java/buggy/fs/src/fs/org/jnode/fs/iso9660/ISO9660Directory.java |
super ("UTF-16", null); | super ("UTF-16", new String[] { "UTF16", /* These names are provided by * http: */ "ISO-10646-UCS-2", "unicode", "csUnicode", "ucs-2" }); | UTF_16 () { super ("UTF-16", null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d7e10284742ade2934a1d2f7548145b029098f79/UTF_16.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/UTF_16.java |
boolean isValue = read_boolean(); | boolean isObject = read_boolean(); | public Object read_abstract_interface() { boolean isValue = read_boolean(); if (isValue) return read_value(); else return read_Object(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/InputStream.java/buggy/core/src/classpath/org/org/omg/CORBA_2_3/portable/InputStream.java |
if (isValue) return read_value(); | if (isObject) return read_Object(); | public Object read_abstract_interface() { boolean isValue = read_boolean(); if (isValue) return read_value(); else return read_Object(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/InputStream.java/buggy/core/src/classpath/org/org/omg/CORBA_2_3/portable/InputStream.java |
return read_Object(); | return read_value(); | public Object read_abstract_interface() { boolean isValue = read_boolean(); if (isValue) return read_value(); else return read_Object(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/InputStream.java/buggy/core/src/classpath/org/org/omg/CORBA_2_3/portable/InputStream.java |
try { input.mark(512); int value_tag = input.read_long(); checkTag(value_tag); String codebase = null; String[] ids = null; String id = null; java.lang.Object ox = null; if (value_tag == vt_NULL) return null; else if (value_tag == vt_INDIRECTION) throw new NO_IMPLEMENT("Indirections unsupported"); else { i... | return read(input, (String) null); | public static Serializable read(InputStream input) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { // We may need to jump back if the value is read via value factory. input.mark... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Vio.java/buggy/core/src/classpath/gnu/gnu/CORBA/CDR/Vio.java |
public Image createImage(byte[] data) { return createImage(data, 0, data.length); } | public abstract Image createImage(String filename); | public Image createImage(byte[] data) { return createImage(data, 0, data.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/Toolkit.java/buggy/core/src/classpath/java/java/awt/Toolkit.java |
public ICMPTimestampHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); | public ICMPTimestampHeader( int type, int identifier, int seqNumber, int originateTimestamp, int receiveTimestamp, int transmitTimestamp) { super(type, 0, identifier, seqNumber); | public ICMPTimestampHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_TIMESTAMP) && (type != ICMP_TIMESTAMPREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.originateTimestamp = skbuf.get32(8); this.receiveTimestamp = skbuf.get32(12); this.tran... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/ICMPTimestampHeader.java/buggy/net/src/net/org/jnode/net/ipv4/icmp/ICMPTimestampHeader.java |
this.originateTimestamp = skbuf.get32(8); this.receiveTimestamp = skbuf.get32(12); this.transmitTimestamp = skbuf.get32(16); | this.originateTimestamp = originateTimestamp; this.receiveTimestamp = receiveTimestamp; this.transmitTimestamp = transmitTimestamp; | public ICMPTimestampHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_TIMESTAMP) && (type != ICMP_TIMESTAMPREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.originateTimestamp = skbuf.get32(8); this.receiveTimestamp = skbuf.get32(12); this.tran... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/ICMPTimestampHeader.java/buggy/net/src/net/org/jnode/net/ipv4/icmp/ICMPTimestampHeader.java |
public ICMPAddressMaskHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); | public ICMPAddressMaskHeader(int type, int identifier, int seqNumber, IPv4Address subnetMask) { super(type, 0, identifier, seqNumber); | public ICMPAddressMaskHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_ADDRESS) && (type != ICMP_ADDRESSREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.subnetMask = new IPv4Address(skbuf, 8); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/ICMPAddressMaskHeader.java/buggy/net/src/net/org/jnode/net/ipv4/icmp/ICMPAddressMaskHeader.java |
this.subnetMask = new IPv4Address(skbuf, 8); | this.subnetMask = subnetMask; | public ICMPAddressMaskHeader(SocketBuffer skbuf) { super(skbuf); final int type = getType(); if ((type != ICMP_ADDRESS) && (type != ICMP_ADDRESSREPLY)) { throw new IllegalArgumentException("Invalid type " + type); } this.subnetMask = new IPv4Address(skbuf, 8); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/ICMPAddressMaskHeader.java/buggy/net/src/net/org/jnode/net/ipv4/icmp/ICMPAddressMaskHeader.java |
public ICMPEchoHeader(SocketBuffer skbuf) { super(skbuf); | public ICMPEchoHeader(int type, int identifier, int seqNumber) { super(type, 0, identifier, seqNumber); | public ICMPEchoHeader(SocketBuffer skbuf) { super(skbuf); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/ICMPEchoHeader.java/buggy/net/src/net/org/jnode/net/ipv4/icmp/ICMPEchoHeader.java |
attribHash.put("axisDatatype",new XMLAttribute(new StringDataFormat(), Constants.OBJECT_TYPE)); | attribHash.put("axisDatatype",new XMLAttribute(new StringDataFormat(), Constants.STRING_TYPE)); | private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d0452a0b5820c660cc92e5d08c9fccd650031b77/Axis.java/buggy/src/gov/nasa/gsfc/adc/xdf/Axis.java |
JViewport vp = (JViewport)parent; Component view = vp.getView(); if (view != null) return view.getMinimumSize(); else return new Dimension(); | return new Dimension(4, 4); | public Dimension minimumLayoutSize(Container parent) { JViewport vp = (JViewport)parent; Component view = vp.getView(); if (view != null) return view.getMinimumSize(); else return new Dimension(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/ViewportLayout.java/buggy/core/src/classpath/javax/javax/swing/ViewportLayout.java |
public void connect(SocketAddress address) throws SocketException | public void connect(InetAddress address, int port) | public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4ab0e0ca443d7a98e3dfd00d94df0d256e3fbd3f/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java |
if (isClosed()) throw new SocketException("socket is closed"); | if (address == null) throw new IllegalArgumentException("Connect address may not be null"); | public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4ab0e0ca443d7a98e3dfd00d94df0d256e3fbd3f/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java |
if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); | if ((port < 1) || (port > 65535)) throw new IllegalArgumentException("Port number is illegal: " + port); | public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4ab0e0ca443d7a98e3dfd00d94df0d256e3fbd3f/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java |
InetSocketAddress tmp = (InetSocketAddress) address; connect(tmp.getAddress(), tmp.getPort()); | SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkConnect(address.getHostName(), port); try { getImpl().connect(address, port); remoteAddress = address; remotePort = port; } catch (SocketException e) { } | public void connect(SocketAddress address) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (! (address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketAddress tmp = (InetSocketAddress) address; con... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4ab0e0ca443d7a98e3dfd00d94df0d256e3fbd3f/DatagramSocket.java/buggy/core/src/classpath/java/java/net/DatagramSocket.java |
public abstract int read(ByteBuffer dst) throws IOException; | public final long read(ByteBuffer[] dsts) throws IOException { long b = 0; for (int i = 0; i < dsts.length; i++) b += read(dsts[i]); return b; } | public abstract int read(ByteBuffer dst) throws IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DatagramChannel.java/buggy/core/src/classpath/java/java/nio/channels/DatagramChannel.java |
public DatagramPacket(byte[] buf, int length) { this(buf, 0, length); | public DatagramPacket(byte[] buf, int offset, int length) { setData(buf, offset, length); address = null; port = -1; | public DatagramPacket(byte[] buf, int length) { this(buf, 0, length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java |
public SocketAddress getSocketAddress() { | public SocketAddress getSocketAddress() { | public SocketAddress getSocketAddress() { return new InetSocketAddress(address, port); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c463aa3bd840a934d101c434976bb7b25d5b975/DatagramPacket.java/buggy/core/src/classpath/java/java/net/DatagramPacket.java |
public abstract int write(ByteBuffer src) throws IOException; | public final long write(ByteBuffer[] srcs) throws IOException { long b = 0; for (int i = 0; i < srcs.length; i++) b += write(srcs[i]); return b; } | public abstract int write(ByteBuffer src) throws IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DatagramChannel.java/buggy/core/src/classpath/java/java/nio/channels/DatagramChannel.java |
Level.toLevel(Level.OFF_INT); | log.setLevel((Level)Level.OFF); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: Level.toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: Level.toLevel(org.apache.log4j.Level.INFO_INT); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6f5b3058f823be5d7680327fd154e97f4115b81b/Log4jLogger.java/clean/tn5250j/src/org/tn5250j/tools/logging/Log4jLogger.java |
public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: Level.toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: Level.toLevel(org.apache.log4j.Level.INFO_INT); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6f5b3058f823be5d7680327fd154e97f4115b81b/Log4jLogger.java/clean/tn5250j/src/org/tn5250j/tools/logging/Log4jLogger.java | ||
Level.toLevel(org.apache.log4j.Level.DEBUG_INT); | log.setLevel((Level)Level.DEBUG); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: Level.toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: Level.toLevel(org.apache.log4j.Level.INFO_INT); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6f5b3058f823be5d7680327fd154e97f4115b81b/Log4jLogger.java/clean/tn5250j/src/org/tn5250j/tools/logging/Log4jLogger.java |
Level.toLevel(org.apache.log4j.Level.INFO_INT); | log.setLevel((Level)Level.INFO); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: Level.toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: Level.toLevel(org.apache.log4j.Level.INFO_INT); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6f5b3058f823be5d7680327fd154e97f4115b81b/Log4jLogger.java/clean/tn5250j/src/org/tn5250j/tools/logging/Log4jLogger.java |
Level.toLevel(org.apache.log4j.Level.WARN_INT); | log.setLevel((Level)Level.WARN); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: Level.toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: Level.toLevel(org.apache.log4j.Level.INFO_INT); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6f5b3058f823be5d7680327fd154e97f4115b81b/Log4jLogger.java/clean/tn5250j/src/org/tn5250j/tools/logging/Log4jLogger.java |
Level.toLevel(org.apache.log4j.Level.ERROR_INT); | log.setLevel((Level)Level.ERROR); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: Level.toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: Level.toLevel(org.apache.log4j.Level.INFO_INT); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6f5b3058f823be5d7680327fd154e97f4115b81b/Log4jLogger.java/clean/tn5250j/src/org/tn5250j/tools/logging/Log4jLogger.java |
Level.toLevel(org.apache.log4j.Level.FATAL_INT); | log.setLevel((Level)Level.FATAL); | public void setLevel(int newLevel) { switch (newLevel) { case OFF: Level.toLevel(Level.OFF_INT); break; case DEBUG: Level.toLevel(org.apache.log4j.Level.DEBUG_INT); break; case INFO: Level.toLevel(org.apache.log4j.Level.INFO_INT); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6f5b3058f823be5d7680327fd154e97f4115b81b/Log4jLogger.java/clean/tn5250j/src/org/tn5250j/tools/logging/Log4jLogger.java |
if ((mY % 2) == 0) | if (((mY - y) % 2) == 0) | static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if ((mY % 2) == 0) g.setColor(light); else g.s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/MetalUtils.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalUtils.java |
for (i = lo; i < hi; ++i) | for (i = lo; i <= hi; ++i) | public int[] getSelectedIndices() { int lo, hi, n, i, j; if (selectionModel.isSelectionEmpty()) return new int[0]; lo = selectionModel.getMinSelectionIndex(); hi = selectionModel.getMaxSelectionIndex(); n = 0; for (i = lo; i <= hi; ++i) if (selectionModel.isSelectedIndex(i)) n++; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java |
.getSelectionMode() == treeSelectionModel.SINGLE_TREE_SELECTION) | .getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = ((int) click.getY() / getRowHeight()) - 1; if (BasicTreeUI.this.tree.isRowSelected(row)) BasicTreeUI.this.tree.removeSelectionRow(row); else if (BasicTreeUI.this.tree.getSelectionModel() .getSelectionMode() == tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = ((int) click.getY() / getRowHeight()) - 1; if (BasicTreeUI.this.tree.isRowSelected(row)) BasicTreeUI.this.tree.removeSelectionRow(row); else if (BasicTreeUI.this.tree.getSelectionModel() .getSelectionMode() == tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
.getSelectionMode() == treeSelectionModel.CONTIGUOUS_TREE_SELECTION) | .getSelectionMode() == TreeSelectionModel.CONTIGUOUS_TREE_SELECTION) | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = ((int) click.getY() / getRowHeight()) - 1; if (BasicTreeUI.this.tree.isRowSelected(row)) BasicTreeUI.this.tree.removeSelectionRow(row); else if (BasicTreeUI.this.tree.getSelectionModel() .getSelectionMode() == tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = ((int) click.getY() / getRowHeight()) - 1; if (BasicTreeUI.this.tree.isRowSelected(row)) BasicTreeUI.this.tree.removeSelectionRow(row); else if (BasicTreeUI.this.tree.getSelectionModel() .getSelectionMode() == tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
BasicTreeUI.this.tree.getSelectionModel() .setSelectionMode( treeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); | BasicTreeUI.this.tree.getSelectionModel().setSelectionMode( TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = ((int) click.getY() / getRowHeight()) - 1; if (BasicTreeUI.this.tree.isRowSelected(row)) BasicTreeUI.this.tree.removeSelectionRow(row); else if (BasicTreeUI.this.tree.getSelectionModel() .getSelectionMode() == tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = ((int) click.getY() / getRowHeight()) - 1; if (BasicTreeUI.this.tree.isRowSelected(row)) BasicTreeUI.this.tree.removeSelectionRow(row); else if (BasicTreeUI.this.tree.getSelectionModel() .getSelectionMode() == tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.