bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected String[] getStringTable() { // FIXME return null; }
protected String[] getStringTable() { // FIXME return stringTable; }
24,057
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return null; int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return null; if (((code / 100) != 4) || ((code / 100) != 5)) return null; try ...
24,058
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
24,059
public int compareTo(Object obj) throws ClassCastException { return 0; }
public int compareTo(Object obj) throws ClassCastException { return 0; }
24,060
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? null : matched; }
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched; }
24,062
public int hashCode() { return 0; }
public int hashCode() { return (getScheme() == null ? 0 : 13 * getScheme().hashCode()) + 17 * getRawSchemeSpecificPart().hashCode() + (getRawFragment() == null ? 0 : 21 + getRawFragment().hashCode()); }
24,063
public URI normalize() { return null; }
public URI normalize() { return null; }
24,064
public URI parseServerAuthority() throws URISyntaxException { return null; }
public URI parseServerAuthority() throws URISyntaxException { if (rawAuthority != null) { Matcher matcher = AUTHORITY_PATTERN.matcher(rawAuthority); if (matcher.matches()) { rawUserInfo = getURIGroup(matcher, AUTHORITY_USERINFO_GROUP); rawHost = getURIGroup(matcher, AUTHORITY_HOST_GROUP); String portStr = getURIG...
24,065
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
24,066
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
24,067
private static String quote(String str) { // FIXME: unimplemented. return str; }
private static String quote(String str) { // FIXME: unimplemented. return quote(str, RFC3986_SSP); }
24,068
private static String quoteAuthority(String str) { // Technically, we should be using RFC2396_AUTHORITY, but // it contains no additional characters. return quote(str, RFC2396_REG_NAME); }
private static String quoteAuthority(String str) { // Technically, we should be using RFC2396_AUTHORITY, but // it contains no additional characters. return quote(str, RFC3986_REG_NAME); }
24,069
private static String quoteHost(String str) { // FIXME: unimplemented. return str; }
private static String quoteHost(String str) { // FIXME: unimplemented. return quote(str, RFC3986_HOST); }
24,070
private static String quotePath(String str) { // Technically, we should be using RFC2396_PATH, but // it contains no additional characters. return quote(str, RFC2396_PATH_SEGMENTS); }
private static String quotePath(String str) { // Technically, we should be using RFC2396_PATH, but // it contains no additional characters. return quote(str, RFC3986_PATH_SEGMENTS); }
24,071
private static String quoteUserInfo(String str) { // FIXME: unimplemented. return str; }
private static String quoteUserInfo(String str) { // FIXME: unimplemented. return quote(str, RFC3986_USERINFO); }
24,072
public URI relativize(URI uri) { return null; }
public URI relativize(URI uri) { if (isOpaque() || uri.isOpaque()) return uri; if (scheme == null && uri.getScheme() != null) return uri; if (scheme != null && !(scheme.equals(uri.getScheme()))) return uri; if (rawAuthority == null && uri.getRawAuthority() != null) return uri; if (rawAuthority != null && !(rawAutho...
24,073
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
24,074
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
24,075
public String toASCIIString() { return ""; }
public String toASCIIString() { return ""; }
24,076
public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + getRawSchemeSpecificPart() + (getRawFragment() == null ? "" : "#" + getRawFragment()); }
public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + getRawSchemeSpecificPart() + (getRawFragment() == null ? "" : "#" + getRawFragment()); }
24,077
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
24,078
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
24,079
public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; typeCode = Restricted_ORB.Singleton.create_enum_tc(id(), "CompletionStatus", members...
public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; typeCode = OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus", members ...
24,080
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashMap actions = new HashMap(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Actio...
24,081
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) { Action a = list1[i]; Object name = a.getValue(Action.NAME); actions.put(name != null ? name : "", a); } for (int i = 0; i < list2.length; ++i) acti...
24,082
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
24,083
protected final JTextComponent getTextComponent(ActionEvent event) { if (event.getSource() instanceof JTextComponent) return (JTextComponent) event.getSource(); return getFocusedComponent(); }
protected final JTextComponent getTextComponent(ActionEvent event) { if (event.getSource() instanceof JTextComponent) return (JTextComponent) event.getSource(); return getFocusedComponent(); }
24,084
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
public char get () { if (pos >= limit) throw new BufferUnderflowException(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
24,086
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
24,087
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
public CharBuffer put (char value) { if (readOnly) throw new ReadOnlyBufferException(); if (pos >= limit) throw new BufferOverflowException(); backing_buffer [position ()] = value; position (position () + 1); return this; }
24,088
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
24,089
public DataBuffer createDataBuffer() { // Important: use scanlineStride here, not width! int size = scanlineStride * height; return Buffers.createBuffer(getDataType(), size); }
public DataBuffer createDataBuffer() { // Important: use scanlineStride here, not width! int size = scanlineStride * height; return Buffers.createBuffer(getDataType(), size); }
24,090
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
24,091
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
24,092
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too shor...
24,093
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type (" + getTransferType() + "), " + "does not match d...
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type (" + getTransferType() + "), " + "does not match d...
24,094
public CommandEnvironment(String cmdpath, String[] argv) { this.cmdpath = cmdpath; this.argv = argv;}
public CommandEnvironment(String cmdpath, String[] argv) { this.cmdpath = cmdpath; this.argv = argv;}
24,095
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
24,096
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
24,097
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
24,098
public String[] getCommandOptions() { return (argv);}
public String[] getCommandOptions() { return (argv);}
24,099
public String getCommandPath() { return (cmdpath);}
public String getCommandPath() { return (cmdpath);}
24,100
public int hashCode() { return (cmdpath.hashCode()); // Not a very good hash code.}
public int hashCode() { return (cmdpath.hashCode()); // Not a very good hash code.}
24,101
public boolean equals(Object obj) { throw new Error("Not implemented");}
public boolean equals(Object obj) { throw new Error("Not implemented");}
24,102
public String getClassName() { throw new Error("Not implemented");}
public String getClassName() { throw new Error("Not implemented");}
24,103
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment() { throw new Error("Not implemented");}
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment() { throw new Error("Not implemented");}
24,104
public MarshalledObject getData() { throw new Error("Not implemented");}
public MarshalledObject getData() { throw new Error("Not implemented");}
24,105
public String getLocation() { throw new Error("Not implemented");}
public String getLocation() { throw new Error("Not implemented");}
24,106
public Properties getPropertyOverrides() { throw new Error("Not implemented");}
public Properties getPropertyOverrides() { throw new Error("Not implemented");}
24,107
public int hashCode() { throw new Error("Not implemented");}
public int hashCode() { throw new Error("Not implemented");}
24,108
public PopupMenu() { }
public PopupMenu() { }
24,109
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) { /* XXX Event e = new Event (component, Event.ACTION_EVENT, component); e.x = x; e.y = y;*/ pmp.show(component, x, y); } }
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) { /* XXX Event e = new Event (component, Event.ACTION_EVENT, component); e.x = x; e.y = y;*/ pmp.show(component, x, y); } }
24,110
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) { /* XXX Event e = new Event (component, Event.ACTION_EVENT, component); e.x = x; e.y = y;*/ pmp.show(component, x, y); } }
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) { /* XXX Event e = new Event (component, Event.ACTION_EVENT, component); e.x = x; e.y = y;*/ pmp.show(component, x, y); } }
24,111
public String getUIClassID() { return "JViewport"; }
public String getUIClassID() { return "ViewportUI"; }
24,113
static void paintHorizontalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (w * g1); ...
static void paintHorizontalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (w * g1); ...
24,114
static void paintHorizontalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (w * g1); ...
static void paintHorizontalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (w * g1); ...
24,115
static void paintVerticalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (h * g1); // T...
static void paintVerticalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3, int[][] mask) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (h ...
24,116
static void paintVerticalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (h * g1); // T...
static void paintVerticalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (h * g1); // T...
24,117
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler...
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler...
24,118
protected byte[] getResult() { byte[] digest = { (byte) a, (byte) (a >>> 8), (byte) (a >>> 16), (byte) (a >>> 24), (byte) b, (byte) (b >>> 8), (byte) (b >>> 16), (byte) (b >>> 24), (byte) c, (byte) (c >>> 8), (byte) (c >>> 16), (byte) (c >>> 24), ...
protected byte[] getResult() { byte[] digest = { (byte) a, (byte) (a >>> 8), (byte) (a >>> 16), (byte) (a >>> 24), (byte) b, (byte) (b >>> 8), (byte) (b >>> 16), (byte) (b >>> 24), (byte) c, (byte) (c >>> 8), (byte) (c >>> 16), (byte) (c >>> 24), ...
24,120
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD4().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { String d = Util.toString(new MD4().digest()); valid = Boolean.valueOf(DIGEST0.equals(d)); } return valid.booleanValue(); }
24,121
public void mark(long mark) { }
public void mark(int mark) { }
24,122
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException { if (cipherSpi == null) { if (inputLength > output.length - outputOffset) { throw new ShortBuffer...
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException { if (cipherSpi == null) { if (inputLength > output.length - outputOffset) { throw new ShortBuffer...
24,123
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException { if (cipherSpi == null) { if (inputLength > output.length - outputOffset) { throw new ShortBuffer...
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException { if (cipherSpi == null) { if (inputLength > output.length - outputOffset) { throw new ShortBuffer...
24,124
protected byte[] getResult() { byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), ...
protected byte[] getResult() { byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), ...
24,125
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); }
24,126
protected void transform(byte[] in, int offset) { int A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, T, s, i; // encode 64 bytes from input block into an array of 16 unsigned integers for (i = 0; i < 16; i++) { X[i] = (in[offset++] & 0xFF) | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF) <...
protected void transform(byte[] in, int offset) { int A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, T, s, i; // encode 64 bytes from input block into an array of 16 unsigned integers for (i = 0; i < 16; i++) { X[i] = (in[offset++] & 0xFF) | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF) <...
24,127
public VGASurface(VGADriver driver) throws ResourceNotFreeException { super(640, 480); this.vga = new StandardVGA(driver.getDevice(), VGADriver.COLOR_MODEL); this.vgaIO = new StandardVGAIO(driver.getDevice(), vga.getVgaMem()); this.driver = driver; this.model = VGADriver.COLOR_MODEL; this.bitmapGraphics = new VG...
public VGASurface(VGADriver driver) throws ResourceNotFreeException, DriverException { super(640, 480); this.vga = new StandardVGA(driver.getDevice(), VGADriver.COLOR_MODEL); this.vgaIO = new StandardVGAIO(driver.getDevice(), vga.getVgaMem()); this.driver = driver; this.model = VGADriver.COLOR_MODEL; this.bitmap...
24,128
public static String mapLibraryName(String libname) { // XXX Fix this!!!! return VMRuntime.nativeGetLibname("", libname); }
public static String mapLibraryName(String libname) { // XXX Fix this!!!! return VMRuntime.mapLibraryName(libname); }
24,129
public static void setProperties(Properties properties) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not ha...
public static void setProperties(Properties properties) { SecurityManager sm = SecurityManager.current; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not ha...
24,130
public static void setProperties(Properties properties) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not ha...
public static void setProperties(Properties properties) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not ha...
24,131
public static synchronized void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan...
public static synchronized void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan...
24,132
public static synchronized void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan...
public static synchronized void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan...
24,133
private static int scanFormat(String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number...
private static int scanFormat(String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number...
24,134
public void setHandle(long handle) { super.setHandle(handle); addNotify(); ArrayList l = parser.parseAppletTags(); int s = l.size(); for (int i = 0; i < s; i++) { tag = (AppletTag) l.get(i); applet = Main.createApplet(tag); if (contexts.get(tag.getCodeBase()) == null) ...
public void setHandle(long handle) { super.setHandle(handle); addNotify(); ArrayList l = parser.parseAppletTags(); int s = l.size(); for (int i = 0; i < s; i++) { tag = (AppletTag) l.get(i); applet = Main.createApplet(tag); if (contexts.get(tag.getCodeBase()) == null) ...
24,135
void setCursor(Cursor c);
void setCursor(Cursor c) throws InvalidDnDOperationException;
24,136
void startDrag(DragSourceContext context, Cursor c, Image i, Point p);
void startDrag(DragSourceContext context, Cursor c, Image i, Point p) throws InvalidDnDOperationException;
24,137
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g...
24,138
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
24,139
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
24,140
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
24,141
public int getBreakWeight(int axis, float pos, float len) { if (axis == X_AXIS) return ForcedBreakWeight; else return BadBreakWeight; }
public int getBreakWeight(int axis, float pos, float len) { if (axis == X_AXIS) return ForcedBreakWeight; else return super.getBreakWeight(axis, pos, len); }
24,143
public RTL8139Core(RTL8139Driver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws DriverException, ResourceNotFreeException { if (!(flags instanceof RTL8139Flags)) throw new DriverException("Wrong flags to the RTL8139 driver"); this.driver = driver; this.flags = (RTL8139Flags) flags; final int ...
public RTL8139Core(RTL8139Driver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws DriverException, ResourceNotFreeException { if (!(flags instanceof RTL8139Flags)) throw new DriverException("Wrong flags to the RTL8139 driver"); this.driver = driver; this.flags = (RTL8139Flags) flags; final int ...
24,144
public int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text); }
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text); }
24,145
public int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text); }
public int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text); }
24,146
public int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.BLACK); g.drawString(text, x, y); return metrics.stringWidth(text); }
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.BLACK); g.drawString(text, x, y); return metrics.stringWidth(text); }
24,147
public int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.BLACK); g.drawString(text, x, y); return metrics.stringWidth(text); }
public int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.BLACK); g.drawString(text, x, y); return metrics.stringWidth(text); }
24,148
public float nextTabStop(float x, int tabStop) { System.out.println("Michael: PlainView.nextTabpStop: missing implementation"); return x; }
public float nextTabStop(float x, int tabStop) { System.out.println("Michael: PlainView.nextTabpStop: missing implementation"); return x; }
24,149
public void paint(Graphics g, Shape s) { System.out.println("Michael: PlainView.paint"); Rectangle rect = s.getBounds(); g.setColor(Color.WHITE); g.fillRect(rect.x, rect.y, rect.width, rect.height); // FIXME: Text may be scrolled. drawLine(0, g, rect.x, rect.y); }
public void paint(Graphics g, Shape s) { JTextComponent textComponent = (JTextComponent) getContainer(); Rectangle rect = s.getBounds(); g.setColor(Color.WHITE); g.fillRect(rect.x, rect.y, rect.width, rect.height); // FIXME: Text may be scrolled. drawLine(0, g, rect.x, rect.y); }
24,150
public void paint(Graphics g, Shape s) { System.out.println("Michael: PlainView.paint"); Rectangle rect = s.getBounds(); g.setColor(Color.WHITE); g.fillRect(rect.x, rect.y, rect.width, rect.height); // FIXME: Text may be scrolled. drawLine(0, g, rect.x, rect.y); }
public void paint(Graphics g, Shape s) { System.out.println("Michael: PlainView.paint"); Rectangle rect = s.getBounds(); g.setColor(Color.WHITE); g.fillRect(rect.x, rect.y, rect.width, rect.height); // FIXME: Text may be scrolled. drawLine(0, g, rect.x, rect.y); }
24,151
public Exception() { super(); }
public Exception() { super(); }
24,152
getPrinterJob();
PrinterJob getPrinterJob();
24,153
protected FramePeer createFrame(Frame target) { log.debug("createFrame", new Exception("Stacktrace")); final int rc = incRefCount(); log.debug("createFrame refCount=" + rc); if (!initialized) { log.debug("createFrame:desktopFramePeer(" + target + ")"); // Only deskt...
protected FramePeer createFrame(Frame target) { final int rc = incRefCount(); log.debug("createFrame refCount=" + rc); if (!initialized) { log.debug("createFrame:desktopFramePeer(" + target + ")"); // Only desktop is real frame initialized = true; ...
24,154
protected FramePeer createFrame(Frame target) { log.debug("createFrame", new Exception("Stacktrace")); final int rc = incRefCount(); log.debug("createFrame refCount=" + rc); if (!initialized) { log.debug("createFrame:desktopFramePeer(" + target + ")"); // Only deskt...
protected FramePeer createFrame(Frame target) { log.debug("createFrame", new Exception("Stacktrace")); final int rc = incRefCount(); if (!initialized) { log.debug("createFrame:desktopFramePeer(" + target + ")"); // Only desktop is real frame initialized ...
24,155
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
protected void onInitialize() { log.debug("onInitialize"); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane(); log.debug("onInitial...
24,156
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane(); log.debug("onInitia...
24,157
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); desktop = new JDesktopPane(); log.debug("onInitia...
24,158
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
24,159
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
24,160
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List...
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List...
24,161