rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
break; | break inner; | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
queue.addLast(m); | mesList.add(m); | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
Message m = null; if (!closed) { m = cons.receive(0); } | Message m = cons.receive(0); | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
if (!queue.isEmpty()) | if (!mesList.isEmpty()) | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
if (trace) { log.trace("there are " + queue.size() + " messages to send to session"); } | if (trace) { log.trace("there are " + mesList.size() + " messages to send to session"); } | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
for (int i = 0; i < queue.size(); i++) | for (int i = 0; i < mesList.size(); i++) | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
MessageProxy m = (MessageProxy)queue.get(i); | MessageProxy m = (MessageProxy)mesList.get(i); | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
queue.clear(); } | mesList.clear(); } | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
catch (JMSException e) { } | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... | |
log.error("Caught Throwable in processing run()", t); } | log.warn("Connection consumer closing due to error in listening thread " + this, t); try { doClose(); } catch (JMSException e) { log.error("Failed to close connection consumer", e); } } | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
setBaseURL(new File(".").toURL().toExternalForm()); | setBaseURL(new File(".").toURI().toURL().toExternalForm()); | public NaiveUserAgent() { try { setBaseURL(new File(".").toURL().toExternalForm()); } catch (MalformedURLException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } } |
if (log.isTraceEnabled()) { log.trace("Client " + client + " has disconnected"); } | if (log.isTraceEnabled()) { log.trace("client " + client + " has disconnected"); } | public void handleConnectionException(Throwable t, Client client) { String sessionId = client.getSessionId(); if (sessionId == null) { log.warn("Session id is null for client " + client); } else { if (t instanceof ClientDisconnectedException) ... |
log.trace("Registered connection:" + remotingClientSessionID); | log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); | public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.trace("Registered connection:" + remotingClientSessionID); } |
{ log.trace("Unregistered connection:" + remotingClientSessionID); return (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); | { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(remotingClientSessionID)); return e; | public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { log.trace("Unregistered connection:" + remotingClientSessionID); return (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); } |
return kernel; | return (Kernel) kernel.clone(); | public Kernel getKernel() { return kernel; } |
public boolean containsSession(String remotingClientSessionID) | public synchronized boolean containsSession(String remotingClientSessionID) | public boolean containsSession(String remotingClientSessionID) { return sessions.containsKey(remotingClientSessionID); } |
String sessionId = (String)entry.getKey(); | ConnectionEndpoint sce = (ConnectionEndpoint)entry.getValue(); | public synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //... |
ConnectionEndpoint sce = (ConnectionEndpoint)entry.getValue(); | sces.add(sce); } iter = sces.iterator(); while (iter.hasNext()) { ConnectionEndpoint sce = (ConnectionEndpoint)iter.next(); | public synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //... |
sessions.remove(sessionId); | public synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //... | |
jmsClients.remove(jmsClientId); | public synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //... | |
public PermissionCollection getPermissions(CodeSource codeSource) { | public final PermissionCollection getPermissions(CodeSource codeSource) { | public PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext(); ) { Map.Entry e = (Map.Entry) it.next(); CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) ... |
for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext(); ) { Map.Entry e = (Map.Entry) it.next(); CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) { logger.log (Component.POLICY, "{0} -> {1}", new Object[] { cs, codeSource }); PermissionCollection pc = (PermissionCollection) e.getValue(); for (... | for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) { debug(cs + " -> " + codeSource); final PermissionCollection pc = (PermissionCollection) e .getValue(); for (Enumeration ee = pc.element... | public PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext(); ) { Map.Entry e = (Map.Entry) it.next(); CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) ... |
else logger.log (Component.POLICY, "{0} !-> {1}", new Object[] { cs, codeSource }); | public PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext(); ) { Map.Entry e = (Map.Entry) it.next(); CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) ... | |
logger.log (Component.POLICY, "returning permissions {0} for {1}", new Object[] { perms, codeSource }); | addPermissions(codeSource, perms); | public PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext(); ) { Map.Entry e = (Map.Entry) it.next(); CodeSource cs = (CodeSource) e.getKey(); if (cs.implies(codeSource)) ... |
private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); | private void parse(final URL url) throws IOException { final StreamTokenizer in = new StreamTokenizer(new InputStreamReader( url.openStream())); | private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); ... |
null, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); | null, null, (Certificate[]) currentCerts .toArray(new Certificate[ 0]))); | private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); ... |
target, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); | target, null, (Certificate[]) currentCerts .toArray(new Certificate[ 0]))); | private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); ... |
target, action, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); continue; } else { try { Constructor c = clazz.getConstructor( new Class[] { String.class, String.class }); currentPerms.add((Permission) c.newInstance( new Object[] { target, action })); } catch (Exception x) { | target, action, (Certificate[]) currentCerts .toArray(new Certificate[ 0]))); continue; } else { try { Constructor c = clazz.getConstructor(new Class[] { String.class, String.class}); currentPerms.add((Permission) c .newInstance(new Object[] { target, action})); } catch (Exception x) { | private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); ... |
public Object run() throws Exception { String allow = Security.getProperty ("policy.allowSystemProperty"); if (allow == null || Boolean.getBoolean (allow)) { String s = SystemProperties.getProperty ("java.security.policy"); logger.log (Component.POLICY, "java.security.policy={0}", s); if (s != null) { boolean only = s.... | public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1;; i++) { String s = Security.getProperty("policy.file." + i); debug("policy.file." + i + "=" + s); if (s == null) break; l.add(new URL(s)); } String s = System .getProperty("java.security.policy"); debug("java.security.policy=" + s);... | public Object run() throws Exception { String allow = Security.getProperty ("policy.allowSystemProperty"); if (allow == null || Boolean.getBoolean (allow)) { String s = SystemProperties.getProperty ("java.security.policy"); ... |
log.info("Received request"); | log.trace("Received request"); | public Object invoke(InvocationRequest invocation) throws Throwable { log.info("Received request"); ServerRequest request = (ServerRequest)invocation.getParameter(); return request.execute(); } |
for(int i = 0; i < joinList.size(); i++) | for(int i = 0; i < resultList.size(); i++) | public ConfigConditionDescriptor getResultCondition(String name) { if(name == null) { return null; } for(int i = 0; i < joinList.size(); i++) { ConfigConditionDescriptor result = (ConfigConditionDescriptor)resultList.get(i); if(name.equals(result.getName())) { return result;... |
invocation.getMetaData().mergeIn(getMetaData()); | invocation.getMetaData().mergeIn(getMetaData()); if (log.isTraceEnabled()) { log.trace("invocation (" + invocation.getMethod().getName() + ") submitted to the interceptor chain"); } | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodJoinPoint info = new MethodJoinPoint(); info.hash = hash; info.advisedMethod = method; info.unadvisedMethod = method; ... |
Boolean transacted = (Boolean)getMetaData(handler, JMSAdvisor.TRANSACTED); if (!transacted.booleanValue()) { throw new IllegalStateException("Session is not transacted - cannot call commit()"); } | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createConnectionDelegate".equals(methodName)) { if (log... | |
Object Xid = getMetaData(mi, JMSAdvisor.XID); | Object Xid = getMetaData(mi, JMSAdvisor.XID); if (Xid == null) { log.error("Attempt to commit a non-transacted session"); throw new IllegalStateException("Cannot commit a non-transacted session"); } | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createConnectionDelegate".equals(methodName)) { if (log... |
Boolean transacted = (Boolean)getMetaData(handler, JMSAdvisor.TRANSACTED); if (!transacted.booleanValue()) | Object Xid = mi.getMetaData().getMetaData(JMSAdvisor.JMS, JMSAdvisor.XID); if (Xid == null) | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createConnectionDelegate".equals(methodName)) { if (log... |
throw new IllegalStateException("Session is not transacted - cannot call rollback()"); | log.error("Attempt to rollback a non-transacted session"); throw new IllegalStateException("Cannot rollback a non-transacted session"); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createConnectionDelegate".equals(methodName)) { if (log... |
if (log.isTraceEnabled()) log.trace("rollback"); Object Xid = mi.getMetaData().getMetaData(JMSAdvisor.JMS, JMSAdvisor.XID); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createConnectionDelegate".equals(methodName)) { if (log... | |
return (QueueConnection)createConnection(null, null); | return createQueueConnection(null, null); | public QueueConnection createQueueConnection() throws JMSException { return (QueueConnection)createConnection(null, null); } |
return (TopicConnection)createConnection(null, null); | return createTopicConnection(null, null); | public TopicConnection createTopicConnection() throws JMSException { return (TopicConnection)createConnection(null, null); } |
return (XAQueueConnection)createXAConnection(null, null); | return createXAQueueConnection(null, null); | public XAQueueConnection createXAQueueConnection() throws JMSException { return (XAQueueConnection)createXAConnection(null, null); } |
return (XATopicConnection)createXAConnection(null, null); | return createXATopicConnection(null, null); | public XATopicConnection createXATopicConnection() throws JMSException { return (XATopicConnection)createXAConnection(null, null); } |
while(parent != null) | while (parent != null && !(parent instanceof ActionMapUIResource)) | public static void replaceUIActionMap(JComponent component, ActionMap uiActionMap) { ActionMap child = component.getActionMap(); if (child == null) component.setActionMap(uiActionMap); else { ActionMap parent = child.getParent(); while(parent !... |
if (child != null) | public static void replaceUIActionMap(JComponent component, ActionMap uiActionMap) { ActionMap child = component.getActionMap(); if (child == null) component.setActionMap(uiActionMap); else { ActionMap parent = child.getParent(); while(parent !... | |
while(child.getParent() != null && !(child.getParent() instanceof InputMapUIResource)) child = child.getParent(); if (child != null) | InputMap parent = child.getParent(); while (parent != null && !(parent instanceof InputMapUIResource)) { child = parent; parent = parent.getParent(); } | public static void replaceUIInputMap(JComponent component, int condition, InputMap uiInputMap) { InputMap child = component.getInputMap(condition); if (child == null) component.setInputMap(condition, uiInputMap); else { ... |
return "JSplitPane"; | String superParamStr = ""; StringBuffer sb = new StringBuffer(); sb.append(",continuousLayout=").append(isContinuousLayout()); sb.append(",dividerSize=").append(getDividerSize()); sb.append(",lastDividerLocation=").append(getLastDividerLocation()); sb.append(",oneTouchExpandable=").append(isOneTouchExpandable()); sb.ap... | protected String paramString() { return "JSplitPane"; } |
firePropertyChange(RESIZE_WEIGHT_PROPERTY, old, value); } | public void setResizeWeight(double value) { resizeWeight = value; } | |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) | public ConnectionDelegate createConnectionDelegate(String username, String password) | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); } |
Object[] args = mi.getArguments(); args[2] = connection.getId(); | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | |
conditions.writeXML(out, indent++); | conditions.writeXML(out, indent); | public void writeXML(PrintWriter out, int indent) { ConditionsDescriptor conditions = getConditionsDescriptor(); List list = conditions.getConditions(); if (list.size() == 0) { return; } XMLUtil.printIndent(out, indent++); out.println("<restrict-to>"); con... |
try { Object obj = Class.forName("com.steadystate.css.parser.SACParser").newInstance(); org.w3c.css.sac.Parser psr = (org.w3c.css.sac.Parser)obj; parser = new CSSOMParser(psr); } catch (Exception ex) { XRLog.exception("Bad! Couldn't load the CSS parser. Everything after this will fail."); } | public StylesheetFactoryImpl(UserAgentCallback userAgent) { _userAgent = userAgent; } | |
lookUp = new HashMap(); | protected void init() { deques = new DoubleLinkedDeque[priorities]; for (int i = 0; i < priorities; i++) { deques[i] = new DoubleLinkedDeque(); } lookUp = new HashMap(); } | |
public Message createMessage() throws JMSException | public Message createMessage() throws JBossJMSException | public Message createMessage() throws JMSException { throw new JMSException("We don't create messages on the server"); } |
throw new JMSException("We don't create messages on the server"); | throw new JBossJMSException("We don't create messages on the server"); | public Message createMessage() throws JMSException { throw new JMSException("We don't create messages on the server"); } |
public Class getCategory() | public final Class getCategory() | public Class getCategory() { return PrintQuality.class; } |
public String getName() | public final String getName() | public String getName() { return "print-quality"; } |
Thread.sleep(2000); | Thread.sleep(1000); | protected List sendMessages(String condition, boolean persistent, PostOffice office, int num, Transaction tx) throws Exception { List list = new ArrayList(); for (int i = 0; i < num; i++) { Message msg = CoreMessageFactory.createCoreMessage(msgCount++, persistent, null); ... |
true, true, true, 100); | true, false, true, 100); | public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), null, true, true, true, 100); pm.... |
tr = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm)); | transactionIdManager = new IdManager("TRANSACTION_ID", 10, pm); transactionIdManager.start(); tr = new TransactionRepository(pm, transactionIdManager); | public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), null, true, true, true, 100); pm.... |
im = new IdManager("CHANNEL_ID", 10, pm); | channelIdManager = new IdManager("CHANNEL_ID", 10, pm); channelIdManager.start(); | public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), null, true, true, true, 100); pm.... |
transactionIdManager.stop(); channelIdManager.stop(); | public void tearDown() throws Exception { if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); super.tearDown(); } | |
writer.write(value); | if (value != null) { writer.write(value); } | public void addValue(String fieldName, String value) { try { writer.write(value); writer.write(","); } catch (IOException e) { log.error("Failed to write field", e); } } |
public Style(CalculatedStyle calculatedStyle, float parentWidth, CssContext cssContext) { | public Style(CalculatedStyle calculatedStyle, float parentWidth) { | public Style(CalculatedStyle calculatedStyle, float parentWidth, CssContext cssContext) { this.calculatedStyle = calculatedStyle; this.parentWidth = parentWidth; } |
if (!_todir.isDirectory()) { | if (_todir != null && !_todir.isDirectory()) { | public void execute() throws BuildException { Ivy ivy = getIvyInstance(); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); if (_cache == null) { _cache = ivy.getDefaultCache(); } _conf... |
xslt.setDestdir(_todir); | xslt.setDestdir(out); | private void gengraph(Ivy ivy, File cache, String organisation, String module, String conf) throws IOException { // process the report with xslt to generate graphml XSLTProcess xslt = new XSLTProcess(); xslt.setTaskName(getTaskName()); xslt.setProject(getProject()); xslt.s... |
setBigEndian(use_big_endian); | public EncapsulationStream(org.omg.CORBA.portable.OutputStream _parent, boolean use_big_endian) { super(); buffer = new AligningOutput(); setOutputStream(buffer); parent = _parent; write(use_big_endian?BIG_ENDIAN:LITTLE_ENDIAN); } | |
PropertyDeclarationFactory pdf = PROPERTY_FACTORIES[cssName.getAssignedID()]; if ( pdf == null ) { | PropertyDeclarationFactory pdf = null; if ( cssName == null ) { XRLog.cssParse("PropertyDeclarationFactory requested for NULL CSSName; returning default."); | public static PropertyDeclarationFactory newFactory( CSSName cssName ) { PropertyDeclarationFactory pdf = PROPERTY_FACTORIES[cssName.getAssignedID()]; if ( pdf == null ) { pdf = DEFAULT_PD_FACTORY; } return pdf; } |
} else { pdf = PROPERTY_FACTORIES[cssName.getAssignedID()]; if ( pdf == null ) { pdf = DEFAULT_PD_FACTORY; } | public static PropertyDeclarationFactory newFactory( CSSName cssName ) { PropertyDeclarationFactory pdf = PROPERTY_FACTORIES[cssName.getAssignedID()]; if ( pdf == null ) { pdf = DEFAULT_PD_FACTORY; } return pdf; } | |
String params = "/?datatype=invocation&" + "marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&" + "unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller&" + "serializationtype=jboss&" + "socketTimeout=600000"; | String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "serializationtype=jms&" + "dataType=jms&" + "socketTimeout=0"; | private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String params = "/?datatype=invocation&" + "marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&" + "unmarshaller=org.jboss.invocation.unified.marsh... |
args[1] = toSend; | ((ProducerDelegate)invocation.getTargetObject()).sendMessage(toSend); | public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu... |
return invocation.invokeNext(); | return null; | public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu... |
cons = sess.createConsumerDelegate(dest, messageSelector, false, subName); | cons = sess.createConsumerDelegate(dest, messageSelector, false, subName, true); | public JBossConnectionConsumer(ConnectionDelegate conn, Destination dest, String subName, String messageSelector, ServerSessionPool sessPool, int maxMessages) throws JMSException { trace = log.isTraceEnabled(); //this.connection = c... |
waitForActivationsToComplete(); | if (activationCount > 0) { long waitTime = CLOSE_TIMEOUT; while (activationCount > 0 && waitTime > 0) { waitTime = waitOnLock(mainLock, waitTime); } if (activationCount > 0) { log.warn("Timed out waiting for activations to complete"); } } | public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ... |
final int TIMEOUT = 20000; | public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ... | |
long waitTime = TIMEOUT; | long waitTime = CLOSE_TIMEOUT; | public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ... |
throw new IllegalStateException("Thread interrupted while closing consumer"); | public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ... | |
if (trace) { log.trace(this + " closed"); } | public void close() throws JMSException { try { synchronized (mainLock) { if (closed) { return; } closing = true; //We wait for any activation in progress to complete and the resulting message ... | |
return new SimpleMessageReference(this); | SimpleMessageReference ref = new SimpleMessageReference(this); ref.holder.incrementInMemoryChannelCount(); return ref; | public MessageReference copy() { return new SimpleMessageReference(this); } |
c.addMaxWidth(box.getWidth()); | public static void layoutContent(final LayoutContext c, final Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); Boxing.StyleSetList... | |
c.addMaxHeight(box.height + box.y + (int) c.getOriginOffset().getY()); | if (child_box.y != initialY) { child_box.calcCanvasLocation(); child_box.calcChildLocations(); } | public static void layoutContent(final LayoutContext c, final Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); Boxing.StyleSetList... |
Dimension max_size = new Dimension(c.getMaxWidth(), c.getMaxHeight()); | public static void layoutContent(final LayoutContext c, final Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); Boxing.StyleSetList... | |
fontScalingFactor = 1.2F; minFontScale = 0.50F; maxFontScale = 3.0F; | public XHTMLPanel() { fontScalingFactor = 1.2F; minFontScale = 0.50F; maxFontScale = 3.0F; setupListeners(); } | |
System.out.println("font scaling factor = " + fontScalingFactor); | public void incrementFontSize() { System.out.println("font scaling factor = " + fontScalingFactor); scaleFont(fontScalingFactor); } | |
System.out.println("factor = " + fontScalingFactor); | public void resetFontSize() { System.out.println("factor = " + fontScalingFactor); RenderingContext rc = getRenderingContext(); rc.getTextRenderer().setFontScale(1.0F); System.out.println("reset to " + rc.getTextRenderer().getFontScale()); relayout(); repaint(); } | |
System.out.println("reset to " + rc.getTextRenderer().getFontScale()); | public void resetFontSize() { System.out.println("factor = " + fontScalingFactor); RenderingContext rc = getRenderingContext(); rc.getTextRenderer().setFontScale(1.0F); System.out.println("reset to " + rc.getTextRenderer().getFontScale()); relayout(); repaint(); } | |
System.out.println("scaling to: " + scaleBy); | private void scaleFont(float scaleBy) { System.out.println("scaling to: " + scaleBy); RenderingContext rc = getRenderingContext(); float fs = rc.getTextRenderer().getFontScale() * scaleBy; if ( fs < minFontScale || fs > maxFontScale ) return; rc.getTextRenderer().setFontScale(fs); ... | |
System.out.println("now set to factor = " + fontScalingFactor); | public void setFontScalingFactor(float scaling) { fontScalingFactor = scaling; System.out.println("now set to factor = " + fontScalingFactor); } | |
if (log.isTraceEnabled()) { log.trace("Getting tx for tx id:" + xid); } | public TxState getTx(Object xid) { TxState tx = (TxState) transactions.get(xid); return tx; } | |
public static boolean isNotInFlow(Object target) { return target instanceof AbsolutelyPositionedContent || target instanceof FloatedBlockContent; | public static boolean isNotInFlow(Object current) { if (current instanceof AnonymousBlockContent) { AnonymousBlockContent anon = (AnonymousBlockContent)current; for (Iterator i = anon.getChildContent(null).iterator(); i.hasNext(); ) { Object content = (Object)i.next(); if ( ! (content instanceof FloatedBlockContent || ... | public static boolean isNotInFlow(Object target) { return target instanceof AbsolutelyPositionedContent || target instanceof FloatedBlockContent; } |
if(body_box.isChildrenExceedBounds()) { setOpaque(false); } | protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); //Element body = x.child( html, "body" ); //body = html; // se... | |
if(api == null) { final String msg = "VMFileSystemAPI not yet initialized"; BootLog.error(msg); throw new IOException(msg); } | public static VMFileSystemAPI getAPI() throws IOException { return api; } | |
if (o instanceof BlockContent || o instanceof RunInContent || o instanceof TableContent) { | if (o instanceof BlockContent || o instanceof RunInContent || o instanceof TableContent || o instanceof FirstLineStyle || o instanceof FirstLetterStyle) { | static List resolveBlockContent(List pendingInlines, Element parentElement, Context c) { //return new LinkedList(pendingInlines);//pendingInlines.clone(); List inline = new LinkedList(); List block = new LinkedList(); for (Iterator i = pendingInlines.iterator(); i.hasNext();) { ... |
List list = join.getConditions(); | List list = ((ConditionsDescriptor)join.getConditions().get(0)).getConditions(); | public void processJoinChangeEvent(JoinCell cell) { JoinDescriptor join = cell.getJoinDescriptor(); List list = join.getConditions(); for(int i = 0; i < list.size(); i++) { ConditionDescriptor cond = (ConditionDescriptor)list.get(i); if(cond.getType().equals("class")) { String clazz... |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { | public static InlineBox createInline(Context c, TextContent content, InlineBox prev, InlineBox prev_align, int avail, int max, Font font, CascadedStyle firstLineStyle) { | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... |
inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); | inline.setNode(content.getElement()); inline.setContent(content); CalculatedStyle style = content.getStyle(); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... |
if (prev == null || prev.getNode() != node) { text = stripWhitespace(style, prev, text); | if (prev == null || prev.getContent() != content) { String text = stripWhitespace(style, prev, content.getText()); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... |
text = prev.getMasterText(); | String text = prev.getMasterText(); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... |
BoxBuilder.prepBox(c, inline, prev_align, font); | BoxBuilder.prepBox(c, inline, prev_align, font, firstLineStyle); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... |
public String getWhitespace(CalculatedStyle style) { | public static String getWhitespace(CalculatedStyle style) { | public String getWhitespace(CalculatedStyle style) { String whitespace = style.getStringProperty("white-space"); if (whitespace == null) {//should never happen whitespace = "normal"; } return whitespace; } |
public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { | public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { | public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... |
public void unbreakable(InlineBox box, int n) { | public static void unbreakable(InlineBox box, int n) { | public void unbreakable(InlineBox box, int n) { if (box.start_index == -1) { box.start_index = 0; } box.setSubstring(box.start_index, box.start_index + n); return; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.