bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,034 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,035 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,036 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,037 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,038 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,039 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,040 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,041 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,042 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,043 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,044 |
public static void setupVerticalAlign(Context c, Node node, InlineBox box) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if(node.getNodeType() == node.TEXT_NODE... | publicstaticvoidsetupVerticalAlign(Contextc,Nodenode,InlineBoxbox){//u.p("setupverticalalign:node="+node+"box="+box);//gettheparentnodeforstylingNodeparent=node.getParentNode();//u.p("parent="+parent);Elementelem=null;if(node.getNodeType()==node.TEXT_NODE){parent=parent.getParentNode();elem=(Element)node.getParentNode(... | 47,045 |
public DeliveryRunnable(MessageDelegate msg, Client callbackClient, int consumerID, boolean trace) { this.msg = msg; this.callbackClient = callbackClient; this.consumerID = consumerID; this.trace = trace; } | public DeliveryRunnable(MessageDelegate msg, int consumerID, ServerConnectionEndpoint connection, boolean trace) { this.msg = msg; this.callbackClient = callbackClient; this.consumerID = consumerID; this.trace = trace; } | 47,046 |
public DeliveryRunnable(MessageDelegate msg, Client callbackClient, int consumerID, boolean trace) { this.msg = msg; this.callbackClient = callbackClient; this.consumerID = consumerID; this.trace = trace; } | public DeliveryRunnable(MessageDelegate msg, Client callbackClient, int consumerID, boolean trace) { this.msg = msg; this.connection = connection; this.consumerID = consumerID; this.trace = trace; } | 47,047 |
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } callbackClient.invoke(this); } catch(Throwable t) { log.warn("Failed to deliver the message to the client, perhaps the client consumer has cl... | public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } connection.getCallbackClient().invoke(this); } catch(Throwable t) { log.warn("Failed to deliver the message to the client, perhaps the client... | 47,048 |
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } callbackClient.invoke(this); } catch(Throwable t) { log.warn("Failed to deliver the message to the client, perhaps the client consumer has cl... | public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } callbackClient.invoke(this); } catch(Throwable t) { log.warn("Failed to deliver the message to the client, clearing up connection resources",... | 47,049 |
public void caretUpdate(CaretEvent event); | public void caretUpdate(CaretEvent event); | 47,050 |
public void addPropertyChangeListener(PropertyChangeListener listener) { // TODO } // addPropertyChangeListener() | public void addPropertyChangeListener(PropertyChangeListener listener) { // TODO } // addPropertyChangeListener() | 47,051 |
public void installUI(JComponent c) { super.installUI(c); popupMenu = (JPopupMenu) c; popupMenu.setLayout(new GridBagLayout()); popupMenu.setBorderPainted(true); JPopupMenu.setDefaultLightWeightPopupEnabled(true); installDefaults(); installListeners(); } | public void installUI(JComponent c) { super.installUI(c); popupMenu = (JPopupMenu) c; popupMenu.setLayout(new DefaultMenuLayout(popupMenu, BoxLayout.Y_AXIS)); popupMenu.setBorderPainted(true); JPopupMenu.setDefaultLightWeightPopupEnabled(true); installDefaults(); installListeners(); } | 47,053 |
public boolean isPopupTrigger(MouseEvent event) { return false; // TODO } // isPopupTrigger() | public boolean isPopupTrigger(MouseEvent event) { return false; // TODO } // isPopupTrigger() | 47,054 |
public Object handleCreateBytesMessage(Invocation invocation) throws Throwable { JBossBytesMessage jbm = new JBossBytesMessage((String)null); jbm.setOrdering(ordering++); return new BytesMessageDelegate(jbm); } | public Object handleCreateBytesMessage(Invocation invocation) throws Throwable { JBossBytesMessage jbm = new JBossBytesMessage((String)null); jbm.setOrdering(ordering++); return new BytesMessageDelegate(jbm, 0); } | 47,055 |
public Object handleCreateMapMessage(Invocation invocation) throws Throwable { JBossMapMessage jbm = new JBossMapMessage((String)null); jbm.setOrdering(ordering++); return new MapMessageDelegate(jbm); } | public Object handleCreateMapMessage(Invocation invocation) throws Throwable { JBossMapMessage jbm = new JBossMapMessage((String)null); jbm.setOrdering(ordering++); return new MapMessageDelegate(jbm, 0); } | 47,056 |
public Object handleCreateMessage(Invocation invocation) throws Throwable { JBossMessage jbm = new JBossMessage((String)null); jbm.setOrdering(ordering++); return new MessageDelegate(jbm); } | public Object handleCreateMessage(Invocation invocation) throws Throwable { JBossMessage jbm = new JBossMessage((String)null); jbm.setOrdering(ordering++); return new MessageDelegate(jbm, 0); } | 47,057 |
public Object handleCreateObjectMessage(Invocation invocation) throws Throwable { JBossObjectMessage jbm = new JBossObjectMessage((String)null); jbm.setOrdering(ordering++); MethodInvocation mi = (MethodInvocation)invocation; if (mi.getArguments() != null) { jbm.s... | public Object handleCreateObjectMessage(Invocation invocation) throws Throwable { JBossObjectMessage jbm = new JBossObjectMessage((String)null); jbm.setOrdering(ordering++); MethodInvocation mi = (MethodInvocation)invocation; if (mi.getArguments() != null) { jbm.s... | 47,058 |
public Object handleCreateStreamMessage(Invocation invocation) throws Throwable { JBossStreamMessage jbm = new JBossStreamMessage((String)null); jbm.setOrdering(ordering++); return new StreamMessageDelegate(jbm); } | public Object handleCreateStreamMessage(Invocation invocation) throws Throwable { JBossStreamMessage jbm = new JBossStreamMessage((String)null); jbm.setOrdering(ordering++); return new StreamMessageDelegate(jbm, 0); } | 47,059 |
public Object handleCreateTextMessage(Invocation invocation) throws Throwable { JBossTextMessage jbm = new JBossTextMessage((String)null); jbm.setOrdering(ordering++); MethodInvocation mi = (MethodInvocation)invocation; if (mi.getArguments() != null) { jbm.setText... | public Object handleCreateTextMessage(Invocation invocation) throws Throwable { JBossTextMessage jbm = new JBossTextMessage((String)null); jbm.setOrdering(ordering++); MethodInvocation mi = (MethodInvocation)invocation; if (mi.getArguments() != null) { jbm.setText... | 47,060 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); if (target != null && target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different... | private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event ... | 47,061 |
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); if (target != null && target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different... | privatebooleanhandleMouseEvent(MouseEventev){Windowwindow=(Window)ev.getSource();Componenttarget=window.findComponentAt(ev.getX(),ev.getY());if(target!=null&&target.isLightweight()){//DispatchadditionalMOUSE_EXITEDandMOUSE_ENTEREDifeventtarget//isdifferentfromthelasteventtarget.if(target!=lastTarget){if(lastTarget!=nul... | 47,062 |
private Configuration() { startupLogRecords = new ArrayList(); try { // read logging level from System properties String val = null; try { val = System.getProperty("show-config"); } catch (Exception ex) { System.out.println("err... | private Configuration() { startupLogRecords = new ArrayList(); try { // read logging level from System properties String val = null; try { val = System.getProperty("show-config"); } catch (Exception ex) { System.out.println("err... | 47,064 |
private void info(String msg) { System.out.println("log level = " + logLevel);/* if (logLevel.intValue() <= Level.INFO.intValue()) { println(Level.INFO, msg); }*/ } | private void info(String msg) { if (logLevel.intValue() <= Level.INFO.intValue()) { println(Level.INFO, msg); }*/ } | 47,065 |
private void info(String msg) { System.out.println("log level = " + logLevel);/* if (logLevel.intValue() <= Level.INFO.intValue()) { println(Level.INFO, msg); }*/ } | private void info(String msg) { System.out.println("log level = " + logLevel);/* if (logLevel.intValue() <= Level.INFO.intValue()) { println(Level.INFO, msg); } } | 47,066 |
protected ClusteredPostOffice createClusteredPostOffice(String nodeId, String groupName) throws Exception { MessagePullPolicy pullPolicy = new DefaultMessagePullPolicy(); FilterFactory ff = new SimpleFilterFactory(); ClusterRouterFactory rf = new DefaultRouterFactory(); Defaul... | protected ClusteredPostOffice createClusteredPostOffice(int nodeId, String groupName) throws Exception { MessagePullPolicy pullPolicy = new DefaultMessagePullPolicy(); FilterFactory ff = new SimpleFilterFactory(); ClusterRouterFactory rf = new DefaultRouterFactory(); DefaultCl... | 47,067 |
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | 47,068 |
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | 47,069 |
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | 47,070 |
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | 47,071 |
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | 47,072 |
public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | public void redistTest(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; try ... | 47,073 |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (... | 47,075 |
public void redeliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "delivery requested on " + this); } redeliver(this, r); } | public boolean redeliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "delivery requested on " + this); } redeliver(this, r); } | 47,076 |
public void redeliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "delivery requested on " + this); } redeliver(this, r); } | public void redeliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "delivery requested on " + this); } redeliver(this, r); } | 47,077 |
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT); Interpreter i = new Interpreter(); ClassLoader loader = Thread.currentThread().getContextClassLoader(); try { ... | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) throws WorkflowException { String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT); Interpreter i = new Interpreter(); ClassLoader loader = Thread.currentThread().getContextClassLoader(... | 47,078 |
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT); Interpreter i = new Interpreter(); ClassLoader loader = Thread.currentThread().getContextClassLoader(); try { ... | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String script = (String) args.get(AbstractWorkflow.BSH_SCRIPT); Interpreter i = new Interpreter(); ClassLoader loader = Thread.currentThread().getContextClassLoader(); try { ... | 47,079 |
public ConfigurationException() { super(); } | public ConfigurationException() { super(); } | 47,080 |
public void addIDBox(String id, Box box) { this.sharedContext.addIDBox(id,box); } | public void addIDBox(String id, Box box) { this.sharedContext.addIDBox(id,box); } | 47,081 |
public Box getIDBox(String id) { return this.sharedContext.getIDBox(id); } | public Box getIDBox(String id) { return this.sharedContext.getIDBox(id); } | 47,082 |
public PolicyFile(URL defaultPolicy) { if (defaultPolicy == null) { throw new IllegalArgumentException("defaultPolicy cannot be null"); } this.defaultPolicy = defaultPolicy; cs2pc = new HashMap(); refresh(); } | public PolicyFile(URL defaultPolicy) { if (defaultPolicy == null) { throw new IllegalArgumentException("defaultPolicy cannot be null"); } this.defaultPolicy = defaultPolicy; cs2pc = new HashMap(); refresh(); } | 47,083 |
private static void error(URL base, StreamTokenizer in, String msg) throws IOException { throw new IOException(base + ":" + in.lineno() + ": " + msg); } | private static void error(URL base, StreamTokenizer in, String msg) throws IOException { throw new IOException(base + ":" + in.lineno() + ": " + msg); } | 47,084 |
public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... | public final PermissionCollection getPermissions(CodeSource codeSource) { Permissions perms = new Permissions(); for (Iterator it = cs2pc.entrySet().iterator(); it.hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); i... | 47,085 |
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... | 47,086 |
public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... | public void refresh() { cs2pc.clear(); final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() { public Object run() t... | 47,087 |
public void notificationReceived(UnsolicitedNotificationEvent evt); | public void notificationReceived(UnsolicitedNotificationEvent evt); | 47,089 |
public synchronized void addFirst(Object obj, int priority) { deque.addFirst(obj, priority); } | public synchronized boolean addFirst(Object obj, int priority) { deque.addFirst(obj, priority); } | 47,090 |
public synchronized void addFirst(Object obj, int priority) { deque.addFirst(obj, priority); } | public synchronized void addFirst(Object obj, int priority) { return deque.addFirst(obj, priority); } | 47,091 |
public synchronized void addLast(Object obj, int priority) { deque.addLast(obj, priority); } | public synchronized boolean addLast(Object obj, int priority) { deque.addLast(obj, priority); } | 47,092 |
public synchronized void addLast(Object obj, int priority) { deque.addLast(obj, priority); } | public synchronized void addLast(Object obj, int priority) { return deque.addLast(obj, priority); } | 47,093 |
protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossMessage jbm = new JBossMessage(i, reliable, System.currentTim... | protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossMessage jbm = new JBossMessage(i, reliable, System.currentTim... | 47,094 |
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; if (g2r == null) { g2r = new Graphics2DRenderer(); g2r.getSharedContext().setPrint(true); g2r.getSharedContext().setInteractive(false); ... | public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; if (g2r == null) { g2r = new Graphics2DRenderer(); g2r.getSharedContext().setPrint(true); g2r.getSharedContext().setInteractive(false); ... | 47,095 |
public int messageCount() { synchronized (refLock) { synchronized (deliveryLock) { //return messageRefs.size() + refsInStorage + deliveries.size(); return messageRefs.size() + deliveries.size(); } } } | publicintmessageCount(){synchronized(refLock){synchronized(deliveryLock){//returnmessageRefs.size()+refsInStorage+deliveries.size();returnmessageRefs.size()+deliveries.size();}}} | 47,096 |
public Object getValueAt(int rowIndex, int columnIndex) { AbstractDescriptor dd = (AbstractDescriptor)list.get(rowIndex); if (dd instanceof ConditionsDescriptor) return null; ConditionDescriptor condition = (ConditionDescriptor)list.get(rowIndex); PaletteDescriptor palette = graphModel.getPalette(... | public Object getValueAt(int rowIndex, int columnIndex) { AbstractDescriptor dd = (AbstractDescriptor)list.get(rowIndex); if (dd instanceof ConditionsDescriptor) return null; ConditionDescriptor condition = (ConditionDescriptor)list.get(rowIndex); PaletteDescriptor palette = graphModel.getPalette(... | 47,097 |
protected Client getClient() { return null; } | protected synchronized Client getClient() throws Exception { return null; } | 47,099 |
protected Client getClient() { return null; } | protected Client getClient() { if (client == null) { InvokerLocator locator = new InvokerLocator(serverLocatorURI); client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM); client.connect(); } return client; } | 47,100 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 47,101 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 47,102 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 47,103 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 47,104 |
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; setDescriptor(descriptor); if(doAutoLayout) { autoLayout(); } setSelectNewCells(true);... | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; setDescriptor(descriptor); if(doAutoLayout) { autoLayout(); } setSelectNewCells(true);... | 47,105 |
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; setDescriptor(descriptor); if(doAutoLayout) { autoLayout(); } setSelectNewCells(true);... | model.addUndoableEditListener(undoManager); model.addUndoableEditListener(undoManager); publicmodel.addUndoableEditListener(undoManager); WorkflowGraph(GraphModelmodel.addUndoableEditListener(undoManager); model,model.addUndoableEditListener(undoManager); WorkflowDescriptormodel.addUndoableEditListener(undoManager); de... | 47,106 |
public Layout getGraphLayout() { return layout; } | public Layout getGraphLayout() { return layout; } | 47,107 |
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { Receiver receiver = (Receiver)i.next(); try { ... | public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { Receiver receiver = (Receiver)i.next(); try { ... | 47,108 |
public String getPersistence() { // TODO Auto-generated method stub return null; } | publicStringgetPersistence(){//TODOAuto-generatedmethodstubreturnnull;} | 47,109 |
public Map getPersistenceArgs() { // TODO Auto-generated method stub return null; } | publicMapgetPersistenceArgs(){//TODOAuto-generatedmethodstubreturnnull;} | 47,110 |
public boolean isInitialized() { // TODO Auto-generated method stub return false; } | publicbooleanisInitialized(){//TODOAuto-generatedmethodstubreturnfalse;} | 47,111 |
public void load(URL url) throws FactoryException { // TODO Auto-generated method stub } | publicvoidload(URLurl)throwsFactoryException{//TODOAuto-generatedmethodstub} | 47,112 |
void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... | void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... | 47,113 |
void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... | void calculatePreferredSize() { int height; int width; height = width = 0; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { width += incrButton.getPreferredSize().getWidth(); width += decrButton.getPreferredSize().getWidth(); width += (scrollbar.getMaximum() - scrollbar.getMinimum()); ... | 47,114 |
protected void configureScrollBarColors() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); trackColor = defaults.getColor("ScrollBar.track"); trackHighlightColor = defaults.getColor("ScrollBar.trackHighlight"); thumbColor = defaults.getColor("ScrollBar.thumb"); thumbHighlightColor = default... | protected void configureScrollBarColors() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); trackColor = defaults.getColor("ScrollBar.track"); trackHighlightColor = defaults.getColor("ScrollBar.trackHighlight"); thumbColor = defaults.getColor("ScrollBar.thumb"); thumbHighlightColor = default... | 47,115 |
public AbstractCellEditor() { // TODO } // AbstractCellEditor() | publiclistenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); AbstractCellEditor()listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); { //listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); TODO }listenerList = new EventListenerList(); changeEvent... | 47,116 |
public void cancelCellEditing() { // TODO } // cancelCellEditing() | publicfireEditingCanceled(); voidfireEditingCanceled(); cancelCellEditing()fireEditingCanceled(); { //fireEditingCanceled(); TODO }fireEditingCanceled(); //fireEditingCanceled(); cancelCellEditing() | 47,117 |
public CellEditorListener[] getCellEditorListeners() { return (CellEditorListener[]) listenerList.getListeners (CellEditorListener.class); } | public CellEditorListener[] getCellEditorListeners() { return (CellEditorListener[]) listenerList.getListeners (CellEditorListener.class); } | 47,118 |
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable() | public boolean isCellEditable(EventObject event) { return true; // TODO } // isCellEditable() | 47,119 |
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell() | public boolean shouldSelectCell(EventObject event) { return true; // TODO } // shouldSelectCell() | 47,120 |
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing() | public boolean stopCellEditing() { fireEditingStopped(); return true; // TODO } // stopCellEditing() | 47,121 |
public Image getImage(String uri) { System.out.println("in Naive User Agent get image: " + uri); java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != nu... | public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ... | 47,123 |
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); log.debug("tear down done"); } | public void tearDown() throws Exception { super.tearDown(); log.debug("tear down done"); } | 47,124 |
public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { //u.p("TableLayout2.calculateBoxes(" + avail_width + // " , " + box + " , " + c + " , " + table); box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; ... | if(cell == null) { System.err.println("Hit the null cell error in "+this.getClass().getName()); continue; } if(cell == null) { System.err.println("Hit the null cell error in "+this.getClass().getName()); continue; } if(cell == null) { System.err.println("Hit the null cell error in "+this.getClass().getName()); continue... | 47,126 |
public void addTable(Element elem) throws Exception { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for(int i=0; i<rows.getLength(); i++) { Node row = rows.item(i); if(row.getNodeName().equals("tr")) { ... | public void addTable(Element elem) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for(int i=0; i<rows.getLength(); i++) { Node row = rows.item(i); if(row.getNodeName().equals("tr")) { if(firs... | 47,127 |
public void calculateWidths(int avail_width, Context c) { //u.p("calculating columns from total space of: " + avail_width); //u.p("total column width = " + total_cols); // get number of columns and init array int total_cols = getTotalColumnCount(); int[] widths = new int[t... | public void calculateWidths(int avail_width, Context c) { //u.p("calculating columns from total space of: " + avail_width); //u.p("total column width = " + total_cols); // get number of columns and init array int total_cols = getTotalColumnCount(); int[] widths = new int[t... | 47,128 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 47,129 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 47,130 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 47,131 |
private void closeConnection(Connection con) throws JMSException { try { con.close(); } catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } } | private void closeConnection(Connection con) throws JMSException { try { if (con != null) { con.close(); } } catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } } | 47,133 |
public void testAckAfterConsumerClosed() throws Exception { Connection connSend = null; Connection connReceive = null; try { log.trace("Running testSendAndReceivePersistentDifferentConnections"); connSend = cf.createConnection(); connSend... | public void testAckAfterConsumerClosed() throws Exception { Connection connSend = null; Connection connReceive = null; try { connSend = cf.createConnection(); connSend.start(); Session sessSend = connSend.createSession(tru... | 47,136 |
public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... | public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... | 47,137 |
public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... | public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... | 47,138 |
public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... | public void testDurableSubscriptionClientIDNotSet() throws Exception { //Client id must be set before creating a durable subscription //This assumes we are not setting it in the connection factory which //is currently true but may change in the future Connection conn1 = cf.createConnection(); ... | 47,139 |
public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... | public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... | 47,140 |
public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... | public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... | 47,141 |
public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... | public void testDurableSubscriptionInvalidUnsubscribe() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess1.un... | 47,142 |
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | 47,144 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.