bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected void doTransmitEthernet(SocketBuffer skbuf) throws NetworkException { try { // Pad if (skbuf.getSize() < ETH_ZLEN) { skbuf.append(ETH_ZLEN - skbuf.getSize()); } dd.transmit(skbuf, 5000); } catch (InterruptedException ex) { throw new NetworkException("Interrupted", ex); } catch (TimeoutExcepti... | protected void doTransmitEthernet(SocketBuffer skbuf) throws NetworkException { try { // Pad if (skbuf.getSize() < ETH_ZLEN) { skbuf.append(ETH_ZLEN - skbuf.getSize()); } dd.transmit(skbuf, 5000); } catch (InterruptedException ex) { throw new NetworkException("Interrupted", ex); } catch (TimeoutExcepti... | 40,145 |
protected void doTransmitEthernet(SocketBuffer skbuf) throws NetworkException { try { // Pad if (skbuf.getSize() < ETH_ZLEN) { skbuf.append(ETH_ZLEN - skbuf.getSize()); } dd.transmit(skbuf, 5000); } catch (InterruptedException ex) { throw new NetworkException("Interrupted", ex); } catch (TimeoutExcepti... | protected void doTransmitEthernet(SocketBuffer skbuf) throws NetworkException { try { // Pad if (skbuf.getSize() < ETH_ZLEN) { skbuf.append(ETH_ZLEN - skbuf.getSize()); } dd.transmit(skbuf, 5000); } catch (InterruptedException ex) { throw new NetworkException("Interrupted", ex); } catch (TimeoutExcepti... | 40,146 |
public HardwareAddress getAddress() { return dd.getHwAddress(); } | public HardwareAddress getAddress() { return dd.getHwAddress(); } | 40,147 |
public _3c90xFlags getFlags() { return flags; } | public _3c90xFlags getFlags() { return flags; } | 40,148 |
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); } | 40,149 |
protected void startDevice() throws DriverException { try { dd = newCore(getDevice(), flags); dd.initialize(); super.startDevice(); } catch (ResourceNotFreeException ex) { throw new DriverException("Cannot claim " + flags.getName() + " resources", ex); } } | protected void startDevice() throws DriverException { try { dd = newCore(getDevice(), flags); dd.initialize(); super.startDevice(); } catch (ResourceNotFreeException ex) { throw new DriverException("Cannot claim " + flags.getName() + " resources", ex); } } | 40,150 |
protected void stopDevice() throws DriverException { log.debug("stopDevice"); super.stopDevice(); dd.disable(); dd.release(); dd = null; log.debug("done"); } | protected void stopDevice() throws DriverException { log.debug("stopDevice"); super.stopDevice(); dd.disable(); dd.release(); dd = null; log.debug("done"); } | 40,151 |
cdrBufOutput getBuffer() { return buffer; } | BufferedCdrOutput getBuffer() { return buffer; } | 40,152 |
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; } | 40,153 |
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; } | 40,154 |
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)... | 40,155 |
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)... | 40,156 |
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); ... | 40,157 |
private void prepareStream() { buffer = new cdrBufOutput(); buffer.setOrb(orb()); } | private void prepareStream() { buffer = new BufferedCdrOutput(); buffer.setOrb(orb()); } | 40,158 |
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 ... | 40,159 |
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 ... | 40,160 |
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 ... | 40,161 |
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 ... | 40,162 |
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 ... | 40,163 |
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 ... | 40,164 |
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 ... | 40,165 |
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 ... | 40,166 |
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; } | 40,167 |
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; } | 40,169 |
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; } | 40,170 |
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); } | 40,171 |
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | 40,172 |
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... | 40,173 |
protected AccessibleJSeparator(JSeparator component) { super(component); } | protected AccessibleJSeparator() { super(component); } | 40,174 |
protected AccessibleJSeparator(JSeparator component) { super(component); } | protected AccessibleJSeparator(JSeparator component) { } | 40,175 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSeparator(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSeparator(); return accessibleContext; } | 40,176 |
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.EXPORT_CMD, true); result.setHeader(Messages.getString("ExportCmd.17")); //$NON-NLS-1$ result.setFooter(Messages.getString("ExportCmd.18")); //$NON-NLS-1$ OptionGroup o... | ParsergetParser(){log.entering(this.getClass().getName(),"getParser");//$NON-NLS-1$Parserresult=newClasspathToolParser(Main.EXPORT_CMD,true);result.setHeader(Messages.getString("ExportCmd.17"));//$NON-NLS-1$result.setFooter(Messages.getString("ExportCmd.18"));//$NON-NLS-1$OptionGroupoptions=newOptionGroup(Messages.getS... | 40,178 |
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.EXPORT_CMD, true); result.setHeader(Messages.getString("ExportCmd.17")); //$NON-NLS-1$ result.setFooter(Messages.getString("ExportCmd.18")); //$NON-NLS-1$ OptionGroup o... | if (Configuration.DEBUG) if (Configuration.DEBUG) Parserif (Configuration.DEBUG) getParser()if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(this.getClass().getName(),if (Configuration.DEBUG) "getParser");... | 40,179 |
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... | 40,180 |
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... | voidstart()throwsKeyStoreException,CertificateEncodingException,IOException{log.entering(this.getClass().getName(),"start");//$NON-NLS-1$ensureStoreContainsAlias();Certificatecertificate;if(store.isCertificateEntry(alias)){log.finer("Alias["+alias+"]isatrustedcertificate");//$NON-NLS-1$//$NON-NLS-2$certificate=store.ge... | 40,181 |
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... | 40,182 |
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... | 40,183 |
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) { ... | 40,185 |
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) ... | 40,186 |
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... | 40,187 |
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, ... | 40,188 |
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, ... | 40,189 |
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, ... | 40,190 |
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, ... | 40,191 |
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... | 40,192 |
public void setElem(int i, int val) { data[i+offset] = (int) val; } | public void setElem(int i, int val) { data[i+offset] = (int) val; } | 40,193 |
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)); ... | 40,194 |
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... | 40,195 |
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 ... | 40,196 |
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); ... | 40,199 |
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); ... | 40,200 |
public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { layout(fv); } | public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { } | 40,201 |
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 ==... | 40,202 |
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) ... | protectedViewcreateView(FlowViewfv,intoffset,intspanLeft,introwIndex){//Findthelogicalelementforthegivenoffset.ViewlogicalView=getLogicalView(fv);intviewIndex=logicalView.getViewIndex(offset,Position.Bias.Forward);if(viewIndex==-1)returnnull;Viewchild=logicalView.getView(viewIndex);intflowAxis=fv.getFlowAxis();intspan=... | 40,203 |
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) ... | 40,204 |
public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { layout(fv); } | public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { } | 40,205 |
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... | 40,206 |
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... | 40,207 |
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... | 40,208 |
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... | 40,209 |
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... | 40,210 |
public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { layout(fv); } | public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { } | 40,211 |
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) { ... | 40,212 |
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.layo... | 40,216 |
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;... | 40,217 |
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;... | 40,218 |
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... | 40,219 |
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) {if (getPreferredSpan(getAxis()) != height) preferenceChanged(this, false, true); boolean rebuild = false;if (getPreferredSpan(getAxis()) != height) preferenceChanged(this, false, true); int flowAxis = getFlowAxis();if (getPreferredSpan(getAxis()) != height) preferenceCha... | 40,220 |
protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl = el.getElement(i); Vie... | layoutPool.setParent(this); layoutPool.setParent(this); protectedlayoutPool.setParent(this); voidlayoutPool.setParent(this); loadChildren(ViewFactorylayoutPool.setParent(this); vf)layoutPool.setParent(this); layoutPool.setParent(this); {layoutPool.setParent(this); layoutPool.setParent(this); layoutPool.setParent(this);... | 40,221 |
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... | 40,224 |
public GLightweightPeer(Component comp) { this.comp = comp; comp.addMouseListener(this); } | public GLightweightPeer(Component comp) { this.comp = comp; } | 40,225 |
dispatchEvent(AWTEvent event){ // See comment in Component.dispatchEvent(). dispatchEventImpl(event);} | dispatchEvent(AWTEvent event){ // See comment in Component.dispatchEvent(). dispatchEventImpl(event);} | 40,230 |
dispatchEventImpl(AWTEvent e){ // This is overridden by subclasses that support events.} | dispatchEventImpl(AWTEvent e){ // This is overridden by subclasses that support events.} | 40,231 |
getFont(){ return(font);} | getFont(){ return(font);} | 40,233 |
postEvent(Event event){ return(false);} | postEvent(Event event){ return(false);} | 40,234 |
public BitmapGraphics16bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | public BitmapGraphics16bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | 40,237 |
protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | 40,238 |
protected final void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { // TODO Implement me log.error("Not implemented"); } | protected final void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { // TODO Implement me log.error("Not implemented"); } | 40,239 |
protected final void doDrawLine(int x, int y, int w, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x << 1); if (mode == Surface.PAINT_MODE) { mem.setShort(ofs, (short) color, w); } else { mem.xorShort(ofs, (short) color, w); } } | protected final void doDrawLine(int x, int y, int w, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x << 1); if (mode == Surface.PAINT_MODE) { mem.setShort(ofs, (short) color, w); } else { mem.xorShort(ofs, (short) color, w); } } | 40,240 |
protected final void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x << 1); if (mode == Surface.PAINT_MODE) { mem.setShort(ofs, (short) color, count); } else { mem.xorShort(ofs, (short) color, count); } } | protected final void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x << 1); if (mode == Surface.PAINT_MODE) { mem.setShort(ofs, (short) color, count); } else { mem.xorShort(ofs, (short) color, count); } } | 40,241 |
public BitmapGraphics24bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | public BitmapGraphics24bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | 40,242 |
protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | 40,243 |
protected void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { // TODO Implement me log.error("Not implemented"); } | protected void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { // TODO Implement me log.error("Not implemented"); } | 40,244 |
protected void doDrawLine(int x, int y, int w, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x * 3); if (mode == Surface.PAINT_MODE) { mem.setInt24(ofs, color, w); } else { mem.xorInt24(ofs, color, w); } } | protected void doDrawLine(int x, int y, int w, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x * 3); if (mode == Surface.PAINT_MODE) { mem.setInt24(ofs, color, w); } else { mem.xorInt24(ofs, color, w); } } | 40,245 |
protected void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x * 3); if (mode == Surface.PAINT_MODE) { mem.setInt24(ofs, color, count); } else { mem.xorInt24(ofs, color, count); } } | protected void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x * 3); if (mode == Surface.PAINT_MODE) { mem.setInt24(ofs, color, count); } else { mem.xorInt24(ofs, color, count); } } | 40,246 |
public BitmapGraphics32bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | public BitmapGraphics32bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | 40,247 |
protected void doCopyArea(int srcX, int srcY, int width, int height, int dstX, int dstY) { for (int row = 0; row < height; row++) { final int srcOfs = offset + ((srcY + row) * bytesPerLine) + (srcX << 2); final int dstOfs = offset + ((dstY + row) * bytesPerLine) + (dstX << 2); mem.copy(srcOfs, dstOfs, w... | protected void doCopyArea(int srcX, int srcY, int width, int height, int dstX, int dstY) { for (int row = 0; row < height; row++) { final int srcOfs = offset + ((srcY + row) * bytesPerLine) + (srcX << 2); final int dstOfs = offset + ((dstY + row) * bytesPerLine) + (dstX << 2); mem.copy(srcOfs, dstOfs, w... | 40,248 |
protected void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { final int[] buf = new int[width]; for (int row = 0; row < height; row++) { final int ofs = offset + ((dstY + row) * bytesPerLine) + (dstX << 2); src.getDataElements(srcX, srcY + row, width, 1, buf); me... | protected void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { final int[] buf = new int[width]; for (int row = 0; row < height; row++) { final int ofs = offset + ((dstY + row) * bytesPerLine) + (dstX << 2); src.getDataElements(srcX, srcY + row, width, 1, buf); me... | 40,249 |
protected void doDrawLine(int x, int y, int w, int color, int mode) { //System.out.println("doDrawLine" + x + "," + y + "," + w + "," + color + "," + mode); final int ofs = offset + (y * bytesPerLine) + (x << 2); if (mode == Surface.PAINT_MODE) { mem.setInt(ofs, color, w); } else { mem.xorInt(ofs, color... | protected void doDrawLine(int x, int y, int w, int color, int mode) { //System.out.println("doDrawLine" + x + "," + y + "," + w + "," + color + "," + mode); final int ofs = offset + (y * bytesPerLine) + (x << 2); if (mode == Surface.PAINT_MODE) { mem.setInt(ofs, color, w); } else { mem.xorInt(ofs, color... | 40,250 |
protected final void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x << 2); //System.out.println("ofs=" + ofs); if (mode == Surface.PAINT_MODE) { mem.setInt(ofs, color, count); } else { mem.xorInt(ofs, color, count); } } | protected final void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + (x << 2); //System.out.println("ofs=" + ofs); if (mode == Surface.PAINT_MODE) { mem.setInt(ofs, color, count); } else { mem.xorInt(ofs, color, count); } } | 40,251 |
public BitmapGraphics8bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | public BitmapGraphics8bpp(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { super(mem, width, height, offset, bytesPerLine); } | 40,252 |
protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | 40,253 |
protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | protected void doCopyArea(int x, int y, int width, int height, int dx, int dy) { log.error("Not implemented"); } | 40,254 |
protected void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { // TODO Implement me log.error("Not implemented"); } | protected void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height) { // TODO Implement me log.error("Not implemented"); } | 40,255 |
protected void doDrawLine(int x, int y, int w, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + x; if (mode == Surface.PAINT_MODE) { mem.setByte(ofs, (byte) color, w); } else { mem.xorByte(ofs, (byte) color, w); } } | protected void doDrawLine(int x, int y, int w, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + x; if (mode == Surface.PAINT_MODE) { mem.setByte(ofs, (byte) color, w); } else { mem.xorByte(ofs, (byte) color, w); } } | 40,256 |
protected void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + x; if (mode == Surface.PAINT_MODE) { mem.setByte(ofs, (byte) color, count); } else { mem.xorByte(ofs, (byte) color, count); } } | protected void doDrawPixels(int x, int y, int count, int color, int mode) { final int ofs = offset + (y * bytesPerLine) + x; if (mode == Surface.PAINT_MODE) { mem.setByte(ofs, (byte) color, count); } else { mem.xorByte(ofs, (byte) color, count); } } | 40,257 |
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... | 40,258 |
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... | 40,260 |
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", "."); ... | 40,261 |
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); } | 40,262 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.