bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... | protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... | 18,183 |
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... | protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ... | 18,184 |
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi... | protected Calendar() { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("firstDayOfWeek"); try ... | 18,185 |
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi... | protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; String[] days = { "", "sun", "mon", "tue", "wed", "thu", "fri", "sat" }; ResourceBundle rb = getBundle(locale); String min = (String) rb.getObject("minNumberOfDaysInFirstWeek"); String first = (String) rb.getObject("fi... | 18,186 |
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); // Paint gap if necessary. if (shou... | protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); // Paint gap if necessary. if (shou... | 18,187 |
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); // Paint gap if necessary. if (shou... | protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); // Paint gap if necessary. if (shou... | 18,188 |
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); boolean isOcean = ... | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); boolean isOcean = ... | 18,189 |
public JIFSFplugin() { return; } | public JIFSFplugin() { return; } | 18,190 |
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add... | public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add... | 18,191 |
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add... | public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add... | 18,192 |
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add... | public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); final PluginDescriptor descr = mgr.getRegistry().getPluginDescriptor(name); if (descr != null) { addStringln("Name:"); addStringln("\t"+descr.getId()); addStringln("Provider:"); add... | 18,193 |
public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public FloatSeqHolder() { value = initial_value; typecode.setLength(value.length); } | 18,194 |
public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public FloatSeqHolder(float[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 18,195 |
public int getTimezoneOffset() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (60 * 1000); } | public int getTimezoneOffset() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (60 * 1000); } | 18,196 |
private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException { input.defaultReadObject(); time = input.readLong(); } | private void readObject(java.io.ObjectInputStream input) throws java.io.IOException, ClassNotFoundException { input.defaultReadObject(); time = input.readLong(); } | 18,197 |
private void writeObject(java.io.ObjectOutputStream output) throws java.io.IOException { output.defaultWriteObject(); output.writeLong(time); } | private void writeObject(java.io.ObjectOutputStream output) throws java.io.IOException { output.defaultWriteObject(); output.writeLong(time); } | 18,198 |
public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); } | public final String getDisplayName() { return (getDisplayName(dst, style, Locale.getDefault())); } | 18,199 |
public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); } | public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); } | 18,200 |
public ReaderDelegate(XMLStreamReader reader) { parent = reader; } | public ReaderDelegate() { parent = reader; } | 18,201 |
public ReaderDelegate(XMLStreamReader reader) { parent = reader; } | public ReaderDelegate(XMLStreamReader reader) { } | 18,202 |
public String getAttributeName(int index) { if (parent != null) return parent.getAttributeName(index); return null; } | public QName getAttributeName(int index) { if (parent != null) return parent.getAttributeName(index); return null; } | 18,203 |
public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(index); return null; } | public String getAttributeValue(String namespaceUri, String localName) { if (parent != null) return parent.getAttributeValue(index); return null; } | 18,204 |
public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(index); return null; } | public String getAttributeValue(int index) { if (parent != null) return parent.getAttributeValue(namespaceUri, localName); return null; } | 18,205 |
public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(); return null; } | public String getNamespaceURI(String prefix) { if (parent != null) return parent.getNamespaceURI(); return null; } | 18,206 |
public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(); return null; } | public String getNamespaceURI() { if (parent != null) return parent.getNamespaceURI(prefix); return null; } | 18,207 |
public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; } | public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException { if (parent != null) return parent.getTextCharacters(); return null; } | 18,208 |
public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; } | public char[] getTextCharacters() { if (parent != null) return parent.getTextCharacters(); return null; } | 18,209 |
public CRLFInputStream(InputStream in) { super(in); } | public CRLFInputStream(InputStream in) { super(in.markSupported() ? in : new BufferedInputStream(in)); } | 18,210 |
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... | public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... | 18,211 |
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... | public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... | 18,212 |
public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... | public int read() throws IOException { int c; if (buf != -1) { c = buf; buf = -1; return c; } else { c = super.read(); if (c == CR) { buf = super.read(); if (buf == LF) { c = buf; b... | 18,213 |
protected Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; } | protected Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; } | 18,217 |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof Inet6Address)) return false; Inet6Address tmp = (Inet6Address) obj; return super.equals(tmp) && this.ipaddress == tmp.ipaddress; } | public boolean equals(Object obj) { if (obj == null || !(obj instanceof Inet6Address)) return false; Inet6Address tmp = (Inet6Address) obj; return super.equals(tmp) && this.ipaddress == tmp.ipaddress; } | 18,218 |
public byte[] getAddress() { return ipaddress; } | public byte[] getAddress() { return ipaddress; } | 18,219 |
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | 18,220 |
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | 18,221 |
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | 18,222 |
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >=... | 18,223 |
public int hashCode() { return super.hashCode(); } | public int hashCode() { return super.hashCode(); } | 18,224 |
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; return ipaddress == anylocal; } | public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; return ipaddress == anylocal; } | 18,225 |
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; return ipaddress == anylocal; } | public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; return ipaddress == anylocal; } | 18,226 |
public boolean isIPv4CompatibleAddress() { if (ipaddress[0] != 0x00 || ipaddress[1] != 0x00 || ipaddress[2] != 0x00 || ipaddress[3] != 0x00 || ipaddress[4] != 0x00 || ipaddress[5] != 0x00 || ipaddress[6] != 0x00 || ipaddress[7] != 0x00 || ipaddress[8] != 0x00 || ipaddress[9] != 0x00 || ipaddress[1... | public boolean isIPv4CompatibleAddress() { if (ipaddress[0] != 0x00 || ipaddress[1] != 0x00 || ipaddress[2] != 0x00 || ipaddress[3] != 0x00 || ipaddress[4] != 0x00 || ipaddress[5] != 0x00 || ipaddress[6] != 0x00 || ipaddress[7] != 0x00 || ipaddress[8] != 0x00 || ipaddress[9] != 0x00 || ipaddress[1... | 18,227 |
public boolean isLinkLocalAddress() { return ipaddress[0] == 0xFA; } | public boolean isLinkLocalAddress() { return ipaddress[0] == 0xFA; } | 18,228 |
public boolean isLoopbackAddress() { byte[] loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; return ipaddress == loopback; } | public boolean isLoopbackAddress() { byte[] loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; return ipaddress == loopback; } | 18,229 |
public boolean isLoopbackAddress() { byte[] loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; return ipaddress == loopback; } | public boolean isLoopbackAddress() { byte[] loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; return ipaddress == loopback; } | 18,230 |
public boolean isMCGlobal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0xE; } | public boolean isMCGlobal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0xE; } | 18,231 |
public boolean isMCLinkLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x2; } | public boolean isMCLinkLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x2; } | 18,232 |
public boolean isMCNodeLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x1; } | public boolean isMCNodeLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x1; } | 18,233 |
public boolean isMCOrgLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x8; } | public boolean isMCOrgLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x8; } | 18,234 |
public boolean isMCSiteLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x5; } | public boolean isMCSiteLocal() { if (!isMulticastAddress()) return false; return (ipaddress[1] & 0x0F) == 0x5; } | 18,235 |
public boolean isMulticastAddress() { return ipaddress[0] == 0xFF; } | public boolean isMulticastAddress() { return ipaddress[0] == 0xFF; } | 18,236 |
public boolean isSiteLocalAddress() { return ipaddress[0] == 0xFB; } | public boolean isSiteLocalAddress() { return ipaddress[0] == 0xFB; } | 18,237 |
protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); c.setBorder(defaults.getBorder("Label.border")... | protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); //XXX: There are properties we don't use ca... | 18,238 |
protected void uninstallDefaults(JLabel c) { c.setForeground(null); c.setBackground(null); c.setFont(null); c.setBorder(null); } | protected void uninstallDefaults(JLabel c) { c.setForeground(null); c.setBackground(null); c.setFont(null); } | 18,239 |
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { int daysInMonth = getDaysInMonth(month, year); if (day < 1 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar... | public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) { int daysInMonth = getDaysInMonth(month, year); if (day < 1 || day > daysInMonth) throw new IllegalArgumentException("day out of range"); if (dayOfWeek < Calendar.SUNDAY || dayOfWeek > Calendar... | 18,241 |
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... | public int read() throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; } length = Math.min(length, r... | 18,242 |
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... | public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... | 18,243 |
public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... | public int read(byte[] data, int offset, int length) throws IOException { if (this.readDataFromBlock) { int remain = this.blockDataBytes - this.blockDataPosition; if (remain == 0) { readNextBlock(); remain = this.blockDataBytes - this.blockDataPosition; }... | 18,244 |
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... | public void write (int data) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); writeBlockDataHea... | 18,245 |
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... | public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... | 18,246 |
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... | public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... | 18,247 |
public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... | public void write(byte[] b, int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException(); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy(b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain(); ... | 18,248 |
public boolean isShowing() { boolean retVal = false; if (SwingTextFieldPeer.this.awtComponent != null) retVal = SwingTextFieldPeer.this.awtComponent.isShowing(); return retVal; } | public boolean isShowing() { boolean retVal = false; if (SwingTextFieldPeer.this.awtComponent != null) retVal = SwingTextFieldPeer.this.awtComponent.isShowing(); return retVal; } | 18,249 |
public SwingTextFieldPeer(TextField textField) { SwingTextField swingTextField = new SwingTextField(); swingTextField.setText(textField.getText()); init(textField, swingTextField); } | public SwingTextFieldPeer(TextField textField) { SwingTextField swingTextField = new SwingTextField(textField); swingTextField.setText(textField.getText()); init(textField, swingTextField); } | 18,250 |
public void select(int startPos, int endPos) { // TODO: Must be implemented. } | public void select(int start_pos, int endPos) { // TODO: Must be implemented. } | 18,251 |
private void paintDefaultButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getContro... | private void paintDefaultButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getContro... | 18,252 |
private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha... | private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha... | 18,253 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color dark = MetalLookAndFeel.getPrimaryControlDarkShadow(); Color light = MetalLookAndFeel.getPrimaryControlHighlight(); if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) ... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Color dark = MetalLookAndFeel.getPrimaryControlDarkShadow(); Color light = MetalLookAndFeel.getPrimaryControlHighlight(); if (c instanceof JMenu) { JMenu menu = (JMenu) c; if (menu.isSelected()) ... | 18,255 |
public static Border getButtonBorder() { if (buttonBorder == null) { Border outer = new ButtonBorder(); Border inner = getMarginBorder(); buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; } | public static Border getButtonBorder() { if (buttonBorder == null) { Border outer = new ButtonBorder(); Border inner = getMarginBorder(); buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; } | 18,256 |
public static Border getToggleButtonBorder() { if (toggleButtonBorder == null) { Border outer = new ToggleButtonBorder(); Border inner = getMarginBorder(); toggleButtonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return toggleButtonBorder; ... | public static Border getToggleButtonBorder() { if (toggleButtonBorder == null) { Border outer = new ToggleButtonBorder(); Border inner = getMarginBorder(); toggleButtonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return toggleButtonBorder; ... | 18,257 |
public boolean isDefaultButton() { //Returns whether or not this button is the default button on the RootPane. return is_def; } | public boolean isDefaultButton() { //Returns whether or not this button is the default button on the RootPane. return is_def; } | 18,258 |
public EtchedBorder() { } | public EtchedBorder() { } | 18,260 |
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final ItemFactory ifac = ec.getItemFactor... | public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final ItemFactory ifac = ec.getItemFactor... | 18,261 |
public BorderUIResource(Border delegate) { this.delegate = delegate; } | public BorderUIResource(Border delegate) { this.delegate = delegate; } | 18,263 |
public static Border createBevelBorder( int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { /* Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas. Parameters: type - an int specifying eit... | public static Border createBevelBorder( int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) { /* Create a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas. Parameters: type - an int specifying eit... | 18,264 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new CommentNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 18,265 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; } | 18,266 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new CommentNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 18,267 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; } | 18,268 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null)... | 18,269 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | 18,270 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null)... | 18,271 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | 18,272 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null)... | 18,273 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != nul... | 18,274 |
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } | 18,275 |
public SwingBaseWindowPeer(SwingToolkit toolkit, awtT window, peerT jComponent) { super(toolkit, window, jComponent); } | public SwingBaseWindowPeer(SwingToolkit toolkit, awtT window, peerT jComponent) { super(toolkit, window, jComponent); } | 18,276 |
public void toBack() { SwingToolkit.invokeNowOrLater(new Runnable() { public void run() { jComponent.toBack(); } }); } | public void toBack() { SwingToolkit.invokeNowOrLater(new Runnable() { public void run() { jComponent.toBack(); } }); } | 18,278 |
public void run() { jComponent.toBack(); } | public void run() { jComponent.toBack(); } | 18,279 |
public void toFront() { SwingToolkit.invokeNowOrLater(new Runnable() { public void run() { jComponent.toFront(); } }); } | public void toFront() { SwingToolkit.invokeNowOrLater(new Runnable() { public void run() { jComponent.toFront(); } }); } | 18,280 |
public void run() { jComponent.toFront(); } | public void run() { jComponent.toFront(); } | 18,281 |
public WrongAdapter(String why) { super(why); } | public WrongAdapter() { super(why); } | 18,282 |
public WrongAdapter(String why) { super(why); } | public WrongAdapter(String why) { } | 18,283 |
protected Item cloneConstant() { return createConst(getValue()); } | protected Item cloneConstant() { return createConst(getValue()); } | 18,284 |
protected abstract Item cloneConstant(); | protected abstract Item cloneConstant(); | 18,285 |
protected Inet4Address(byte[] addr, String host) { super(addr, host); } | protected Inet4Address(byte[] addr, String host) { super(addr, host); } | 18,286 |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof InetAddress)) return false; byte[] addr1 = addr; byte[] addr2 = ((InetAddress) obj).addr; if (addr1.length != addr2.length) return false; for (int i = addr1.length; --i >= 0;) if (addr1[i] != addr2[i]) return false; return true; } | public boolean equals(Object obj) { if (obj == null || !(obj instanceof InetAddress)) return false; byte[] addr1 = addr; byte[] addr2 = ((InetAddress) obj).addr; if (addr1.length != addr2.length) return false; for (int i = addr1.length; --i >= 0;) if (addr1[i] != addr2[i]) return false; return true; } | 18,287 |
public byte[] getAddress() { return addr; } | public byte[] getAddress() { return addr; } | 18,288 |
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); int len = addr.length; int i = 0; for (;;) { sbuf.append(addr[i] & 0xFF); i++; if (i == len) break; sbuf.append('.'); } return sbuf.toString(); } | public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); int len = addr.length; int i = 0; for (;;) { sbuf.append(addr[i] & 0xFF); i++; if (i == len) break; sbuf.append('.'); } return sbuf.toString(); } | 18,289 |
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); int len = addr.length; int i = 0; for (;;) { sbuf.append(addr[i] & 0xFF); i++; if (i == len) break; sbuf.append('.'); } return sbuf.toString(); } | public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); int len = addr.length; int i = 0; for (;;) { sbuf.append(addr[i] & 0xFF); i++; if (i == len) break; sbuf.append('.'); } return sbuf.toString(); } | 18,290 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.