bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | 35,401 |
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | 35,402 |
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | 35,403 |
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | 35,404 |
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | 35,405 |
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | 35,406 |
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); ... | 35,407 |
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; } | 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(); } } | 35,408 |
List deliveries(Serializable channelID) throws Exception; | List deliveries(Serializable storeID, Serializable channelID) throws Exception; | 35,409 |
List messages(Serializable channelID) throws Exception; | List messages(Serializable storeID, Serializable channelID) throws Exception; | 35,410 |
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 ... | 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 ... | 35,411 |
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 ... | 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 ... | 35,412 |
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 ... | 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 ... | 35,413 |
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 ... | 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 ... | 35,414 |
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... | 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(); Str... | 35,415 |
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... | public void testSave() throws Exception { URL url = getClass().getClassLoader().getResource("/saved.xml"); WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(url.toString()); StringWriter out = new StringWriter(); PrintWriter writer = new PrintWriter(out); writer.println("<?xml version=\"1.0\... | 35,416 |
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... | 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... | 35,417 |
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()); ... | 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()); ... | 35,418 |
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")) { ... | private void adjustHeight(Context c, Box block) { if (block.content instanceof AnonymousBlockContent) {//then it must be anonymous return; } Element elem = block.getElement(); CalculatedStyle style = block.getContent().getStyle(); if (style.hasProperty("height")) { ... | 35,419 |
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")) { ... | 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")) { ... | 35,420 |
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.content instanceof AnonymousBlockContent) {//then it must be anonymous return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); ... | 35,421 |
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... | 35,422 |
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... | 35,423 |
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(); ... | 35,424 |
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... | 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... | 35,425 |
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... | 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.getCurre... | 35,426 |
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 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... | 35,427 |
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 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... | 35,428 |
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 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... | 35,429 |
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 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... | 35,430 |
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 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... | 35,431 |
public ClientSessionDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientSessionDelegate(String objectID) { super(objectID, locator); } | 35,432 |
public ClientSessionDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientSessionDelegate(String objectID, InvokerLocator locator) { super(objectID); } | 35,433 |
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... | 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... | 35,434 |
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... | 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... | 35,435 |
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... | 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... | 35,436 |
void setArray(int i, Array x) throws SQLException; | void setArray(int index, Array value) throws SQLException; | 35,437 |
void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException; | void setAsciiStream(int index, InputStream stream, int count) throws SQLException; | 35,438 |
void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException; | void setBigDecimal(int index, BigDecimal value) throws SQLException; | 35,439 |
void setBlob(int i, Blob x) throws SQLException; | void setBlob(int index, Blob value) throws SQLException; | 35,440 |
void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException; | void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException; | 35,441 |
void setClob(int i, Clob x) throws SQLException; | void setClob(int index, Clob value) throws SQLException; | 35,442 |
void setDate(int parameterIndex, Date x) throws SQLException; | void setDate(int index, Date value) throws SQLException; | 35,443 |
void setFloat(int parameterIndex, float x) throws SQLException; | void setFloat(int index, float value) throws SQLException; | 35,444 |
void setRef(int i, Ref x) throws SQLException; | void setRef(int index, Ref value) throws SQLException; | 35,445 |
void setShort(int parameterIndex, short x) throws SQLException; | void setShort(int index, short value) throws SQLException; | 35,446 |
void setTime(int parameterIndex, Time x) throws SQLException; | void setTime(int index, Time value) throws SQLException; | 35,447 |
void setURL(int parameterIndex, URL x) throws SQLException; | void setURL(int index, URL value) throws SQLException; | 35,448 |
void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException; | void setUnicodeStream(int index, InputStream stream, int count) throws SQLException; | 35,449 |
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... | 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... | 35,451 |
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... | 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, p[i]); } catch (NoSuchAlgorithmExcepti... | 35,452 |
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... | 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... | 35,453 |
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... | 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]); if (lastException != null) throw l... | 35,454 |
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... | 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... | 35,457 |
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... | 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... | 35,458 |
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 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... | 35,460 |
public BDFTextRenderer(RenderCache renderCache, BDFFont fontData, int fontSize) { this.renderCache = renderCache; this.fontData = fontData; this.fontSize = fontSize; } | public BDFTextRenderer( BDFFont fontData, int fontSize) { this.renderCache = renderCache; this.fontData = fontData; this.fontSize = fontSize; } | 35,461 |
public BDFTextRenderer(RenderCache renderCache, BDFFont fontData, int fontSize) { this.renderCache = renderCache; this.fontData = fontData; this.fontSize = fontSize; } | public BDFTextRenderer(RenderCache renderCache, BDFFont fontData, int fontSize) { this.fontData = fontData; this.fontSize = fontSize; } | 35,462 |
public Object getContent(Context c) { return _sb.toString(); } | public Object getContent(Context c) { return _sb.toString(); } | 35,464 |
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"); } | public Colocated() throws Exception { sc = new ServiceContainer("transaction,remoting", null); sc.start(); serverPeer = new ServerPeer(0, "/queue", "/topic"); serverPeer.start(); deployTopic("T"); log.info("Topic messaging/topics/T deployed"); } | 35,465 |
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)) { ... | public Object invoke(Invocation invocation) throws Throwable { Method method = null; String methodName = null; Object target = null; if (trace) { target = invocation.getTargetObject(); if (!(invocation instanceof MethodInvocation)) { log.trace(... | 35,467 |
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... | 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... | 35,468 |
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... | 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... | 35,470 |
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | 35,472 |
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... | public void handleCallback(Callback callback) throws HandleCallbackException { Message m = (Message)invocation.getParameter(); if (log.isTraceEnabled()) { log.trace("receiving from server: " + m); } try { JBossMessage jm = (JBossMessage)m; jm.setSessionDele... | 35,474 |
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... | public void handleCallback(InvocationRequest invocation) throws HandleCallbackException { Message m = (Message)callback.getParameter(); if (log.isTraceEnabled()) { log.trace("receiving from server: " + m); } try { JBossMessage jm = (JBossMessage)m; jm.setSe... | 35,475 |
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... | 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... | 35,477 |
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 { ... | 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 { ... | 35,478 |
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 { ... | 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 { ... | 35,479 |
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 { ... | 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 { ... | 35,480 |
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 { 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(); } | 35,483 |
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&"... | 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&"... | 35,484 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,486 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,487 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,488 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,489 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,490 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,491 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,492 |
public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | public static Message createMessage(Serializable messageID, boolean reliable, long expiration, long timestamp, Map coreHeaders, ... | 35,493 |
public void paintInline(RenderingContext c) { if (getStyle().isHidden()) { return; } paintBackground(c); paintBorder(c); if (c.debugDrawInlineBoxes()) { paintDebugOutline(c); } if (textDecoration != null) { Ide... | public void paintInline(RenderingContext c) { if (! getStyle().isVisible()) { return; } paintBackground(c); paintBorder(c); if (c.debugDrawInlineBoxes()) { paintDebugOutline(c); } if (textDecoration != null) { ... | 35,494 |
public void addBinding(Binding binding) { super.addBinding(binding); if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) { localDurableCount++; } } | public void addBinding(Binding binding) { super.addBinding(binding); if (binding.getNodeId() == thisNode && binding.getQueue().isRecoverable()) { localDurableCount++; } } | 35,496 |
public boolean removeBinding(Binding binding) { boolean removed = super.removeBinding(binding); if (!removed) { return false; } if (binding.getNodeId().equals(thisNode) && binding.getQueue().isRecoverable()) { localDurableCount--; } ret... | public boolean removeBinding(Binding binding) { boolean removed = super.removeBinding(binding); if (!removed) { return false; } if (binding.getNodeId() == thisNode && binding.getQueue().isRecoverable()) { localDurableCount--; } return t... | 35,497 |
public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { return new CustomPortView(cell); } else if(model.isEdge(cell)) { CustomEdgeView view = (CustomEdgeView)edgeMap.get(cell); if(view == null) { view = new CustomEdgeView(cell); edgeMap.p... | public CellView createView(GraphModel model, Object cell) { if(model.isPort(cell)) { WorkflowPort port = (WorkflowPort)cell; if(port.getIndex() == 0) return new CustomPortView(cell); return new PortView(cell); } else if(model.isEdge(cell)) { CustomEdgeView view = (CustomEdgeView)edgeMap.get(... | 35,500 |
protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); setupDestinations(); final String defaultSecurityConfig = "<security><role name=\"def\" read=\"true\" write=\"true\" create=\"true\"/></security>"; oldDefaultConfig = ServerManageme... | protected void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); setupDestinations(); final String defaultSecurityConfig = "<security><role name=\"def\" read=\"true\" write=\"true\" create=\"true\"/></security>"; oldDefaultConfig = ServerManageme... | 35,501 |
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub... | private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub... | 35,502 |
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub... | private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub... | 35,503 |
private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub... | private void setupDestinations() throws Exception { ServerManagement.undeployQueue("testQueue"); ServerManagement.deployQueue("testQueue"); final String testQueueConf = "<security>" + "<role name=\"guest\" read=\"true\" write=\"true\"/>" + "<role name=\"pub... | 35,504 |
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | 35,505 |
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | 35,506 |
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | 35,507 |
public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | public void testReceive2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); s.createConsumer(queue); conn.start(); MessageProducer p = s.createProducer(queue)... | 35,508 |
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ... | public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); for (int i = 0; i < count; i++) { Message m = producerSession.createMessage(); ... | 35,509 |
public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicProducer.send(m); } catch(Exception e) { log.error(e); } ... | public void run() { try { // this is needed to make sure the main thread has enough time to block Thread.sleep(1000); topicProducer.send(m1); } catch(Exception e) { log.error(e); } ... | 35,511 |
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | 35,512 |
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | 35,513 |
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | 35,514 |
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | 35,515 |
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); ... | 35,516 |
public void testSendMessageAndCloseConsumer2() throws Exception { // create my consumer from scratch consumerConnection.close(); TextMessage tm = producerSession.createTextMessage(); tm.setText("One"); queueProducer.send(tm); tm.setText("Two"); queueProducer.send(tm);... | public void testSendMessageAndCloseConsumer2() throws Exception { // create my consumer from scratch consumerConnection.close(); TextMessage tm = producerSession.createTextMessage(); tm.setText("One"); queueProducer.send(tm); tm.setText("Two"); queueProducer.send(tm);... | 35,517 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.