bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a...
private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a...
25,170
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
25,171
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
25,172
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
25,173
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t...
25,174
public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1;; i++) { String s = Security.getProperty("policy.file." + i); ...
public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1;; i++) { String s = Security.getProperty("policy.file." + i); ...
25,175
public FTPFSFile(FTPFileSystem fileSystem, FTPFile ftpFile) { super(fileSystem, ftpFile); }
FTPFSFile(FTPFileSystem fileSystem, FTPFile ftpFile) { super(fileSystem, ftpFile); }
25,176
public static synchronized TypeCode type() { if (typeCode == null) { ORB orb = Restricted_ORB.Singleton; synchronized (TypeCode.class) { if (typeCode == null) { if (active) { return orb.create_recursive_tc(id())...
public static synchronized TypeCode type() { if (typeCode == null) { ORB orb = OrbRestricted.Singleton; synchronized (TypeCode.class) { if (typeCode == null) { if (active) { return orb.create_recursive_tc(id());...
25,177
public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; this.lineNum = lineNum; }
public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; this.lineNum = lineNum; }
25,178
public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; this.lineNum = lineNum; }
public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lineNum = lineNum; this.lineCI = lineCI; this.lineNum = lineNum; }
25,179
public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; this.lineNum = lineNum; }
public LineTable(long start, long end, int lines, long lineCI[], int lineNum[]) { this.start = start; this.end = end; this.lines = lines; this.lineCI = lineCI; }
25,180
protected Graphics getComponentGraphics(Graphics g) { g.setFont(this.getFont()); g.setColor(this.getForeground()); return g; }
protected Graphics getComponentGraphics(Graphics g) { g.setFont(this.getFont()); g.setColor(this.getForeground()); return g; }
25,181
public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return next != max; }
public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return next != max; }
25,182
public static boolean isLowerCase(char ch) { return getType(ch) == LOWERCASE_LETTER; }
public static boolean isLowerCase(char ch) { return isLowerCase((int)ch); }
25,183
public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceContext(); ...
public static ServiceContext read(AbstractCdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceContex...
25,184
public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceContext(); ...
public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case CodeSetServiceContext.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceCo...
25,185
public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = new ServiceContext(); ...
public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID: CodeSetServiceContext codeset = new CodeSetServiceContext(); codeset.readContext(istream); return codeset; default: ServiceContext ctx = n...
25,186
public static ServiceContext[] readSequence(cdrInput istream) { int size = istream.read_long(); ServiceContext[] value = new gnu.CORBA.GIOP.ServiceContext[size]; for (int i = 0; i < value.length; i++) value[i] = read(istream); return value; }
public static ServiceContext[] readSequence(AbstractCdrInput istream) { int size = istream.read_long(); ServiceContext[] value = new gnu.CORBA.GIOP.ServiceContext[size]; for (int i = 0; i < value.length; i++) value[i] = read(istream); return value; }
25,187
public void write(cdrOutput ostream) { ostream.write_ulong(context_id); ostream.write_sequence(context_data); }
public void write(AbstractCdrOutput ostream) { ostream.write_ulong(context_id); ostream.write_sequence(context_data); }
25,188
public static void writeSequence(cdrOutput ostream, ServiceContext[] value) { ostream.write_long(value.length); for (int i = 0; i < value.length; i++) value[i].write(ostream); }
public static void writeSequence(AbstractCdrOutput ostream, ServiceContext[] value) { ostream.write_long(value.length); for (int i = 0; i < value.length; i++) value[i].write(ostream); }
25,189
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double P = y3 - 3 * y2 + 3 * y1 - y0; double Q = 3 * (...
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double P = y3 - 3 * y2 + 3 * y1 - y0; double Q = 3 * (...
25,190
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double P = y3 - 3 * y2 + 3 * y1 - y0; double Q = 3 * (...
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp1.getX(); double y1 = cp1.getY(); double x2 = cp2.getX(); double y2 = cp2.getY(); double x3 = P2.getX(); double y3 = P2.getY(); double P = y3 - 3 * y2 + 3 * y1 - y0; double Q = 3 * (...
25,191
int splitIntersections(Segment b) { if (b instanceof LineSegment) return (b.splitIntersections(this)); Intersection[] x = null; if (b instanceof QuadSegment) x = cubicCubicIntersect(this, ((QuadSegment) b).getCubicSegment()); if (b instanceof CubicSegment) x = cubicCubicIntersect(this, (Cubic...
int splitIntersections(Segment b) { if (b instanceof LineSegment) return (b.splitIntersections(this)); Intersection[] x = null; if (b instanceof QuadSegment) x = cubicCubicIntersect(this, ((QuadSegment) b).getCubicSegment()); if (b instanceof CubicSegment) x = cubicCubicIntersect(this, (Cubic...
25,192
int splitIntersections(Segment b) { if (b instanceof LineSegment) { Intersection i = linesIntersect(this, (LineSegment) b); if (i == null) return 0; return createNode(b, i); } Intersection[] x = null; if (b instanceof QuadSegment) x = lineQuadIntersect(this, (QuadSegment) b...
int splitIntersections(Segment b) { if (b instanceof LineSegment) { Intersection i = linesIntersect(this, (LineSegment) b); if (i == null) return 0; return createNode(b, i); } Intersection[] x = null; if (b instanceof QuadSegment) x = lineQuadIntersect(this, (QuadSegment) b...
25,193
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp.getX(); double y1 = cp.getY(); double x2 = P2.getX(); double y2 = P2.getY(); double P = (y2 - 2 * y1 + y0); double Q = 2 * (y1 - y0); double R = y0; double A = (x2 - 2 * x1 + x0); ...
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp.getX(); double y1 = cp.getY(); double x2 = P2.getX(); double y2 = P2.getY(); double P = (y2 - 2 * y1 + y0); double Q = 2 * (y1 - y0); double A = (x2 - 2 * x1 + x0); double B =...
25,194
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp.getX(); double y1 = cp.getY(); double x2 = P2.getX(); double y2 = P2.getY(); double P = (y2 - 2 * y1 + y0); double Q = 2 * (y1 - y0); double R = y0; double A = (x2 - 2 * x1 + x0); ...
double curveArea() { double x0 = P1.getX(); double y0 = P1.getY(); double x1 = cp.getX(); double y1 = cp.getY(); double x2 = P2.getX(); double y2 = P2.getY(); double P = (y2 - 2 * y1 + y0); double Q = 2 * (y1 - y0); double R = y0; double A = (x2 - 2 * x1 + x0); ...
25,195
int splitIntersections(Segment b) { if (b instanceof LineSegment) return (b.splitIntersections(this)); if (b instanceof CubicSegment) return (b.splitIntersections(this)); if (b instanceof QuadSegment) { // Use the cubic-cubic intersection routine for quads as well, // Since a quadratic ...
int splitIntersections(Segment b) { if (b instanceof LineSegment) return (b.splitIntersections(this)); if (b instanceof CubicSegment) return (b.splitIntersections(this)); if (b instanceof QuadSegment) { // Use the cubic-cubic intersection routine for quads as well, // Since a quadratic ...
25,196
public MetalComboBoxEditor() { editor = new JTextField("", 9); editor.setBorder(new MetalComboBoxEditorBorder()); }
public MetalComboBoxEditor() { editor = new EditorTextField("", 9); editor.setBorder(new MetalComboBoxEditorBorder()); }
25,197
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[3]) { throw new IllegalAr...
public Object decodeSignature(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[3]) throw new IllegalArgu...
25,198
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[3]) { throw new IllegalAr...
public Object decodeSignature(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[0] || k[1] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[1] || k[2] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[2] || k[3] != Registry.MAGIC_RAW_RSA_PSS_SIGNATURE[3]) { throw new IllegalAr...
25,199
public byte[] encodeSignature(Object signature) { byte[] buffer; try { buffer = (byte[]) signature; } catch (Exception x) { throw new IllegalArgumentException("key"); } ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW...
public byte[] encodeSignature(Object signature) { byte[] buffer; try { buffer = (byte[]) signature; } catch (Exception x) { throw new IllegalArgumentException("signature"); } ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAG...
25,200
public synchronized org.omg.CORBA.Object corbaloc(String corbaloc, Functional_ORB orb) throws BAD_PARAM { boolean corbaname; // The alternative addresses, if given. ArrayList alt_addr = new ArrayList(); // The version numbers with default values. int major = 1; int minor = 0; // The host a...
public synchronized org.omg.CORBA.Object corbaloc(String corbaloc, OrbFunctional orb) throws BAD_PARAM { boolean corbaname; // The alternative addresses, if given. ArrayList alt_addr = new ArrayList(); // The version numbers with default values. int major = 1; int minor = 0; // The host ad...
25,201
static void corbalocT(String ior, Functional_ORB orb) { System.out.println(ior); System.out.println(n.corbaloc(ior, orb)); System.out.println(); }
static void corbalocT(String ior, OrbFunctional orb) { System.out.println(ior); System.out.println(n.corbaloc(ior, orb)); System.out.println(); }
25,202
public static void main(String[] args) { try { Functional_ORB orb = (Functional_ORB) ORB.init(args, null); corbalocT("corbaloc:iiop:1.3@155axyz.com/Prod/aTradingService", orb); corbalocT("corbaloc:iiop:2.7@255bxyz.com/Prod/bTradingService", orb); corbalocT("corbaloc:iiop:355cxyz.c...
public static void main(String[] args) { try { OrbFunctional orb = (OrbFunctional) ORB.init(args, null); corbalocT("corbaloc:iiop:1.3@155axyz.com/Prod/aTradingService", orb); corbalocT("corbaloc:iiop:2.7@255bxyz.com/Prod/bTradingService", orb); corbalocT("corbaloc:iiop:355cxyz.com...
25,203
private org.omg.CORBA.Object resolve(org.omg.CORBA.Object object) { NamingContext ns; String key = "?"; try { if (object instanceof NamingContext) ns = (NamingContext) object; else { Delegate delegate = ((ObjectImpl) object)._get_delegate(); ns = ne...
private org.omg.CORBA.Object resolve(org.omg.CORBA.Object object) { NamingContext ns; String key = "?"; try { if (object instanceof NamingContext) ns = (NamingContext) object; else { Delegate delegate = ((ObjectImpl) object)._get_delegate(); ns = ne...
25,204
protected _3c90xCore newCore(Device device, _3c90xFlags flags) throws DriverException, ResourceNotFreeException { return new _3c90xCore(this, device, (PCIDevice) device, flags); }
protected _3c90xCore newCore(Device device, _3c90xFlags flags) throws DriverException, ResourceNotFreeException { return new _3c90xCore(this, device, (PCIDevice) device, flags); }
25,205
cdrBufOutput getBuffer() { return buffer; }
BufferedCdrOutput getBuffer() { return buffer; }
25,206
public streamRequest getParameterStream() { m_parameter_buffer = new streamRequest(); m_parameter_buffer.request = this; m_parameter_buffer.setOrb(poa.orb()); return m_parameter_buffer; }
public StreamBasedRequest getParameterStream() { m_parameter_buffer = new streamRequest(); m_parameter_buffer.request = this; m_parameter_buffer.setOrb(poa.orb()); return m_parameter_buffer; }
25,207
public streamRequest getParameterStream() { m_parameter_buffer = new streamRequest(); m_parameter_buffer.request = this; m_parameter_buffer.setOrb(poa.orb()); return m_parameter_buffer; }
public streamRequest getParameterStream() { m_parameter_buffer = new StreamBasedRequest(); m_parameter_buffer.request = this; m_parameter_buffer.setOrb(poa.orb()); return m_parameter_buffer; }
25,208
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) { serverRequest = new LocalServerRequest(this); ...
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof DynamicImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) { serverRequest = new LocalServerRequest(this)...
25,209
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) { serverRequest = new LocalServerRequest(this); ...
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((DynamicImpHandler) handler).servant; if (serverRequest == null) { serverRequest = new LocalServerRequest(this)...
25,210
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) { serverRequest = new LocalServerRequest(this); ...
public void invoke() { InvokeHandler handler = object.getHandler(operation(), cookie, false); if (handler instanceof dynImpHandler) { DynamicImplementation dyn = ((dynImpHandler) handler).servant; if (serverRequest == null) { serverRequest = new LocalServerRequest(this); ...
25,211
private void prepareStream() { buffer = new cdrBufOutput(); buffer.setOrb(orb()); }
private void prepareStream() { buffer = new BufferedCdrOutput(); buffer.setOrb(orb()); }
25,212
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
25,213
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
25,214
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
25,215
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
25,216
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
25,217
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
25,218
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ...
25,219
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) throw new IllegalArgumentException("Outline drag modes are unsupported."); drag...
public void setDragMode(int mode) { if ((mode != LIVE_DRAG_MODE) && (mode != OUTLINE_DRAG_MODE)) throw new IllegalArgumentException("Drag mode not valid."); // FIXME: Unsupported mode. if (mode == OUTLINE_DRAG_MODE) { mode = LIVE_DRAG_MODE; } dragMode = mode; }
25,220
public static Component createGlue() { Filler glue = new Filler(new Dimension(0,0), new Dimension(0,0), new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE) ); return glue; }
public static Component createGlue() { Filler glue = new Filler(new Dimension(0,0), new Dimension(0,0), new Dimension(Short.MAX_VALUE,Short.MAX_VALUE) ); return glue; }
25,222
public static Component createHorizontalGlue() { return createGlue(); }
public static Component createHorizontalGlue() { Filler glue = new Filler(new Dimension(0,0), new Dimension(0,0), new Dimension(Short.MAX_VALUE, 0) ); return glue; }
25,223
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; }
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return getScrollableUnitIncrement(visibleRect, orientation, direction); }
25,224
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; }
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int delta; if (orientation == SwingConstants.VERTICAL) { int row = getClosestRowForLocation(visibleRect.x, visibleRect.y + 1); row = row + direction; if (row < 0) row = 0; Rect...
25,225
protected AccessibleJSeparator(JSeparator component) { super(component); }
protected AccessibleJSeparator() { super(component); }
25,226
protected AccessibleJSeparator(JSeparator component) { super(component); }
protected AccessibleJSeparator(JSeparator component) { }
25,227
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSeparator(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSeparator(); return accessibleContext; }
25,228
void setup() throws Exception { setOutputStreamParam(_certFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); log.finer("-export handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias); //$NON-NLS-1$ log.finer(" -fi...
void setup() throws Exception { setOutputStreamParam(_certFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); log.finer("-export handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alias); //$NON-NLS-1$ log.finer(" -fi...
25,231
void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ ensureStoreContainsAlias(); Certificate certificate; if (store.isCertificateEntry(alias)) { log.finer("Alias [" + alias + "] is a trusted cer...
void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ ensureStoreContainsAlias(); Certificate certificate; if (store.isCertificateEntry(alias)) { if (Configuration.DEBUG) log.fine("Alias [" + ali...
25,232
void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ ensureStoreContainsAlias(); Certificate certificate; if (store.isCertificateEntry(alias)) { log.finer("Alias [" + alias + "] is a trusted cer...
void start() throws KeyStoreException, CertificateEncodingException, IOException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ ensureStoreContainsAlias(); Certificate certificate; if (store.isCertificateEntry(alias)) { log.finer("Alias [" + alias + "] is a trusted cer...
25,233
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) switch (field) case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
25,235
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
public void add(int field, int amount) { switch (field) { case YEAR: complete(); fields[YEAR] += amount; isTimeSet = false; break; case MONTH: complete(); int months = fields[MONTH] + amount; fields[YEAR] += months / 12; fields[MONTH] = months % 12; if (fields[MONTH] < 0) ...
25,236
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; long day = localTime / (24 * 60 * 60 * 1000L); int millisInDay = (int) (localTime % (24 * 60 * 6...
25,237
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, ...
25,238
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, ...
25,239
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, ...
25,240
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, ...
25,241
private void nonLeniencyCheck() throws IllegalArgumentException { int[] month_days = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int year = fields[YEAR]; int month = fields[MONTH]; int leap = isLeapYear(year) ? 1 : 0; if (isSet[ERA] && fields[ERA] != AD && fields[ERA] != BC) throw new Il...
private void nonLeniencyCheck() throws IllegalArgumentException { int[] month_days = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int year = fields[YEAR]; int month = fields[MONTH]; int leap = isLeapYear(year) ? 1 : 0; if (isSet[ERA] && fields[ERA] != AD && fields[ERA] != BC) throw new Il...
25,242
public void setElem(int i, int val) { data[i+offset] = (int) val; }
public void setElem(int i, int val) { data[i+offset] = val; }
25,243
public void setDisplayedMnemonic(int mnemonic) { if (displayedMnemonic != mnemonic) { firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.indexOf(mnemonic)); } }
public void setDisplayedMnemonic(int mnemonic) { if (displayedMnemonic != mnemonic) { firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.toUpperCase().indexOf(mnemonic)); ...
25,244
public void setDisplayedMnemonicIndex(int newIndex) throws IllegalArgumentException { if (newIndex < -1 || (text != null && newIndex >= text.length())) throw new IllegalArgumentException(); if (text == null || text.charAt(newIndex) != displayedMnemonic) newIndex ...
public void setDisplayedMnemonicIndex(int newIndex) throws IllegalArgumentException { if (newIndex < -1 || (text != null && newIndex >= text.length())) throw new IllegalArgumentException(); if (newIndex == -1 || text == null || text.charAt(newIndex) != displayedMnemon...
25,245
public void setDisplayedMnemonicIndex(int newIndex) throws IllegalArgumentException { if (newIndex < -1 || (text != null && newIndex >= text.length())) throw new IllegalArgumentException(); if (text == null || text.charAt(newIndex) != displayedMnemonic) newIndex ...
public void setDisplayedMnemonicIndex(int newIndex) throws IllegalArgumentException { if (newIndex < -1 || (text != null && newIndex >= text.length())) throw new IllegalArgumentException(); if (text == null || text.charAt(newIndex) != displayedMnemonic) newIndex ...
25,246
public void setVerticalAlignment(int alignment) { if (alignment != verticalAlignment) { int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); ...
public void setVerticalAlignment(int alignment) { if (alignment != verticalAlignment) { int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); ...
25,249
public void setVerticalAlignment(int alignment) { if (alignment != verticalAlignment) { int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); ...
public void setVerticalAlignment(int alignment) { if (alignment != verticalAlignment) { int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); ...
25,250
public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { layout(fv); }
public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { }
25,251
protected View createView(FlowView fv, int offset, int spanLeft, int rowIndex) { // Find the logical element for the given offset. View logicalView = getLogicalView(fv); int viewIndex = logicalView.getViewIndex(offset, Position.Bias.Forward); if (viewIndex == -1) ...
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { // Find the logical element for the given offset. View logicalView = getLogicalView(fv); int viewIndex = logicalView.getViewIndex(offset, Position.Bias.Forward); if (viewIndex ==...
25,252
protected View createView(FlowView fv, int offset, int spanLeft, int rowIndex) { // Find the logical element for the given offset. View logicalView = getLogicalView(fv); int viewIndex = logicalView.getViewIndex(offset, Position.Bias.Forward); if (viewIndex == -1) ...
protected View createView(FlowView fv, int offset, int spanLeft, int rowIndex) { // Find the logical element for the given offset. View logicalView = getLogicalView(fv); int viewIndex = logicalView.getViewIndex(offset, Position.Bias.Forward); if (viewIndex == -1) ...
25,253
public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { layout(fv); }
public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { }
25,254
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
25,255
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
25,256
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
25,257
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
25,258
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV...
25,259
public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { layout(fv); }
public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { }
25,260
public int getViewIndex(int pos, Position.Bias b) { int index = -1; int i = 0; for (Iterator it = children.iterator(); it.hasNext(); i++) { View child = (View) it.next(); if (child.getStartOffset() >= pos && child.getEndOffset() < pos) { ...
public int getViewIndex(int pos, Position.Bias b) { int index = -1; int i = 0; for (Iterator it = children.iterator(); it.hasNext(); i++) { View child = (View) it.next(); if (child.getStartOffset() >= pos && child.getEndOffset() < pos) { ...
25,261
protected void layout(int width, int height) { boolean rebuild = false; int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { rebuild = !(width == layoutSpan); layoutSpan = width; } else { rebuild = !(height == layoutSpan); layoutSpan = height; } if (r...
protected void layout(int width, int height) { int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { rebuild = !(width == layoutSpan); layoutSpan = width; } else { rebuild = !(height == layoutSpan); layoutSpan = height; } if (rebuild) strategy.la...
25,265
protected void layout(int width, int height) { boolean rebuild = false; int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { rebuild = !(width == layoutSpan); layoutSpan = width; } else { rebuild = !(height == layoutSpan); layoutSpan = height; } if (r...
protected void layout(int width, int height) { boolean rebuild = false; int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { if (layoutSpan != width) { layoutChanged(Y_AXIS); layoutSpan = width; } else { rebuild = !(height == layoutSpan); layoutSpan = height;...
25,266
protected void layout(int width, int height) { boolean rebuild = false; int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { rebuild = !(width == layoutSpan); layoutSpan = width; } else { rebuild = !(height == layoutSpan); layoutSpan = height; } if (r...
protected void layout(int width, int height) { boolean rebuild = false; int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { rebuild = !(width == layoutSpan); layoutSpan = width; } else { if (layoutSpan != height) { layoutChanged(X_AXIS); layoutSpan = height;...
25,267
protected void layout(int width, int height) { boolean rebuild = false; int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { rebuild = !(width == layoutSpan); layoutSpan = width; } else { rebuild = !(height == layoutSpan); layoutSpan = height; } if (r...
protected void layout(int width, int height) { boolean rebuild = false; int flowAxis = getFlowAxis(); if (flowAxis == X_AXIS) { rebuild = !(width == layoutSpan); layoutSpan = width; } else { rebuild = !(height == layoutSpan); layoutSpan = height; } if (l...
25,268
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.font", getControlTextFont(), "Button.margi...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.font", getControlTextFont(), "Button.margi...
25,273
public GLightweightPeer(Component comp) { this.comp = comp; comp.addMouseListener(this); }
public GLightweightPeer(Component comp) { this.comp = comp; }
25,274
dispatchEvent(AWTEvent event){ // See comment in Component.dispatchEvent(). dispatchEventImpl(event);}
public final void dispatchEvent(AWTEvent event){ // See comment in Component.dispatchEvent(). dispatchEventImpl(event);}
25,275
dispatchEventImpl(AWTEvent e){ // This is overridden by subclasses that support events.}
void dispatchEventImpl(AWTEvent event){ // This is overridden by subclasses that support events.}
25,276
getFont(){ return(font);}
getFont(){ if (font != null) return font; if (parent != null) return parent.getFont (); return null;}
25,278
postEvent(Event event){ return(false);}
postEvent(Event event){ return false;}
25,279
protected boolean lt(File a, File b) { boolean aTrav = filechooser.isTraversable(a); boolean bTrav = filechooser.isTraversable(b); if (aTrav == bTrav) { String aname = a.getName().toLowerCase(); String bname = b.getName().toLowerCase(); return ((aname.compareTo(bname) < 0) ? true : false); } el...
protected boolean lt(File a, File b) { boolean aTrav = filechooser.isTraversable(a); boolean bTrav = filechooser.isTraversable(b); if (aTrav == bTrav) { String aname = a.getName().toLowerCase(); String bname = b.getName().toLowerCase(); return (aname.compareTo(bname) < 0) ? true : false; } else...
25,282
public static Level parse(String name) throws IllegalArgumentException { /* This will throw a NullPointerException if name is null, * as required by the API specification. */ name = name.intern(); for (int i = 0; i < knownLevels.length; i++) { if (name == knownLevels[i].name) return known...
public static Level parse(String name) throws IllegalArgumentException { /* This will throw a NullPointerException if name is null, * as required by the API specification. */ name = name.intern(); for (int i = 0; i < knownLevels.length; i++) { if (name == knownLevels[i].name) return known...
25,284
private Runtime() { if (current != null) throw new InternalError("Attempt to recreate Runtime"); // Using defaultProperties directly avoids a security check, as well // as bootstrap issues (since System is not initialized yet). String path = defaultProperties.getProperty("java.library.path", "."); ...
private Runtime() { if (current != null) throw new InternalError("Attempt to recreate Runtime"); // Using defaultProperties directly avoids a security check, as well // as bootstrap issues (since System is not initialized yet). String path = defaultProperties.getProperty("java.library.path", "."); ...
25,285
public void halt(int status) { SecurityManager sm = securityManager; // Be thread-safe! if (sm != null) sm.checkExit(status); VMRuntime.exit(status); }
public void halt(int status) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkExit(status); VMRuntime.exit(status); }
25,286