bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public Content getNextInFlowSibling(LayoutContext c, Content which) { for (Iterator i = getChildContent(c).iterator(); i.hasNext();) { Object obj = i.next(); if (obj == which) { while (i.hasNext()) { Object result = i.next(); if (Cont...
public Content getNextInFlowSibling(LayoutContext c, Content which) { for (Iterator i = getChildContent(c).iterator(); i.hasNext();) { Object obj = i.next(); if (obj == which) { while (i.hasNext()) { Object result = i.next(); if (Cont...
47,564
public Content getPreviousInFlowSibling(LayoutContext c, Content which) { List children = getChildContent(c); for (int i = 0; i < children.size(); i++) { Object obj = children.get(i); if (obj == which) { for (int j = i - 1; j >= 0; j--) { Object ...
public Content getPreviousInFlowSibling(LayoutContext c, Content which) { List children = getChildContent(c); for (int i = 0; i < children.size(); i++) { Object obj = children.get(i); if (obj == which) { for (int j = i - 1; j >= 0; j--) { Object ...
47,565
ServerProducerEndpoint(int id, Destination jmsDestination, ServerSessionEndpoint parent) { this.id = id; this.jmsDestination = jmsDestination; sessionEndpoint = parent; }
ServerProducerEndpoint(int id, Destination jmsDestination, ServerSessionEndpoint parent) { this.id = id; this.jmsDestination = jmsDestination; sessionEndpoint = parent; }
47,566
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (trace) { log.trace("close (noop)"); } this.sessionEndpoint.producers.remove(new Integer(this.id)); JMSDis...
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (trace) { log.trace("close (noop)"); } this.sessionEndpoint.removeProducerDelegate(this.id); JMSDispatcher...
47,567
public void send(Message m) throws JMSException { if (closed) { throw new IllegalStateException("Producer is closed"); } if (trace) { log.trace("Sending message: " + m); } sessionEndpoint.connectionEndpoint.sendMessage(m, null); }
public void send(Message m) throws JMSException { if (closed) { throw new IllegalStateException("Producer is closed"); } if (trace) { log.trace("Sending message: " + m); } sessionEndpoint.getConnectionEndpoint().sendMessage(m, null); }
47,568
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); //We test with small values for paging params to really stress it final int fullSize = 3000; final int pageSize = 2000; final int downCacheSize = 1000; /...
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); //We test with small values for paging params to really stress it final int fullSize = 3000; final int pageSize = 2000; final int downCacheSize = 1000; // ...
47,569
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); //We test with small values for paging params to really stress it final int fullSize = 3000; final int pageSize = 2000; final int downCacheSize = 1000; /...
public void setUp() throws Exception {super.setUp();ServerManagement.start("all");//We test with small values for paging params to really stress itfinal int fullSize = 3000;final int pageSize = 2000;final int downCacheSize = 1000;//final int fullSize = 150000;////final int pageSize = 2000;////final int downCacheSi...
47,570
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); //We test with small values for paging params to really stress it final int fullSize = 3000; final int pageSize = 2000; final int downCacheSize = 1000; /...
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); //We test with small values for paging params to really stress it final int fullSize = 3000; final int pageSize = 2000; final int downCacheSize = 1000; // final int fullSize = 150000;// // fi...
47,571
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); //We test with small values for paging params to really stress it final int fullSize = 3000; final int pageSize = 2000; final int downCacheSize = 1000; /...
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); //We test with small values for paging params to really stress it final int fullSize = 3000; final int pageSize = 2000; final int downCacheSize = 1000; /...
47,572
public void tearDown() throws Exception {// assertEquals(0, LockMap.instance.getSize()); ServerManagement.undeployQueue("Queue1"); ServerManagement.undeployQueue("Queue2"); ServerManagement.undeployQueue("Queue3"); ServerManagement.undeployQueue("Queue4"); ServerManagement...
assertEquals(0, LockMap.instance.getSize()); assertEquals(0, LockMap.instance.getSize()); assertEquals(0, LockMap.instance.getSize()); publicassertEquals(0, LockMap.instance.getSize()); voidassertEquals(0, LockMap.instance.getSize()); tearDown()assertEquals(0, LockMap.instance.getSize()); throwsassertEquals(0, LockMap....
47,573
public void tearDown() throws Exception {// assertEquals(0, LockMap.instance.getSize()); ServerManagement.undeployQueue("Queue1"); ServerManagement.undeployQueue("Queue2"); ServerManagement.undeployQueue("Queue3"); ServerManagement.undeployQueue("Queue4"); ServerManagement...
public void tearDown() throws Exception {//assertEquals(0, LockMap.instance.getSize());ServerManagement.undeployQueue("Queue1");ServerManagement.undeployQueue("Queue2");ServerManagement.undeployQueue("Queue3");ServerManagement.undeployQueue("Queue4");ServerManagement.undeployTopic("Topic1");ServerManagement.undeployTo...
47,574
public void testDoneIsSetWithTransaction() throws Throwable { //Calling acknowledge on a SimpleDelivery //Should always result in done being set to true, //even if there is a transaction present. //Otherwise we can end up with a race condition where //the message is acked when still in fli...
public void testDoneIsSetWithTransaction() throws Throwable { //Calling acknowledge on a SimpleDelivery //Should always result in done being set to true, //even if there is a transaction present. //Otherwise we can end up with a race condition where //the message is acked when still in fli...
47,578
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ic = new InitialContext(ServerManagement.getJNDIEnvironment()); // stop the Messaging server and re-start it after I register an extra remoting invocation // handler with the connector ServerManage...
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ic = new InitialContext(ServerManagement.getJNDIEnvironment()); // stop the Messaging server and re-start it after I register an extra remoting invocation // handler with the connector ServerManage...
47,579
protected void tearDown() throws Exception { // remove the test invocation handler ServerManagement.removeServerInvocationHandler("DEFAULT_INVOCATION_HANDLER"); ServerManagement.undeployQueue("Queue"); ic.close(); super.tearDown(); }
protected void tearDown() throws Exception { // remove the test invocation handler ServerManagement.removeServerInvocationHandler("DEFAULT_INVOCATION_HANDLER"); ServerManagement.undeployQueue("MultipleServerInvocationHandlerTestQueue"); ic.close(); super.tearDown(); }
47,580
public void testMessageRoundTrip() throws Exception { Set subsystems = ServerManagement.getConnectorSubsystems(); assertEquals(2, subsystems.size()); assertTrue(subsystems.contains("DEFAULT_INVOCATION_HANDLER")); assertTrue(subsystems.contains(ServerPeer.REMOTING_JMS_SUBSYSTEM)); Connectio...
public void testMessageRoundTrip() throws Exception { Set subsystems = ServerManagement.getConnectorSubsystems(); assertEquals(2, subsystems.size()); assertTrue(subsystems.contains("DEFAULT_INVOCATION_HANDLER")); assertTrue(subsystems.contains(ServerPeer.REMOTING_JMS_SUBSYSTEM)); Connectio...
47,581
public static Box generateAbsoluteBox(Context c, Content content) { //Uu.p("generate absolute block inline box: avail = " + content); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a bl...
public static Box generateAbsoluteBox(Context c, Content content) { //Uu.p("generate absolute block inline box: avail = " + content); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a bl...
47,582
public DesktopPaneUI() { // TODO } // DesktopPaneUI()
public DesktopPaneUI() { // TODO } // DesktopPaneUI()
47,583
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
47,584
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
47,585
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
47,586
protected void setUp() throws Exception { TestWorkflow.configFile = "osworkflow.xml"; workflow = new TestWorkflow("testuser"); }
protected void setUp() throws Exception { TestWorkflow.configFile = "/osworkflow.xml"; workflow = new TestWorkflow("testuser"); }
47,587
public void testDoubleFunctionExecution() throws Exception { long id = workflow.initialize("file:double.xml", 1, new HashMap()); Map inputs = new HashMap(); inputs.put("test", this); workflow.doAction(id, 3, inputs); assertEquals("function executed unexpected number of times", 2, counter); ...
public void testDoubleFunctionExecution() throws Exception { long id = workflow.initialize(getClass().getClassLoader().getResource("/double.xml").toString(), 1, new HashMap()); Map inputs = new HashMap(); inputs.put("test", this); workflow.doAction(id, 3, inputs); assertEquals("function exec...
47,588
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); /*Enumeration e = netIf.getIn...
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); /*Enumeration e = netIf.getIn...
47,589
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); /*Enumeration e = netIf.getIn...
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); /*Enumeration e = netIf.getIn...
47,590
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); /*Enumeration e = netIf.getIn...
public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); // @vm-specific Set network interface via extended option getImpl().setOption(ExSocketOptions.SO_TRANSMIT_IF, netIf); /*Enumeration e = netIf.getIn...
47,591
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
47,592
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
47,593
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
public void parseStylesheet( String href ) throws IOException { try { // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they? Reader reader = null; try { URL url...
47,594
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { // Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is alread...
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { // Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is alread...
47,595
public void setCallbackClient(Client client) { callbackClient = client; // TODO not sure if this is the best way to do this, but the callbackClient needs to have // its "subsystem" set, otherwise remoting cannot find the associated // ServerInvocationHandler on the callback server ...
public void setCallbackClient(Client client) { callbackClient = client; // TODO not sure if this is the best way to do this, but the callbackClient needs to have // its "subsystem" set, otherwise remoting cannot find the associated // ServerInvocationHandler on the callback server ...
47,596
protected final CompiledMethod doCompileAbstract(VmMethod method, NativeStream nos, int level, boolean isBootstrap) { if (isBootstrap) { //System.out.println("Abstraxct method " + method); final CompiledMethod cm = new CompiledMethod(level); final AbstractX86Stream os = (AbstractX86Stream) nos; // Create the ...
protected final CompiledMethod doCompileAbstract(VmMethod method, NativeStream nos, int level, boolean isBootstrap) { if (isBootstrap) { //System.out.println("Abstraxct method " + method); final CompiledMethod cm = new CompiledMethod(level); final AbstractX86Stream os = (AbstractX86Stream) nos; // Create the ...
47,597
public final void initialize(VmClassLoader loader) { if (context == null) { context = new X86CompilerContext(loader, Vm.getVm().getHeapManager()); } }
public final void initialize(VmClassLoader loader) { if (context == null) { context = new X86CompilerContext(loader, Vm.getVm().getHeapManager()); } }
47,598
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " to memory on transaction " + tx...
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " to memory on transaction " + tx); } if (recoverable && d.getReference().isReliable...
47,599
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); tx.addCallback(callback); if (trace) { log.trace(this + " added " + d + " to memory on transaction " + tx...
public void acknowledge(Delivery d, Transaction tx) throws Throwable { //Transactional so remove after tx commit RemoveDeliveryCallback callback = new RemoveDeliveryCallback(d); this.getCallback(tx).addDelivery(d); if (trace) { log.trace(this + " added " + d + " to memory on transac...
47,600
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes...
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes...
47,601
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } ...
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } ...
47,602
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } ...
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } ...
47,603
public void load() throws Exception { if (trace) { log.trace(this + " loading channel state"); } synchronized (refLock) { refsInStorage = pm.getNumberOfUnloadedReferences(channel.getChannelID()); if (refsInStorage > 0) { load(Mat...
public void load() throws Exception { if (trace) { log.trace(this + " loading channel state"); } synchronized (refLock) { refsInStorage = pm.getNumberOfUnloadedReferences(channel.getChannelID()); if (refsInStorage > 0) { load(Mat...
47,605
public ZipOutputStream(OutputStream out) { super(out, new Deflater(Deflater.DEFAULT_COMPRESSION, true)); }
public ZipOutputStream(OutputStream out) { super(out, new Deflater(Deflater.DEFAULT_COMPRESSION, true)); }
47,609
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
47,610
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
47,611
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
47,612
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
47,613
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
47,614
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
public void closeEntry() throws IOException { if (curEntry == null) throw new ZipException("No open entry"); /* First finish the deflater, if appropriate */ if (curMethod == DEFLATED) super.finish(); int csize = curMethod == DEFLATED ? def.getTotalOut() : size; if (curEntry.getSize() < 0) curEntry.setSize(s...
47,615
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
47,616
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
47,617
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
47,618
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
47,619
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); writeLeInt(C...
47,620
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
47,621
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
47,622
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
47,623
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
47,624
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
47,625
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (entry.getSi...
47,626
public void setComment(String comment) { byte[] commentBytes; commentBytes = comment.getBytes(); if (commentBytes.length > 0xffff) throw new IllegalArgumentException("Comment too long."); zipComment = commentBytes; }
public void setComment(String comment) { byte[] commentBytes; commentBytes = comment.getBytes(); if (commentBytes.length > 0xffff) throw new IllegalArgumentException("Comment too long."); zipComment = commentBytes; }
47,627
public void setLevel(int level) { def.setLevel(level); }
public void setLevel(int level) { def.setLevel(level); }
47,628
public void setMethod(int method) { if (method != STORED && method != DEFLATED) throw new IllegalArgumentException("Method not supported."); defaultMethod = method; }
public void setMethod(int method) { if (method != STORED && method != DEFLATED) throw new IllegalArgumentException("Method not supported."); defaultMethod = method; }
47,629
public void write(byte[] b, int off, int len) throws IOException { if (curEntry == null) throw new ZipException("No open entry."); switch (curMethod) { case DEFLATED : super.write(b, off, len); break; case STORED : out.write(b, off, len); break; } crc.update(b, off, len); size += len; }
public void write(byte[] b, int off, int len) throws IOException { if (curEntry == null) throw new ZipException("No open entry."); switch (curMethod) { case DEFLATED : super.write(b, off, len); break; case STORED : out.write(b, off, len); break; } crc.update(b, off, len); size += len; }
47,630
public void write(byte[] b, int off, int len) throws IOException { if (curEntry == null) throw new ZipException("No open entry."); switch (curMethod) { case DEFLATED : super.write(b, off, len); break; case STORED : out.write(b, off, len); break; } crc.update(b, off, len); size += len; }
public void write(byte[] b, int off, int len) throws IOException { if (curEntry == null) throw new ZipException("No open entry."); switch (curMethod) { case DEFLATED : super.write(b, off, len); break; case STORED : out.write(b, off, len); break; } crc.update(b, off, len); size += len; }
47,631
public void write(byte[] b, int off, int len) throws IOException { if (curEntry == null) throw new ZipException("No open entry."); switch (curMethod) { case DEFLATED : super.write(b, off, len); break; case STORED : out.write(b, off, len); break; } crc.update(b, off, len); size += len; }
public void write(byte[] b, int off, int len) throws IOException { if (curEntry == null) throw new ZipException("No open entry."); switch (curMethod) { case DEFLATED : super.write(b, off, len); break; case STORED : out.write(b, off, len); break; } crc.update(b, off, len); size += len; }
47,632
private final void writeLeInt(int value) throws IOException { writeLeShort(value); writeLeShort(value >> 16); }
private final void writeLeInt(int value) throws IOException { writeLeShort(value); writeLeShort(value >> 16); }
47,633
private final void writeLeShort(int value) throws IOException { out.write(value & 0xff); out.write((value >> 8) & 0xff); }
private final void writeLeShort(int value) throws IOException { out.write(value & 0xff); out.write((value >> 8) & 0xff); }
47,634
public long getCompressedSize() { return (known & KNOWN_CSIZE) != 0 ? compressedSize & 0xffffffffL : -1L; }
public long getCompressedSize() { return (known & KNOWN_CSIZE) != 0 ? compressedSize & 0xffffffffL : -1L; }
47,635
public void setCompressedSize(long csize) { if ((csize & 0xffffffff00000000L) != 0) throw new IllegalArgumentException(); this.compressedSize = (int) csize; this.known |= KNOWN_CSIZE; }
public void setCompressedSize(long csize) { if ((csize & 0xffffffff00000000L) != 0) throw new IllegalArgumentException(); this.compressedSize = (int) csize; this.known |= KNOWN_CSIZE; }
47,636
public void mouseDragged(MouseEvent event) { // TODO: What should be done here, if anything? }
Point click = event.getPoint(); int index = locationToIndex(list, click); if (index == -1) return; if (!event.isShiftDown() && !event.isControlDown()) list.setSelectedIndex(index); list.ensureIndexIsVisible(list.getLeadSelectionIndex()); Point click = event.getPoint(); int index = locationToIndex(list, click); if (ind...
47,637
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argument is null"); ...
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argum...
47,638
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argument is null"); ...
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String location = (String) args.get(AbstractWorkflow.JNDI_LOCATION); if (location == null) { throw new WorkflowException(AbstractWorkflow.JNDI_LOCATION + " argument is null"); ...
47,639
public boolean cancel(Delivery d) throws Throwable { throw new NotYetImplementedException(); }
public void cancel(Delivery d) throws Throwable { throw new NotYetImplementedException(); }
47,640
void registerConnection(String clientConnectionID, ServerConnectionEndpoint endpoint);
void registerConnection(String clientConnectionID, ServerConnectionEndpoint endpoint);
47,641
ServerConnectionEndpoint unregisterConnection(String clientConnectionID);
ServerConnectionEndpoint unregisterConnection(String clientConnectionID);
47,642
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp...
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { Rectangle bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLoc...
47,643
public Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size) { return null; }
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { return null; }
47,645
public void treeStructureChanged(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); }
public void treeStructureChanged(TreeModelEvent e) { validCachedPreferredSize = false; tree.revalidate(); tree.repaint(); }
47,648
protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); }
protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); }
47,649
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
47,652
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { int size = treeModel.getChildCount(root); for (int j = 0; j < size; j++) { Object child = treeModel.getChild(root, j); if (no...
47,653
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(treeModel.getChild(root, i)...
private Object findNode(Object root, Object node) { int size = 0; if (!treeModel.isLeaf(root)) size = treeModel.getChildCount(root); for (int i = 0; i < size; i++) { if (treeModel.getIndexOfChild(root, node) != -1) return root; Object n = findNode(child, node); if (n ...
47,654
public TreePath getClosestPathForLocation(JTree tree, int x, int y) { // FIXME: what if root is hidden? should not depend on (0,0) // should start counting rows from where root is. int row = Math.round(y / getRowHeight()); TreePath path = getPathForRow(tree, row); // no row is visible at this node ...
public TreePath getClosestPathForLocation(JTree tree, int x, int y) { // FIXME: what if root is hidden? should not depend on (0,0) // should start counting rows from where root is. int row = Math.round(y / getRowHeight()); TreePath path = getPathForRow(tree, row); // no row is visible at this node while (row > 0 && ...
47,656
protected Color getHashColor() { return UIManager.getLookAndFeelDefaults().getColor("Tree.hash"); }
protected Color getHashColor() { return UIManager.getColor("Tree.hash"); }
47,657
int getLevel(Object node) { int count = -1; Object current = node; do { current = getParent(treeModel.getRoot(), current); count++; } while (current != null); return count; }
int getLevel(Object node) { int count = -1; Object current = node; do { current = getParent(root, current); count++; } while (current != null); return count; }
47,658
int getLevel(Object node) { int count = -1; Object current = node; do { current = getParent(treeModel.getRoot(), current); count++; } while (current != null); return count; }
} } int} getLevel(Object} node)} } {} } } } int} count} =} -1;} } } } Object} current} =} node;} } } } do} } } } } } {} } } } } } } } current} =} getParent(treeModel.getRoot(),} current);} } } } } } } } count++;} } } } } } }} } } } while} (current} !=} null);} } } } return} count;} } }
47,659
Object getParent(Object root, Object node) { if (root == null || node == null) return null; if (node instanceof TreeNode) return ((TreeNode) node).getParent(); return findNode(root, node); }
Object getParent(Object root, Object node) { if (root == null || node == null || root.equals(node)) return null; if (node instanceof TreeNode) return ((TreeNode) node).getParent(); return findNode(root, node); }
47,660
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
47,662
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); if (treeModel != null) { Object root = treeModel.getRoot(); if (!tree.isRootVisible() && tree.isExpanded(new TreePath(root))) ro...
47,663
Object getPreviousVisibleNode(Object node) { updateCurrentVisiblePath(); if (currentVisiblePath != null) { Object[] nodes = currentVisiblePath.getPath(); int i = 0; while (i < nodes.length && !node.equals(nodes[i])) i++; // return the next node if (i-1 >= 0)...
Object getPreviousVisibleNode(Object node) { if (currentVisiblePath != null) { Object[] nodes = currentVisiblePath.getPath(); int i = 0; while (i < nodes.length && !node.equals(nodes[i])) i++; // return the next node if (i-1 >= 0) return nodes[i-1];...
47,664
public int getRowCount(JTree tree) { updateCurrentVisiblePath(); if (currentVisiblePath != null) return currentVisiblePath.getPathCount(); return 0; }
public int getRowCount(JTree tree) { if (currentVisiblePath != null) return currentVisiblePath.getPathCount(); return 0; }
47,665
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");...
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");...
47,666
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMap(); action = new TreeAction...
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMap(); action = new TreeAction...
47,667
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMap(); action = new TreeAction...
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new ...
47,668
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (!isLeaf(row)) { bounds = getPathBounds(tree, path); if (hasControlIcons() && (mouseX ...
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (!isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() &...
47,669
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null && currentVisiblePath != null) { Object root = treeM...
47,670
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
47,671
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); if (currentVisiblePath != null && treeModel != null) { Object root = treeModel.getRoot(); paintRecursive(g, 0, 0, 0, tree, treeModel, root); if (ha...
47,672
protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean ...
protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean ...
47,673
protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, ...
if (row != 0) paintHorizontalLine(g, tree, bounds.y + bounds.height/2, bounds.x - gap - 2, bounds.x); if (row != 0) paintHorizontalLine(g, tree, bounds.y + bounds.height/2, bounds.x - gap - 2, bounds.x); protectedif (row != 0) paintHorizontalLine(g, tree, bounds.y + bounds.height/2, bounds.x - gap - 2, bounds.x); voidi...
47,675
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
47,676
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { // FIXME: not implemented }
int max = tree.getVisibleRowCount(); for (int i = 0; i < max; i++) { Object curr = path.getPathComponent(i); TreePath currPath = new TreePath(getPathToRoot(curr, 0)); int numChild = treeModel.getChildCount(curr); if (numChild > 0 && tree.isExpanded(currPath)) { Rectangle bounds = getPathBounds(tree, currPath); Rectangl...
47,678
protected void setHashColor(Color color) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); defaults.put("Tree.hash", color); }
protected void setHashColor(Color color) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); defaults.put("Tree.hash", color); }
47,679