rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public WorkflowDescriptor createWorkflowDescriptor() { return new WorkflowDescriptor(); | public WorkflowDescriptor createWorkflowDescriptor(Element root) { return new WorkflowDescriptor(root); | public WorkflowDescriptor createWorkflowDescriptor() { return new WorkflowDescriptor(); } |
throw new FactoryException("Unknown workflow name \"" + name + "\""); | throw new FactoryException("Unknown workflow name \"" + name + '\"'); | public WorkflowDescriptor getWorkflow(String name, boolean validate) throws FactoryException { WorkflowConfig c = (WorkflowConfig) workflows.get(name); if (c == null) { throw new FactoryException("Unknown workflow name \"" + name + "\""); } if (c.descriptor != null) { ... |
ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; | public void initDone() throws FactoryException { reload = getProperties().getProperty("reload", "false").equals("true"); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; String name = getProperties().getProperty("resource", "workflows.xml")... | |
if ((name != null) && (name.indexOf(":/") > -1)) { try { is = new URL(name).openStream(); } catch (Exception e) { } } if (is == null) { try { is = classLoader.getResourceAsStream(name); } catch (Exception e) { } } if (is == null) { try { is = classLoader.getResourceAsStream("/" + name); } catch (Exception e) { } } i... | InputStream is = getInputStream(name); | public void initDone() throws FactoryException { reload = getProperties().getProperty("reload", "false").equals("true"); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; String name = getProperties().getProperty("resource", "workflows.xml")... |
WorkflowConfig config = new WorkflowConfig(e.getAttribute("type"), e.getAttribute("location")); | WorkflowConfig config = new WorkflowConfig(basedir, e.getAttribute("type"), e.getAttribute("location")); | public void initDone() throws FactoryException { reload = getProperties().getProperty("reload", "false").equals("true"); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = null; String name = getProperties().getProperty("resource", "workflows.xml")... |
Queue p = new Queue(0, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); | Queue p = new Queue(0, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); | public void testPaging() throws Exception { Queue p = new Queue(0, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); CoreMessage m = null; m = CoreMessageFactory.createCoreMessage(0); p.handle(null, ms.reference(m), null); m = CoreMessageFactory.createCoreMessage(1); p.han... |
if (trace) { log.trace(this + " invoking " + methodName); } | public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkClosingAlread... | |
Uu.p("resolved URI to: " + uri); | 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... | |
if (mayHaveFirstLine(parentStyle)) { | c.pushStyle(parentStyle); if (mayHaveFirstLine(c.getCurrentStyle())) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (mayHaveFirstLetter(parentStyle)) { | if (mayHaveFirstLetter(c.getCurrentStyle())) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isTableDescendant(style)) { | if (isTableDescendant(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isHidden(style)) { | if (isHidden(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isAbsoluteOrFixed(style)) { | if (isAbsoluteOrFixed(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isFloated(style)) { | if (isFloated(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isInlineBlock(style)) { | if (isInlineBlock(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isRunIn(style)) { | if (isRunIn(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isTable(style)) { | if (isTable(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
if (isBlockLevel(style)) { | if (isBlockLevel(currentStyle)) { | static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element parentEle... |
public static boolean isAbsoluteOrFixed(CascadedStyle style) { | public static boolean isAbsoluteOrFixed(CalculatedStyle style) { | public static boolean isAbsoluteOrFixed(CascadedStyle style) { IdentValue position = style.getIdent(CSSName.POSITION); return position != null && (position == IdentValue.ABSOLUTE || position == IdentValue.FIXED); } |
public static boolean isBlockLevel(CascadedStyle style) { | public static boolean isBlockLevel(CalculatedStyle style) { | public static boolean isBlockLevel(CascadedStyle style) { if (style == null) { return false; } IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null && (display == IdentValue.BLOCK || display == IdentValue.LIST_ITEM || display == IdentValue.TABLE); } |
public static boolean isFloated(CascadedStyle style) { | public static boolean isFloated(CalculatedStyle style) { | public static boolean isFloated(CascadedStyle style) { if (style == null) { return false; } IdentValue floatVal = style.getIdent(CSSName.FLOAT); return floatVal != null && (floatVal == IdentValue.LEFT || floatVal == IdentValue.RIGHT); } |
public static boolean isHidden(CascadedStyle style) { | public static boolean isHidden(CalculatedStyle style) { | public static boolean isHidden(CascadedStyle style) { IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null && display == IdentValue.NONE; } |
public static boolean isInlineBlock(CascadedStyle style) { | public static boolean isInlineBlock(CalculatedStyle style) { | public static boolean isInlineBlock(CascadedStyle style) { IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null && display == IdentValue.INLINE_BLOCK; } |
public static boolean isListItem(CascadedStyle style) { | public static boolean isListItem(CalculatedStyle style) { | public static boolean isListItem(CascadedStyle style) { if (style == null) { return false; } IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null && display == IdentValue.LIST_ITEM; } |
public static boolean isRunIn(CascadedStyle style) { | public static boolean isRunIn(CalculatedStyle style) { | public static boolean isRunIn(CascadedStyle style) { IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null && display == IdentValue.RUN_IN; } |
public static boolean isTable(CascadedStyle style) { | public static boolean isTable(CalculatedStyle style) { | public static boolean isTable(CascadedStyle style) { IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null && display == IdentValue.TABLE; } |
public static boolean isTableDescendant(CascadedStyle style) { | public static boolean isTableDescendant(CalculatedStyle style) { | public static boolean isTableDescendant(CascadedStyle style) { IdentValue display = style.getIdent(CSSName.DISPLAY); if (display == null) return false; if (display == IdentValue.TABLE) return false; if (display.toString().startsWith("table")) return true; return false; } |
public static boolean mayHaveFirstLetter(CascadedStyle style) { | public static boolean mayHaveFirstLetter(CalculatedStyle style) { | public static boolean mayHaveFirstLetter(CascadedStyle style) { // ASK: why use CascadedStyle here, instead of Calculated? (PWW 25-01-05) if (style == null) { return false; }//for DomToplevelNode IdentValue display = style.getIdent(CSSName.DISPLAY); return display != nu... |
public static boolean mayHaveFirstLine(CascadedStyle style) { | public static boolean mayHaveFirstLine(CalculatedStyle style) { | public static boolean mayHaveFirstLine(CascadedStyle style) { // ASK: why use CascadedStyle here, instead of Calculated? (PWW 25-01-05) if (style == null) { return false; }//for DomToplevelNode IdentValue display = style.getIdent(CSSName.DISPLAY); return display != null... |
dispatcher.setDownloader("http", URLHandlerRegistry.getHttp(getRealm(), getHost(), getUsername(), getPasswd())); | URLHandler httpHandler = URLHandlerRegistry.getHttp(getRealm(), getHost(), getUsername(), getPasswd()); dispatcher.setDownloader("http", httpHandler); dispatcher.setDownloader("https", httpHandler); | private void configureURLHandler() { URLHandlerDispatcher dispatcher = new URLHandlerDispatcher(); dispatcher.setDownloader("http", URLHandlerRegistry.getHttp(getRealm(), getHost(), getUsername(), getPasswd())); URLHandlerRegistry.setDefault(dispatcher); } |
{ if (viewport != null) remove(viewport); viewport = v; add(v); revalidate(); repaint(); } | { JViewport old = viewport; removeNonNull(old); viewport = v; addNonNull(v); revalidate(); repaint(); firePropertyChange(VIEWPORT_CHANGED_PROPERTY, old, v); sync(); } | public void setViewport(JViewport v) { if (viewport != null) remove(viewport); viewport = v; add(v); revalidate(); repaint(); } |
if (view != null) { getViewport().setView(view); } } | if (view != null) { getViewport().setView(view); } sync(); } | public void setViewportView(Component view) { if (getViewport() == null) { setViewport(createViewport()); } if (view != null) { getViewport().setView(view); } } |
JViewport() { setOpaque(true); updateUI(); } | public JViewport() { setOpaque(true); updateUI(); } | JViewport() { setOpaque(true); updateUI(); } |
panel.setSize(dim); | if (dim != null) { panel.setSize(dim); } | public void layout(Graphics2D g2, Dimension dim) { this.dim = dim; panel.setSize(dim); panel.doActualLayout(g2); } |
Context c = newContext((Graphics2D) g); | Context c = newContext(pageInfo, (Graphics2D) g); | public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext((Graphics2D) g); synchronized (this) { if (... |
bh = new org.xhtmlrenderer.layout.BoxHolder(); | public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext((Graphics2D) g); synchronized (this) { if (... | |
body_box = Boxing.layout(c, new DomToplevelNode(doc), bh); | Box root = Boxing.preLayout(c, new DomToplevelNode(doc)); setRootBox(root); Boxing.realLayout(c, root, new DomToplevelNode(doc)); | public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext((Graphics2D) g); synchronized (this) { if (... |
public abstract ImageReader createReaderInstance(Object extension) throws IOException; | public ImageReader createReaderInstance() throws IOException { return createReaderInstance(null); } | public abstract ImageReader createReaderInstance(Object extension) throws IOException; |
public abstract ImageWriter createWriterInstance(Object extension) throws IOException; | public ImageWriter createWriterInstance() throws IOException { return createWriterInstance(null); } | public abstract ImageWriter createWriterInstance(Object extension) throws IOException; |
public void setInput(Object in) | public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata) | public void setInput(Object in) { setInput(in, false, false); } |
setInput(in, false, false); | Class[] okClasses = originatingProvider.getInputTypes(); if (okClasses == null) { if (!(input instanceof ImageInputStream)) throw new IllegalArgumentException(); } else { boolean classOk = false; for (int i = 0; i < okClasses.length; ++i) if (okClasses[i].isInstance(input)) classOk = true; if (!classOk) throw new Illeg... | public void setInput(Object in) { setInput(in, false, false); } |
public PermissionCollection getPermissions(CodeSource codesource) { final Permissions perms = new Permissions(); perms.add(allPermission); return perms; } | public PermissionCollection getPermissions(CodeSource codesource) { Permissions perms = new Permissions(); perms.add(allPermission); return perms; } | public PermissionCollection getPermissions(CodeSource codesource) { final Permissions perms = new Permissions(); perms.add(allPermission); return perms; } |
public void bind(Name name, Object obj, Attributes attrs) throws NamingException; | void bind(Name name, Object obj, Attributes attrs) throws NamingException; | public void bind(Name name, Object obj, Attributes attrs) throws NamingException; |
public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException; | DirContext createSubcontext(Name name, Attributes attrs) throws NamingException; | public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException; |
public Attributes getAttributes (String name) throws NamingException; | Attributes getAttributes (String name) throws NamingException; | public Attributes getAttributes (String name) throws NamingException; |
public DirContext getSchema(Name name) throws NamingException; | DirContext getSchema(Name name) throws NamingException; | public DirContext getSchema(Name name) throws NamingException; |
public DirContext getSchemaClassDefinition(Name name) throws NamingException; | DirContext getSchemaClassDefinition(Name name) throws NamingException; | public DirContext getSchemaClassDefinition(Name name) throws NamingException; |
public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException; | void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException; | public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException; |
public void rebind(Name name, Object obj, Attributes attrs) throws NamingException; | void rebind(Name name, Object obj, Attributes attrs) throws NamingException; | public void rebind(Name name, Object obj, Attributes attrs) throws NamingException; |
public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException; | NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException; | public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException; |
final VmCompiledCode cc = sfMethod.getCompiledCode(); | final VmCompiledCode cc = sfMethod.getCompiledCode(getMagic()); | public final int getLineNr() { if (isInterpreted()) { final VmByteCode bc = sfMethod.getBytecode(); if (bc != null) { return bc.getLineNr(sfPc - 1); } else { return -1; } } else { final VmCompiledCode cc = sfMethod.getCompiledCode(); if ((cc != null) && (sfInstructionPointer != null)) { return c... |
return (sfMagic == MAGIC_INTERPRETED); | return ((sfMagic & MAGIC_MASK) == MAGIC_INTERPRETED); | protected final boolean isInterpreted() { return (sfMagic == MAGIC_INTERPRETED); } |
return Unsafe.getInt(sf, getMagicOffset(sf)) & VmStackFrame.MAGIC_MASK; | return Unsafe.getInt(sf, getMagicOffset(sf)); | final int getMagic(Address sf) { return Unsafe.getInt(sf, getMagicOffset(sf)) & VmStackFrame.MAGIC_MASK; } |
public final VmCompiledCode getCompiledCode() { return compiledCode; | public final VmCompiledCode getCompiledCode(int magic) { final VmCompiledCode c = compiledCode; if (c != null) { return c.lookup(magic); } else { return null; } | public final VmCompiledCode getCompiledCode() { return compiledCode; } |
String sessionId = (String)mi.getMetaData(MetaDataConstants.JMS, MetaDataConstants.REMOTING_SESSION_ID); if (sessionId == null) { throw new IllegalStateException("Can't find session id"); } endpoint.setRemotingClientSessionId(sessionId); | public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; ServerInvokerCallbackHandler handler = (ServerInvokerCallbackHandler)mi.getMetaData(MetaDataConstants.JMS, ... | |
System.out.println("CLASS: InetAddress: InetAddress()"); | System.out.println("CLASS: InetAddress.InetAddress()"); | InetAddress() { System.out.println("CLASS: InetAddress: InetAddress()"); } |
System.out.println("CLASS: InetAddress: equals()"); | System.out.println("CLASS: InetAddress.equals()"); | public boolean equals(Object obj) { System.out.println("CLASS: InetAddress: equals()"); if ( (obj != null) && (obj instanceof InetAddress) ) { byte addr[] = ((InetAddress)obj).getAddress(); if ( (addr == address) && (addr.length == address.length) ) return true; } return false; } |
if ( (addr == address) && (addr.length == address.length) ) | if ( addr.length == address.length ) { for (int i = 0; i < address.length; i++) { if (address[i] != addr[i]) { return false; } } | public boolean equals(Object obj) { System.out.println("CLASS: InetAddress: equals()"); if ( (obj != null) && (obj instanceof InetAddress) ) { byte addr[] = ((InetAddress)obj).getAddress(); if ( (addr == address) && (addr.length == address.length) ) return true; } return false; } |
} | } } | public boolean equals(Object obj) { System.out.println("CLASS: InetAddress: equals()"); if ( (obj != null) && (obj instanceof InetAddress) ) { byte addr[] = ((InetAddress)obj).getAddress(); if ( (addr == address) && (addr.length == address.length) ) return true; } return false; } |
System.out.println("CLASS: InetAddress: getAddress()"); | System.out.println("CLASS: InetAddress.getAddress()"); | public byte[] getAddress() { System.out.println("CLASS: InetAddress: getAddress()"); return address; } |
System.out.println("CLASS: InetAddress: getAllByName("+host+")[]"); | System.out.println("CLASS: InetAddress.getAllByName("+host+")[]"); | public static InetAddress getAllByName(String host)[] throws UnknownHostException { System.out.println("CLASS: InetAddress: getAllByName("+host+")[]"); if (host == null || host.length() == 0) { throw new UnknownHostException(host == null ? "Null string" : host); } /* check if host is IP address */ byte[] ... |
System.out.println("CLASS: InetAddress: getByName("+host+")"); | System.out.println("CLASS: InetAddress.getByName("+host+")"); | public static InetAddress getByName(String host) throws UnknownHostException { System.out.println("CLASS: InetAddress: getByName("+host+")"); if ( (host == null) || (host.length() == 0) ) { return loopbackHost; } else { byte[] addr = pton(host); if (addr != null) { return new InetAddress(null, addr); ... |
System.out.println("CLASS: InetAddress: getHostAddress()"); | System.out.println("CLASS: InetAddress.getHostAddress()"); | public String getHostAddress() { int len = address.length; /* allocate room for result */ /* defined in <netinet/in.h> INET6_ADDRSTRLEN = 46 */ StringBuffer addrBuffer = new StringBuffer(46); System.out.println("CLASS: InetAddress: getHostAddress()"); /* We have an IPv6 address. * Return full address for n... |
System.out.println("CLASS: InetAddress: getHostName()"); | System.out.println("CLASS: InetAddress.getHostName()"); | public String getHostName() { System.out.println("CLASS: InetAddress: getHostName()"); if (hostName == null) { try { hostName = getHostByAddress(address); } catch (UnknownHostException he) { hostName = getHostAddress(); } } return hostName; } |
System.out.println("CLASS: InetAddress: getLocalHost()"); | System.out.println("CLASS: InetAddress.getLocalHost()"); | public static InetAddress getLocalHost() throws UnknownHostException { System.out.println("CLASS: InetAddress: getLocalHost()"); SecurityManager s = System.getSecurityManager(); /* need to check if they are allowed to to do this */ if (localHost == null) { String host = getLocalHostName(); if (s != null) ... |
System.out.println("CLASS: InetAddress: hashCode()"); | System.out.println("CLASS: InetAddress.hashCode()"); | public int hashCode() { System.out.println("CLASS: InetAddress: hashCode()"); int hash = 0; int i = 0; int len = address.length; if (len == 16) { /* only want the last 4 bytes of IPv6 address */ i = len - 4; } for ( ; i < len; i++) hash = (hash << 8) | (address[i] & 0xFF); return hash; } |
System.out.println("CLASS: InetAddress: isMulticastAddress()"); | System.out.println("CLASS: InetAddress.isMulticastAddress()"); | public boolean isMulticastAddress() { System.out.println("CLASS: InetAddress: isMulticastAddress()"); int len = address.length; /* IPv4 address check for class D address */ if (len == 4) return ((address[0] & 0xF0) == 0xE0); /* IPv6 address check */ if (len == 16) return (address[0] == (byte) 0xFF); /... |
System.out.println("CLASS: InetAddress: toString()"); | System.out.println("CLASS: InetAddress.toString()"); | public String toString() { System.out.println("CLASS: InetAddress: toString()"); return getHostName() + "/" + getHostAddress(); } |
if (box.x + box.width > c.getExtents().width && box.width <= c.getExtents().width) { | if (box.clear_left || (box.x + box.width > c.getExtents().width && box.width <= c.getExtents().width)) { | private static void positionBoxLeft(Context c, Box box) { //Uu.p("positionBoxLeft()"); //Uu.dump_stack(); //Uu.p("calling the new float routine"); //Uu.p("starting box = " + box); BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.newGetLeftFloatX(box); ... |
box.y = floater.y + floater.height; | Point floaterOffset = c.getBlockFormattingContext().getOffset(floater); box.y = floater.y - floaterOffset.y + floater.height; | private static void positionBoxLeft(Context c, Box box) { //Uu.p("positionBoxLeft()"); //Uu.dump_stack(); //Uu.p("calling the new float routine"); //Uu.p("starting box = " + box); BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.newGetLeftFloatX(box); ... |
if (box.x < 0 && box.width <= c.getExtents().width) { | if (box.clear_right || (box.x < 0 && box.width <= c.getExtents().width)) { | private static void positionBoxRight(Context c, Box box) { BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.getRightFloatX(box); if (floater == null) { // Uu.p("floaters are null"); // Uu.p("extents = " + c.getExtents().width); box.x... |
box.y = floater.y + floater.height; | Point floaterOffset = c.getBlockFormattingContext().getOffset(floater); box.y = floater.y - floaterOffset.y + floater.height; | private static void positionBoxRight(Context c, Box box) { BlockFormattingContext bfc = c.getBlockFormattingContext(); Box floater = bfc.getRightFloatX(box); if (floater == null) { // Uu.p("floaters are null"); // Uu.p("extents = " + c.getExtents().width); box.x... |
} if (floatVal == IdentValue.RIGHT) { | } else if (floatVal == IdentValue.RIGHT) { | public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { return; ... |
drainDestination(cf, queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Serv... | |
valid = new Boolean(TV1.equals(Util.toString(result))); | valid = Boolean.valueOf(TV1.equals(Util.toString(result))); | public boolean selfTest() { if (valid == null) { byte[] key; try { key = "abcdefghijklmnop".getBytes("ASCII"); } catch (UnsupportedEncodingException x) { throw new RuntimeException("ASCII not supported"); } byte[] nonce = n... |
return "JComboBox"; | String superParamStr = super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(",isEditable=").append(isEditable()); sb.append(",lightWeightPopupEnabled=").append(isLightWeightPopupEnabled()); sb.append(",maximumRowCount=").append(getMaximumRowCount()); sb.append(",selectedItemReminder="); if (selectedIte... | protected String paramString() { return "JComboBox"; } |
public DefaultComboBoxModel(Object[] items) | public DefaultComboBoxModel() | public DefaultComboBoxModel(Object[] items) { list = new Vector(Arrays.asList(items)); if (list.size() > 0) selectedItem = list.get(0); } |
list = new Vector(Arrays.asList(items)); if (list.size() > 0) selectedItem = list.get(0); | list = new Vector(); | public DefaultComboBoxModel(Object[] items) { list = new Vector(Arrays.asList(items)); if (list.size() > 0) selectedItem = list.get(0); } |
public abstract boolean isPopupVisible(JComboBox combobox); | public abstract boolean isPopupVisible(JComboBox c); | public abstract boolean isPopupVisible(JComboBox combobox); |
public abstract void setPopupVisible(JComboBox combobox, boolean visible); | public abstract void setPopupVisible(JComboBox c, boolean visible); | public abstract void setPopupVisible(JComboBox combobox, boolean visible); |
5000, 5000, pullPolicy, rf, 1); | 5000, 5000, pullPolicy, rf, 1, 1000); | protected ClusteredPostOffice createClusteredPostOffice(String nodeId, String groupName) throws Exception { MessagePullPolicy pullPolicy = new NullMessagePullPolicy(); FilterFactory ff = new SimpleFilterFactory(); ClusterRouterFactory rf = new DefaultRouterFactory(); DefaultCl... |
List msgs = sendMessages(persistent, office1, 3, null); | List msgs = sendMessages("topic", persistent, office1, 3, null); | protected void routeComplexTopic(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; Clu... |
msgs = sendMessages(persistent, office2, 3, null); | msgs = sendMessages("topic", persistent, office2, 3, null); | protected void routeComplexTopic(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; Clu... |
msgs = sendMessages(persistent, office3, 3, null); | msgs = sendMessages("topic", persistent, office3, 3, null); | protected void routeComplexTopic(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; Clu... |
msgs = sendMessages(persistent, office4, 3, null); | msgs = sendMessages("topic", persistent, office4, 3, null); | protected void routeComplexTopic(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; Clu... |
msgs = sendMessages(persistent, office5, 3, null); | msgs = sendMessages("topic", persistent, office5, 3, null); | protected void routeComplexTopic(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; Clu... |
msgs = sendMessages(persistent, office6, 3, null); | msgs = sendMessages("topic", persistent, office6, 3, null); | protected void routeComplexTopic(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; Clu... |
msgs = sendMessages(persistent, office7, 3, null); | msgs = sendMessages("topic", persistent, office7, 3, null); | protected void routeComplexTopic(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; Clu... |
log.info("*** found it"); | log.trace("*** found it"); | public void acknowledge(Routable r, Transaction tx) throws Throwable { log.debug(this + " acknowledging " + r); Object[] touple = null; Delivery d = null; for (Iterator i = messages.iterator(); i.hasNext(); ) { Object[] o = (Object[])i.next(); Message m = (Message)o[0]; ... |
log.info(this + " acknowledged " + r); | log.trace(this + " acknowledged " + r); | public void acknowledge(Routable r, Transaction tx) throws Throwable { log.debug(this + " acknowledging " + r); Object[] touple = null; Delivery d = null; for (Iterator i = messages.iterator(); i.hasNext(); ) { Object[] o = (Object[])i.next(); Message m = (Message)o[0]; ... |
sc = new ServiceContainer("all"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), null, true, true, true, 100); pm.start(); tr = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm)); tr.start(); ms = new SimpleMessageStore(); ms.start(); pool = new Queu... | 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.... | |
{ if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); | { | public void tearDown() throws Exception { if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); super.tearDown(); } |
if (messageSelector != null) | if (this.destination.isQueue()) | public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (accept) { if (noLoca... |
accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } | if (messageSelector != null) { accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } | public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (accept) { if (noLoca... |
public Box(Box box) { this(); x = box.x; y = box.y; width = box.width; height = box.height; setNode(box.getNode()); setContent(box.getContent()); border = box.border; margin = box.margin; padding = box.padding; color = box.color; | public Box() { this(true); | public Box(Box box) { this(); x = box.x; y = box.y; width = box.width; height = box.height; setNode(box.getNode()); setContent(box.getContent()); border = box.border; margin = box.margin; padding = box.padding; color = box.color; } |
return bd_color; | return border_color; | public BorderColor getBorderColor() { return bd_color; } |
sb.append("-content:" + this.getContent()); | public String getTestString() { StringBuffer sb = new StringBuffer(); // type if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { sb.append("box:"); } // element ... | |
sb.append("-bor" + getColorTestString(border_color)); | public String getTestString() { StringBuffer sb = new StringBuffer(); // type if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { sb.append("box:"); } // element ... | |
sb.append("-value:" + this.getClosestNode().getNodeValue()); | public String getTestString() { StringBuffer sb = new StringBuffer(); // type if (this instanceof LineBox) { sb.append("line:"); } else if (this instanceof InlineBox) { sb.append("inline:"); } else { sb.append("box:"); } // element ... | |
if (getContent() == null) { | /*if (getContent() == null) { | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Box: "); if (getContent() == null) { sb.append(" null content, "); } else { sb.append(getContent().getClass().getName() + " (" + getContent().hashCode() + ")"); } sb.append(" (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.