bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public short[] getValues() { short[] valuesCopy = new short[values.length]; System.arraycopy(values, 0, valuesCopy, 0, values.length); return valuesCopy; }
public short[] getValues() { short[] valuesCopy = new short[values.length]; System.arraycopy(values, 0, valuesCopy, 0, values.length); return valuesCopy; }
34,379
public static boolean isRelative(Context c) { return c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.RELATIVE); }
private static boolean isRelative(Context c) { return c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.RELATIVE); }
34,380
public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC...
public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC...
34,381
public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC...
public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC...
34,382
private void createRecoverable() throws Exception { InitialContext ic = new InitialContext(); String connFactoryID = connFactoryJNDIMapper.registerConnectionFactory(null, null); XAConnectionFactory xaConnFactory = (XAConnectionFactory)connFactoryJNDIMapper.getConnectionFactory(connFactoryID)...
private void createRecoverable() throws Exception { InitialContext ic = new InitialContext(); int connFactoryID = connFactoryJNDIMapper.registerConnectionFactory(null, null); XAConnectionFactory xaConnFactory = (XAConnectionFactory)connFactoryJNDIMapper.getConnectionFactory(connFactoryID); ...
34,383
public synchronized javax.jms.ConnectionFactory getConnectionFactory(String connectionFactoryID) { return (javax.jms.ConnectionFactory)factories.get(connectionFactoryID); }
public synchronized javax.jms.ConnectionFactory getConnectionFactory(int connectionFactoryID) { return (javax.jms.ConnectionFactory)factories.get(connectionFactoryID); }
34,385
public synchronized javax.jms.ConnectionFactory getConnectionFactory(String connectionFactoryID) { return (javax.jms.ConnectionFactory)factories.get(connectionFactoryID); }
public synchronized javax.jms.ConnectionFactory getConnectionFactory(String connectionFactoryID) { return (javax.jms.ConnectionFactory)factories.get(Integer.valueOf(connectionFactoryID)); }
34,386
protected JDBCPersistenceManager createPM() throws Exception { log.info("Creating pm"); try { cm = new JDBCChannelMapper(sc.getDataSource(), sc.getTransactionManager()); JDBCPersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionMana...
protected JDBCPersistenceManager createPM() throws Exception { try { cm = new JDBCChannelMapper(sc.getDataSource(), sc.getTransactionManager()); JDBCPersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), cm); ...
34,388
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // do symmetry tests if (result) { result = testKat(KAT_KEY, KAT_CT, KAT_PT); } valid = new Boolean(result); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // do symmetry tests if (result) { result = testKat(KAT_KEY, KAT_CT, KAT_PT); } valid = Boolean.valueOf(result); } return valid.booleanValue(); }
34,389
public boolean add(Receiver r) { if (trace) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (trace) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
public boolean add(Receiver r) { if (trace) { log.trace(this + " attempting to add receiver " + r); } boolean added = router.add(r); if (trace) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
34,390
public void testStoreException() throws Exception { Configuration config = new DefaultConfiguration(); config.load(getClass().getResource("/osworkflow-jdbc.xml")); Workflow workflow = new BasicWorkflow("testuser"); workflow.setConfiguration(config); //correct behaviour is to get a...
public void testStoreException() throws Exception { Configuration config = new DefaultConfiguration(); config.load(getClass().getResource("/samples/invalid/invalid-datasource.xml")); Workflow workflow = new BasicWorkflow("testuser"); workflow.setConfiguration(config); //correct be...
34,391
public void testStoreException() throws Exception { Configuration config = new DefaultConfiguration(); config.load(getClass().getResource("/osworkflow-jdbc.xml")); Workflow workflow = new BasicWorkflow("testuser"); workflow.setConfiguration(config); //correct behaviour is to get a...
public void testStoreException() throws Exception { Configuration config = new DefaultConfiguration(); config.load(getClass().getResource("/osworkflow-jdbc.xml")); Workflow workflow = new BasicWorkflow("testuser"); workflow.setConfiguration(config); //correct behaviour is to get a...
34,392
public Class getCategory() { return Media.class; }
public final Class getCategory() { return Media.class; }
34,393
public String getName() { return "media"; }
public final String getName() { return "media"; }
34,394
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"); } ...
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"); } ...
34,395
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"); } ...
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"); } ...
34,396
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"); } ...
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"); } ...
34,397
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"); } ...
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"); } ...
34,398
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"); } ...
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"); } ...
34,399
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"); } ...
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"); } ...
34,400
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"); } ...
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"); } ...
34,401
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"); } ...
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"); } ...
34,402
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"); } ...
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"); } ...
34,403
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"); } ...
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"); } ...
34,404
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"); } ...
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"); } ...
34,405
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"); } ...
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"); } ...
34,406
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"); } ...
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"); } ...
34,407
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"); } ...
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"); } ...
34,408
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"); } ...
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"); } ...
34,409
public NaiveUserAgent() { try { setBaseURL(new File(".").toURL().toExternalForm()); } catch (MalformedURLException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } }
public NaiveUserAgent() { try { setBaseURL(new File(".").toURI().toURL().toExternalForm()); } catch (MalformedURLException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } }
34,410
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) ...
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) ...
34,411
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.trace("Registered connection:" + remotingClientSessionID); }
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); }
34,412
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { log.trace("Unregistered connection:" + remotingClientSessionID); return (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); }
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { log.trace("Unregistered connection:" + remotingClientSessionID); return (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); }
34,413
public Kernel getKernel() { return kernel; }
public Kernel getKernel() { return (Kernel) kernel.clone(); }
34,414
public boolean containsSession(String remotingClientSessionID) { return sessions.containsKey(remotingClientSessionID); }
public synchronized boolean containsSession(String remotingClientSessionID) { return sessions.containsKey(remotingClientSessionID); }
34,415
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 synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //...
34,416
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 synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //...
34,417
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 synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //...
34,418
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 synchronized void handleClientFailure(String remotingSessionID) { String jmsClientId = (String)sessions.get(remotingSessionID); if (jmsClientId != null) { log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure "); //...
34,419
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)) ...
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)) ...
34,420
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)) ...
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)) ...
34,421
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)) ...
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)) ...
34,422
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)) ...
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)) ...
34,423
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); ...
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); ...
34,424
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); ...
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); ...
34,425
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); ...
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); ...
34,426
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); ...
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); ...
34,427
public Object run() throws Exception { String allow = Security.getProperty ("policy.allowSystemProperty"); if (allow == null || Boolean.getBoolean (allow)) { String s = SystemProperties.getProperty ("java.security.policy"); ...
public Object run() throws Exception { String allow = Security.getProperty ("policy.allowSystemProperty"); if (allow == null || Boolean.getBoolean (allow)) { String s = SystemProperties.getProperty ("java.security.policy"); ...
34,428
public Object invoke(InvocationRequest invocation) throws Throwable { log.info("Received request"); ServerRequest request = (ServerRequest)invocation.getParameter(); return request.execute(); }
public Object invoke(InvocationRequest invocation) throws Throwable { log.trace("Received request"); ServerRequest request = (ServerRequest)invocation.getParameter(); return request.execute(); }
34,429
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;...
public ConfigConditionDescriptor getResultCondition(String name) { if(name == null) { return null; } for(int i = 0; i < resultList.size(); i++) { ConfigConditionDescriptor result = (ConfigConditionDescriptor)resultList.get(i); if(name.equals(result.getName())) { return resul...
34,430
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; ...
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; ...
34,431
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...
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...
34,432
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...
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...
34,433
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...
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...
34,434
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...
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...
34,435
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...
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...
34,436
public QueueConnection createQueueConnection() throws JMSException { return (QueueConnection)createConnection(null, null); }
public QueueConnection createQueueConnection() throws JMSException { return createQueueConnection(null, null); }
34,437
public TopicConnection createTopicConnection() throws JMSException { return (TopicConnection)createConnection(null, null); }
public TopicConnection createTopicConnection() throws JMSException { return createTopicConnection(null, null); }
34,438
public XAQueueConnection createXAQueueConnection() throws JMSException { return (XAQueueConnection)createXAConnection(null, null); }
public XAQueueConnection createXAQueueConnection() throws JMSException { return createXAQueueConnection(null, null); }
34,439
public XATopicConnection createXATopicConnection() throws JMSException { return (XATopicConnection)createXAConnection(null, null); }
public XATopicConnection createXATopicConnection() throws JMSException { return createXATopicConnection(null, null); }
34,440
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 !...
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 ...
34,441
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 !...
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 !...
34,442
public static void replaceUIInputMap(JComponent component, int condition, InputMap uiInputMap) { InputMap child = component.getInputMap(condition); if (child == null) component.setInputMap(condition, uiInputMap); else { ...
public static void replaceUIInputMap(JComponent component, int condition, InputMap uiInputMap) { InputMap child = component.getInputMap(condition); if (child == null) component.setInputMap(condition, uiInputMap); else { ...
34,443
protected String paramString() { return "JSplitPane"; }
protected String paramString() { String superParamStr = ""; StringBuffer sb = new StringBuffer(); sb.append(",continuousLayout=").append(isContinuousLayout()); sb.append(",dividerSize=").append(getDividerSize()); sb.append(",lastDividerLocation=").append(getLastDividerLocation()); sb.append(",oneTouchExpandable="...
34,444
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); }
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); }
34,446
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, ...
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, ...
34,447
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...
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...
34,448
protected void init() { deques = new DoubleLinkedDeque[priorities]; for (int i = 0; i < priorities; i++) { deques[i] = new DoubleLinkedDeque(); } lookUp = new HashMap(); }
protected void init() { deques = new DoubleLinkedDeque[priorities]; for (int i = 0; i < priorities; i++) { deques[i] = new DoubleLinkedDeque(); } }
34,450
public Message createMessage() throws JMSException { throw new JMSException("We don't create messages on the server"); }
public Message createMessage() throws JBossJMSException { throw new JMSException("We don't create messages on the server"); }
34,451
public Message createMessage() throws JMSException { throw new JMSException("We don't create messages on the server"); }
public Message createMessage() throws JMSException { throw new JBossJMSException("We don't create messages on the server"); }
34,452
public Class getCategory() { return PrintQuality.class; }
public final Class getCategory() { return PrintQuality.class; }
34,453
public String getName() { return "print-quality"; }
public final String getName() { return "print-quality"; }
34,454
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); ...
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); ...
34,455
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....
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), null, true, false, true, 100); pm...
34,456
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....
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....
34,457
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....
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....
34,458
public void addValue(String fieldName, String value) { try { writer.write(value); writer.write(","); } catch (IOException e) { log.error("Failed to write field", e); } }
public void addValue(String fieldName, String value) { try { if (value != null) { writer.write(value); } writer.write(","); } catch (IOException e) { log.error("Failed to write field", e); } }
34,460
public Style(CalculatedStyle calculatedStyle, float parentWidth, CssContext cssContext) { this.calculatedStyle = calculatedStyle; this.parentWidth = parentWidth; }
public Style(CalculatedStyle calculatedStyle, float parentWidth, CssContext cssContext) { this.calculatedStyle = calculatedStyle; this.parentWidth = parentWidth; }
34,461
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...
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...
34,462
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...
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...
34,463
public static PropertyDeclarationFactory newFactory( CSSName cssName ) { PropertyDeclarationFactory pdf = PROPERTY_FACTORIES[cssName.getAssignedID()]; if ( pdf == null ) { pdf = DEFAULT_PD_FACTORY; } return pdf; }
public static PropertyDeclarationFactory newFactory( CSSName cssName ) { PropertyDeclarationFactory pdf = PROPERTY_FACTORIES[cssName.getAssignedID()]; if ( pdf == null ) { pdf = DEFAULT_PD_FACTORY; } return pdf; }
34,465
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...
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...
34,467
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...
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...
34,468
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...
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...
34,469
public JBossConnectionConsumer(ConnectionDelegate conn, Destination dest, String subName, String messageSelector, ServerSessionPool sessPool, int maxMessages) throws JMSException { trace = log.isTraceEnabled(); //this.connection = c...
public JBossConnectionConsumer(ConnectionDelegate conn, Destination dest, String subName, String messageSelector, ServerSessionPool sessPool, int maxMessages) throws JMSException { trace = log.isTraceEnabled(); //this.connection = c...
34,470
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 ...
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 ...
34,471
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 ...
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 ...
34,472
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 ...
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 ...
34,473
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 ...
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 ...
34,474
public MessageReference copy() { return new SimpleMessageReference(this); }
public MessageReference copy() { SimpleMessageReference ref = new SimpleMessageReference(this); ref.holder.incrementInMemoryChannelCount(); return ref; }
34,476
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...
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...
34,477
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...
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...
34,478
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...
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...
34,479
public XHTMLPanel() { fontScalingFactor = 1.2F; minFontScale = 0.50F; maxFontScale = 3.0F; setupListeners(); }
public XHTMLPanel() { fontScalingFactor = 1.2F; minFontScale = 0.50F; maxFontScale = 3.0F; setupListeners(); }
34,480
public void incrementFontSize() { System.out.println("font scaling factor = " + fontScalingFactor); scaleFont(fontScalingFactor); }
public void incrementFontSize() { scaleFont(fontScalingFactor); }
34,481
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(); }
public void resetFontSize() { RenderingContext rc = getRenderingContext(); rc.getTextRenderer().setFontScale(1.0F); System.out.println("reset to " + rc.getTextRenderer().getFontScale()); relayout(); repaint(); }
34,482
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(); }
public void resetFontSize() { System.out.println("factor = " + fontScalingFactor); RenderingContext rc = getRenderingContext(); rc.getTextRenderer().setFontScale(1.0F); relayout(); repaint(); }
34,483
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); ...
private void scaleFont(float scaleBy) { RenderingContext rc = getRenderingContext(); float fs = rc.getTextRenderer().getFontScale() * scaleBy; if ( fs < minFontScale || fs > maxFontScale ) return; rc.getTextRenderer().setFontScale(fs); relayout(); repaint(); }
34,484
public void setFontScalingFactor(float scaling) { fontScalingFactor = scaling; System.out.println("now set to factor = " + fontScalingFactor); }
public void setFontScalingFactor(float scaling) { fontScalingFactor = scaling; }
34,485
public static boolean isNotInFlow(Object target) { return target instanceof AbsolutelyPositionedContent || target instanceof FloatedBlockContent; }
public static boolean isNotInFlow(Object target) { return target instanceof AbsolutelyPositionedContent || target instanceof FloatedBlockContent; }
34,487