rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
LocalClusteredQueue queue2 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue2 = new LocalClusteredQueue(office2, 2, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
LocalClusteredQueue queue3 = new LocalClusteredQueue(office1, 1, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue3 = new LocalClusteredQueue(office1, 1, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
LocalClusteredQueue queue4 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue4 = new LocalClusteredQueue(office2, 2, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
LocalClusteredQueue queue5 = new LocalClusteredQueue(office1, 1, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue5 = new LocalClusteredQueue(office1, 1, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
PagingFilteredQueue queue6 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | PagingFilteredQueue queue6 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
LocalClusteredQueue queue7 = new LocalClusteredQueue(office1, 1, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue7 = new LocalClusteredQueue(office1, 1, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
LocalClusteredQueue queue8 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue8 = new LocalClusteredQueue(office2, 2, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
LocalClusteredQueue queue9 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | LocalClusteredQueue queue9 = new LocalClusteredQueue(office2, 2, "queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... |
return null; | ClassLoader getCallingClassLoader() { Class[] stack = getClassContext(); for (int i = 0; i < stack.length; i++) { if (stack[i] != Security.class && stack[i] != ResourceBundle.class) return stack[i].getClassLoader(); } return null; } | |
List deliveries(Serializable channelID) throws Exception; | List deliveries(Serializable storeID, Serializable channelID) throws Exception; | List deliveries(Serializable channelID) throws Exception; |
List messages(Serializable channelID) throws Exception; | List messages(Serializable storeID, Serializable channelID) throws Exception; | List messages(Serializable channelID) throws Exception; |
if (_cssName == CSSName.LINE_HEIGHT) { absVal = relVal * baseValue; | if (_cssName == CSSName.FONT_SIZE) { absVal = relVal * getInheritedFontSize(ctx); | private float calcFloatProportionalValue(float relVal, short primitiveType, float baseValue, RenderingContext ctx) { float absVal = Float.MIN_VALUE; // NOTE: absolute datatypes (px, pt, pc, cm, etc.) are converted once and stored. // this could be done on instantiation, but it seems more clear ... |
absVal = relVal * deriveFontSize(baseValue, ctx); | absVal = relVal * _style.getFloatPropertyProportionalHeight(CSSName.FONT_SIZE, 0, ctx); | private float calcFloatProportionalValue(float relVal, short primitiveType, float baseValue, RenderingContext ctx) { float absVal = Float.MIN_VALUE; // NOTE: absolute datatypes (px, pt, pc, cm, etc.) are converted once and stored. // this could be done on instantiation, but it seems more clear ... |
if (_cssName == CSSName.LINE_HEIGHT) { absVal = relVal * baseValue; } else { | if (_cssName == CSSName.FONT_SIZE) { | private float calcFloatProportionalValue(float relVal, short primitiveType, float baseValue, RenderingContext ctx) { float absVal = Float.MIN_VALUE; // NOTE: absolute datatypes (px, pt, pc, cm, etc.) are converted once and stored. // this could be done on instantiation, but it seems more clear ... |
baseValue = deriveFontSize(baseValue, ctx); | baseValue = getInheritedFontSize(ctx); | private float calcFloatProportionalValue(float relVal, short primitiveType, float baseValue, RenderingContext ctx) { float absVal = Float.MIN_VALUE; // NOTE: absolute datatypes (px, pt, pc, cm, etc.) are converted once and stored. // this could be done on instantiation, but it seems more clear ... |
getPersistence().markFinished(step, (action != null) ? action.getId() : (-1), new Date(), "Finished", context.getCaller()); | String oldStatus = (action != null) ? action.getUnconditionalResult().getOldStatus() : "Finished"; getPersistence().markFinished(step, (action != null) ? action.getId() : (-1), new Date(), oldStatus, context.getCaller()); | protected void completeEntry(ActionDescriptor action, long id, Collection currentSteps, int state) throws StoreException { getPersistence().setEntryState(id, state); Iterator i = new ArrayList(currentSteps).iterator(); while (i.hasNext()) { Step step = (Step) i.next(); get... |
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:saved.xml"); | URL url = getClass().getClassLoader().getResource("/saved.xml"); WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(url.toString()); | public void testSave() throws Exception { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:saved.xml"); StringWriter out = new StringWriter(); PrintWriter writer = new PrintWriter(out); writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); writer.println("<!DOCTYPE workflow... |
int origLength = (int)new File("saved.xml").length(); | int origLength = (int)new File(url.getFile()).length(); | public void testSave() throws Exception { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:saved.xml"); StringWriter out = new StringWriter(); PrintWriter writer = new PrintWriter(out); writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); writer.println("<!DOCTYPE workflow... |
node = node.getRealNode(); | node = node.getRealNode(true); | private void fetchDependencies(IvyNode node, String conf, boolean shouldBePublic) { long start = System.currentTimeMillis(); if (debugConflictResolution()) { Message.debug(node.getId()+" => resolving dependencies in "+conf); } resolveConflict(node, node.getParent()); ... |
if (!(block.getContent() instanceof BlockContent)) { | if (block.content instanceof AnonymousBlockContent) { | private void adjustHeight(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) {//then it must be anonymous return; } Element elem = block.getElement(); CalculatedStyle style = block.getContent().getStyle(); if (style.hasProperty("height")) { ... |
Element elem = block.getElement(); CalculatedStyle style = block.getContent().getStyle(); | CalculatedStyle style = c.getCurrentStyle(); | private void adjustHeight(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) {//then it must be anonymous return; } Element elem = block.getElement(); CalculatedStyle style = block.getContent().getStyle(); if (style.hasProperty("height")) { ... |
if (!(block.getContent() instanceof BlockContent)) { | if (block.content instanceof AnonymousBlockContent) { | private void adjustWidth(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) {//then it must be anonymous return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); C... |
Element elem = block.getElement(); CalculatedStyle style = block.getContent().getStyle(); | CalculatedStyle style = c.getCurrentStyle(); | private void adjustWidth(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) {//then it must be anonymous return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); C... |
if (!elem.getNodeName().equals("td")) { | /*if (!elem.getNodeName().equals("td")) { | private void adjustWidth(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) {//then it must be anonymous return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); C... |
} | }*/ | private void adjustWidth(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) {//then it must be anonymous return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); C... |
block.setNode(content.getElement()); block.setContent(content); | block.content = content; | public Box createBox(Context c, Content content) { BlockBox block = new BlockBox(); block.setNode(content.getElement()); block.setContent(content); //String attachment = c.css.getStringProperty(block.getRealElement(), "background-attachment", false); String attachment = c.css.getS... |
String attachment = c.css.getStyle(block.getRealElement()).propertyByName("background-attachment").computedValue().asString(); | String attachment = c.getCurrentStyle().getStringProperty("background-attachment"); | public Box createBox(Context c, Content content) { BlockBox block = new BlockBox(); block.setNode(content.getElement()); block.setContent(content); //String attachment = c.css.getStringProperty(block.getRealElement(), "background-attachment", false); String attachment = c.css.getS... |
java.util.List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0) return box; | java.util.List contentList = block.content.getChildContent(c); if (contentList.size() == 0) return block; | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_counter = c.get... |
CascadedStyle firstLineStyle = null; CascadedStyle firstLetterStyle = null; | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_counter = c.get... | |
firstLineStyle = ((FirstLineStyle) o).getStyle(); | block.firstLineStyle = ((FirstLineStyle) o).getStyle(); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_counter = c.get... |
firstLetterStyle = ((FirstLetterStyle) o).getStyle(); | block.firstLetterStyle = ((FirstLetterStyle) o).getStyle(); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_counter = c.get... |
if (child_box.isAbsolute()) { | if (child_box.absolute) { | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_counter = c.get... |
public ClientSessionDelegate(String objectID, InvokerLocator locator) | public ClientSessionDelegate(String objectID) | public ClientSessionDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } |
super(objectID, locator); | super(objectID); | public ClientSessionDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } |
if (log.isDebugEnabled()) { log.debug("Host: " + smtpHost); } if (log.isDebugEnabled()) { log.debug("To: " + to); } if (log.isDebugEnabled()) { log.debug("Cc: " + cc); } if (log.isDebugEnabled()) { log.debug("From: " + from); } if (log.isDebugEnabled()) { log.debug("Subject: " + subject); } if (log.isDebugEnabled(... | boolean parseVariables = "true".equals(args.get("parseVariables")); | public void execute(Map transientVars, Map args, PropertySet ps) { String to = (String) args.get("to"); String from = (String) args.get("from"); String subject = (String) args.get("subject"); String cc = (String) args.get("cc"); String m = (String) args.get("message"); Stri... |
message.setSubject(subject); | message.setSubject(parseVariables ? ScriptVariableParser.translateVariables(subject, transientVars, ps).toString() : subject); | public void execute(Map transientVars, Map args, PropertySet ps) { String to = (String) args.get("to"); String from = (String) args.get("from"); String subject = (String) args.get("subject"); String cc = (String) args.get("cc"); String m = (String) args.get("message"); Stri... |
message.setText(m); | message.setText(parseVariables ? ScriptVariableParser.translateVariables(m, transientVars, ps).toString() : m); | public void execute(Map transientVars, Map args, PropertySet ps) { String to = (String) args.get("to"); String from = (String) args.get("from"); String subject = (String) args.get("subject"); String cc = (String) args.get("cc"); String m = (String) args.get("message"); Stri... |
void setArray(int i, Array x) throws SQLException; | void setArray(int index, Array value) throws SQLException; | void setArray(int i, Array x) throws SQLException; |
void setAsciiStream(int parameterIndex, InputStream x, int length) | void setAsciiStream(int index, InputStream stream, int count) | void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException; |
void setBigDecimal(int parameterIndex, BigDecimal x) throws | void setBigDecimal(int index, BigDecimal value) throws | void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException; |
void setBlob(int i, Blob x) throws SQLException; | void setBlob(int index, Blob value) throws SQLException; | void setBlob(int i, Blob x) throws SQLException; |
void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException; | void setCharacterStream(int index, Reader reader, int count) throws SQLException; | void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException; |
void setClob(int i, Clob x) throws SQLException; | void setClob(int index, Clob value) throws SQLException; | void setClob(int i, Clob x) throws SQLException; |
void setDate(int parameterIndex, Date x) throws SQLException; | void setDate(int index, Date value) throws SQLException; | void setDate(int parameterIndex, Date x) throws SQLException; |
void setFloat(int parameterIndex, float x) throws SQLException; | void setFloat(int index, float value) throws SQLException; | void setFloat(int parameterIndex, float x) throws SQLException; |
void setRef(int i, Ref x) throws SQLException; | void setRef(int index, Ref value) throws SQLException; | void setRef(int i, Ref x) throws SQLException; |
void setShort(int parameterIndex, short x) throws SQLException; | void setShort(int index, short value) throws SQLException; | void setShort(int parameterIndex, short x) throws SQLException; |
void setTime(int parameterIndex, Time x) throws SQLException; | void setTime(int index, Time value) throws SQLException; | void setTime(int parameterIndex, Time x) throws SQLException; |
void setURL(int parameterIndex, URL x) throws SQLException; | void setURL(int index, URL value) throws SQLException; | void setURL(int parameterIndex, URL x) throws SQLException; |
void setUnicodeStream(int parameterIndex, InputStream x, int length) | void setUnicodeStream(int index, InputStream stream, int count) | void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException; |
long workflowId2 = workflow.initialize(workflowName, 1, Collections.EMPTY_MAP); workflow.changeEntryState(workflowId, WorkflowEntry.SUSPENDED); queryRight = new FieldExpression(FieldExpression.STATE, FieldExpression.ENTRY, FieldExpression.EQUALS, new Integer(WorkflowEntry.ACTIVATED)); queryLeft = new FieldExpression(Fi... | public void testWorkflowExpressionQuery() throws Exception { WorkflowExpressionQuery query = new WorkflowExpressionQuery(new FieldExpression(FieldExpression.OWNER, FieldExpression.CURRENT_STEPS, FieldExpression.EQUALS, USER_TEST)); List workflows; String workflowName = getClass().getResource("/... | |
Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { | Provider[] p = Security.getProviders(); NoSuchAlgorithmException lastException = null; for (int i = 0; i < p.length; i++) | public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmExc... |
return getInstance(algorithm, provs[i]); | return getInstance(algorithm, p[i]); | public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmExc... |
catch (NoSuchAlgorithmException nsae) | catch (NoSuchAlgorithmException x) | public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmExc... |
} | if (lastException != null) throw lastException; | public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmExc... |
log.info("****************ACKNOWLEDGING"); | public Object handlePostDeliver(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; SessionState state = getState(invocation); int ackMode = state.getAcknowledgeMode(); if (ackMode == Session.AUTO_ACKNOWLEDGE || ackMode == Session.... | |
if (configuration.getPerformanceTests().isEmpty()) { log.info("No performance tests defined in the configuration file"); } | protected void doCharts() throws Exception { // one chart (image) per performance test // only chart the performance tests from the current configuration file; the database may // contain much more that those, but it MUST contains the ones from the config file, they // just ran for(Iterato... | |
DeliveryRunnable dr = new DeliveryRunnable(md, null, consumerID, trace); | DeliveryRunnable dr = new DeliveryRunnable(md, consumerID, null, trace); | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... |
block.attachment = c.css.getStringProperty(block.getElement(), "background-attachment"); | block.attachment = c.css.getStringProperty(block.getElement(), "background-attachment",false); | public void paintBackground(Context c, Box box) { Box block = box; // cache the background color getBackgroundColor(c, block); // get the css properties String back_image = c.css.getStringProperty(block.getElement(), "background-image", false); block.repeat = c.css.getStrin... |
Uu.p("positioning an absolute child: " + child_box); | public static void positionAbsoluteChild(Context c, Box child_box) { BlockFormattingContext bfc = c.getBlockFormattingContext(); // handle the left and right if (child_box.right_set) { child_box.x = -bfc.getX() + bfc.getWidth() - child_box.right - child_box.width -... | |
setDPI(Toolkit.getDefaultToolkit().getScreenResolution()); | try { setDPI(Toolkit.getDefaultToolkit().getScreenResolution()); } catch (HeadlessException e) { setDPI(DEFAULT_DPI); } | public RenderingContext(UserAgentCallback uac) { setMedia("screen"); setContext(new SharedContext()); getContext().setCtx(this); this.uac = uac; getContext().setCss(new StyleReference(uac)); XRLog.render("Using CSS implementation from: " + getContext().getCss().getClass().g... |
public BDFTextRenderer(RenderCache renderCache, BDFFont fontData, | public BDFTextRenderer( BDFFont fontData, | public BDFTextRenderer(RenderCache renderCache, BDFFont fontData, int fontSize) { this.renderCache = renderCache; this.fontData = fontData; this.fontSize = fontSize; } |
this.renderCache = renderCache; | public BDFTextRenderer(RenderCache renderCache, BDFFont fontData, int fontSize) { this.renderCache = renderCache; this.fontData = fontData; this.fontSize = fontSize; } | |
*/ return null; | private WritableRaster createAlphaRaster() { final RenderContext ctx = renderCache.getContext(); WritableRaster r = (WritableRaster) ctx.getObject(ALPHA_RASTER); final int fontSizeUp = (int) (fontSize + 0.5); if ((r == null) || (r.getWidth() < fontSizeUp) || (r.getHeight()... | |
public Object getContent(Context c) { return _sb.toString(); | public List getContent(Context c) { return null; | public Object getContent(Context c) { return _sb.toString(); } |
serverPeer = new ServerPeer("ServerPeer0", "/queue", "/topic"); | serverPeer = new ServerPeer(0, "/queue", "/topic"); | public Colocated() throws Exception { sc = new ServiceContainer("transaction,remoting", null); sc.start(); serverPeer = new ServerPeer("ServerPeer0", "/queue", "/topic"); serverPeer.start(); deployTopic("T"); log.info("Topic messaging/topics/T deployed"); } |
getContentPane().add(BarFactory.createStatusBar(), BorderLayout.SOUTH); | public WorkflowDesigner() { super(ResourceManager.getString("app.name")); INSTANCE = this; navigator = new Navigator(this); splash.setProgress(30); setJMenuBar(BarFactory.createMenubar(manager)); JScrollPane sp = new JScrollPane(detailPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HOR... | |
if (log.isTraceEnabled()) | if (trace) | public Object invoke(Invocation invocation) throws Throwable { Method method = null; String methodName = null; Object target = null; if (log.isTraceEnabled()) { target = invocation.getTargetObject(); if (!(invocation instanceof MethodInvocation)) { ... |
catch (Exception e) | catch (Throwable e) | public void run() { Connection conn = null; try { log.info("==============Running fill job"); super.setup(); conn = cf.createConnection(); long count = 0; Session sess = conn.createSession(false, Session.AU... |
throwable = e; | public void run() { Connection conn = null; try { log.info("==============Running fill job"); super.setup(); conn = cf.createConnection(); long count = 0; Session sess = conn.createSession(false, Session.AU... | |
if (filter == null || filter.accept(ref)) | if (filter == null || filter.accept(ref.getMessage())) | public List delivering(Filter filter) { List delivering = super.delivering(filter); try { List persisted = pm.deliveries(channelID); for(Iterator i = persisted.iterator(); i.hasNext(); ) { StorageIdentifier id = (StorageIdentifier)i.next(); if (!id... |
if (destination == null) { throw new InvalidDestinationException("No such destination: " + jmsDestination); } | public BrowserDelegate createBrowserDelegate(Destination jmsDestination, String messageSelector) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (jmsDestination == null) { throw new InvalidDestinationException("null destination"... | |
throw new InvalidDestinationException("Cannot find destination " + jmsDestination); | throw new InvalidDestinationException("No such destination: " + jmsDestination); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
if (destination == null) { throw new InvalidDestinationException("No such destination: " + jmsDestination); } | public ProducerDelegate createProducerDelegate(Destination jmsDestination) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } // look-up destination DestinationManagerImpl dm = serverPeer.getDestinationManager(); Dis... | |
public void handleCallback(InvocationRequest invocation) throws HandleCallbackException | public void handleCallback(Callback callback) throws HandleCallbackException | public void handleCallback(InvocationRequest invocation) throws HandleCallbackException { Message m = (Message)invocation.getParameter(); if (log.isTraceEnabled()) { log.trace("receiving from server: " + m); } try { JBossMessage jm = (JBossMessage)m; jm.set... |
Message m = (Message)invocation.getParameter(); | Message m = (Message)callback.getParameter(); | public void handleCallback(InvocationRequest invocation) throws HandleCallbackException { Message m = (Message)invocation.getParameter(); if (log.isTraceEnabled()) { log.trace("receiving from server: " + m); } try { JBossMessage jm = (JBossMessage)m; jm.set... |
try { setBaseURL(new File(".").toURI().toURL().toExternalForm()); } catch (MalformedURLException e) { e.printStackTrace(); } | public NaiveUserAgent() { } | |
if (ir == null) ir = new ImageResource(null); | if (ir == null) { ir = new ImageResource(null); } | public ImageResource getImageResource(String uri) { ImageResource ir = null; uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is = getInputStream(uri); if (is != null... |
URL result; if (baseURL == null) { | String ret = null; if (uri != null) { | public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ... |
result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { setBaseURL(new File(".").toURI().toURL().toExternalForm()); } catch (MalformedURLException e1) { XRLog.exception("The default NaiveUserAgent doesn't know how to resolve the base URL for ... | URL result = new URL(uri); ret = result.toString(); } catch (MalformedURLException e) { if (baseURL != null) { try { URL result = new URL(new URL(baseURL), uri); ret = result.toString(); } catch (MalformedURLException e1) { } | public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ... |
try { result = new URL(new URL(baseURL), uri); } catch (MalformedURLException e1) { XRLog.exception("The default NaiveUserAgent cannot resolve the URL " + uri + " with base URL " + baseURL); return null; } return result.toString(); | return ret; | public String resolveURI(String uri) { URL result; if (baseURL == null) { try { result = new URL(uri); setBaseURL(result.toExternalForm()); return result.toExternalForm(); } catch (MalformedURLException e) { try { ... |
if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButton).paint(g); } | public void paint(Graphics g) { //super.paint(g); Dimension s = getSize(); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, light, dark); } | |
c.getBlockFormattingContext().translate(0,-box.height); | public Box layoutChildren( Context c, Box box ) { //u.p("Layout.layoutChildren: " + box); Element elem = (Element)box.node; // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter( 0 ); // for each child NodeList nl = elem.getChildNodes()... | |
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); InputStream is = ARG_FILE.getInputStream(cmdLine); int len; final byte[] buf = new byte[1024]; while ((len = is.read(buf)) > 0) { System.out.write(buf, 0, len); } System.out.flush(); is.close(); } | public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final URL url = openURL(ARG_FILE.getValue(cmdLine)); final InputStream is = url.openStream(); if (is == null) { System.err.println("Not found " + ARG_FILE.getValue(cmdLine)); } else { int len; final byte[] b... | public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); InputStream is = ARG_FILE.getInputStream(cmdLine); int len; final byte[] buf = new byte[1024]; while ((len = is.read(buf)) > 0) { System.out.write(buf, 0, len); } System.out.flush(); is.close(); } |
"socketTimeout=0"; | "socketTimeout=0&" + "socket.check_connection=false"; | private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "serializationtype=jboss&"... |
if (dmSize.width < 5) dmSize.width = 5; if (dmSize.height < 5) dmSize.height = 5; | public void componentResized(ComponentEvent eEvent) { Dimension dmSize = getSize(); // Create off-screen buffer to fill canvas inner area. m_dmBuffer = new Dimension(dmSize.width-4, dmSize.height-4); m_imgBuffer = createImage(m_dmBuffer.width, m_dmBuffer.height); m_gImgBuffer = m_imgBuffer.getGraphics()... | |
String jmsType, int priority, | String jmsType, | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
m = new JBossMessage((String)messageID, reliable, expiration, timestamp, coreHeaders, payload, jmsType, priority, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, jmsProperties); | m = new JBossMessage((String)messageID, reliable, expiration, timestamp, priority, deliveryCount, coreHeaders, payload, jmsType, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, connectionID, jmsProperties); | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
m = new JBossObjectMessage((String)messageID, reliable, expiration, timestamp, coreHeaders, payload, jmsType, priority, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, jmsProperties); | m = new JBossObjectMessage((String)messageID, reliable, expiration, timestamp, priority, deliveryCount, coreHeaders, payload, jmsType, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, connectionID, jmsProperties); | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
m = new JBossTextMessage((String)messageID, reliable, expiration, timestamp, coreHeaders, payload, jmsType, priority, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, jmsProperties); | m = new JBossTextMessage((String)messageID, reliable, expiration, timestamp, priority, deliveryCount, coreHeaders, payload, jmsType, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, connectionID, jmsProperties); | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
m = new JBossBytesMessage((String)messageID, reliable, expiration, timestamp, coreHeaders, payload, jmsType, priority, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, jmsProperties); | m = new JBossBytesMessage((String)messageID, reliable, expiration, timestamp, priority, deliveryCount, coreHeaders, payload, jmsType, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, connectionID, jmsProperties); | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
m = new JBossMapMessage((String)messageID, reliable, expiration, timestamp, coreHeaders, payload, jmsType, priority, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, jmsProperties); | m = new JBossMapMessage((String)messageID, reliable, expiration, timestamp, priority, deliveryCount, coreHeaders, payload, jmsType, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, connectionID, jmsProperties); | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
m = new JBossStreamMessage((String)messageID, reliable, expiration, timestamp, coreHeaders, payload, jmsType, priority, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, jmsProperties); | m = new JBossStreamMessage((String)messageID, reliable, expiration, timestamp, priority, deliveryCount, coreHeaders, payload, jmsType, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, connectionID, jmsProperties); | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
throw new IllegalArgumentException("Unknown message type: " + type); | m = new MessageSupport(messageID, reliable, expiration, timestamp, priority, deliveryCount, 0, coreHeaders, payload); | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... |
if (getStyle().isHidden()) { | if (! getStyle().isVisible()) { | public void paintInline(RenderingContext c) { if (getStyle().isHidden()) { return; } paintBackground(c); paintBorder(c); if (c.debugDrawInlineBoxes()) { paintDebugOutline(c); } if (textDecoration != null) { Ide... |
b.calcCanvasLocation(); b.calcChildLocations(); | public Dimension positionPositioned(CssContext cssCtx) { Dimension delta = super.positionPositioned(cssCtx); this.x -= delta.width; this.y -= delta.height; List toTranslate = getElementWithContent(); for (int i = 0; i < toTranslate.size(); i++) { ... | |
if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) | if (binding.getNodeId() == thisNode && binding.getQueue().isRecoverable()) | public void addBinding(Binding binding) { super.addBinding(binding); if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) { localDurableCount++; } } |
if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) | if (binding.getNodeId() == thisNode && binding.getQueue().isRecoverable()) | public boolean removeBinding(Binding binding) { boolean removed = super.removeBinding(binding); if (!removed) { return false; } if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) { localDurableCount--; } ret... |
throws NotImplementedException | protected void installKeyboardActions() { // FIXME: Need to implement. } | |
throws NotImplementedException | protected void uninstallKeyboardActions() { // FIXME: Need to implement. } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.