bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public IRubyObject each() { String[] contents = snapshot; for (int i=0; i<contents.length; i++) { getRuntime().yield(RubyString.newString(getRuntime(), contents[i])); } return this; }
public IRubyObject each() { String[] contents = snapshot; for (int i=0; i<contents.length; i++) { getRuntime().yield(getRuntime().newString(contents[i])); } return this; }
3,225,818
public RubyArray entries() { return RubyArray.newArray(getRuntime(), JavaUtil.convertJavaArrayToRuby(getRuntime(), snapshot)); }
public RubyArray entries() { return getRuntime().newArray(JavaUtil.convertJavaArrayToRuby(getRuntime(), snapshot)); }
3,225,819
public static RubyString getwd(IRubyObject recv) { return new RubyString(recv.getRuntime(), System.getProperty("user.dir")); }
public static RubyString getwd(IRubyObject recv) { return recv.getRuntime().newString(System.getProperty("user.dir")); }
3,225,820
public static RubyArray glob(IRubyObject recv, RubyString pat) { String pattern = pat.toString(); String[] files = new Glob(pattern).getNames(); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
public static RubyArray glob(IRubyObject recv, RubyString pat) { String pattern = pat.toString(); String[] files = new Glob(pattern).getNames(); return recv.getRuntime().newArray(JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); }
3,225,821
public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafe...
public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw recv.getRuntime().newArgumentError(args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafeSt...
3,225,822
public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafe...
public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw recv.getRuntime().newArgumentError(args.length, 2); } args[0].checkSafeSt...
3,225,823
public RubyString read() { if (!isOpen) { throw new IOError(getRuntime(), "Directory already closed"); } if (pos >= snapshot.length) { return RubyString.nilString(runtime); } RubyString result = new RubyString(getRuntime(), snapshot[pos]); pos++; return result; }
public RubyString read() { if (!isOpen) { throw new IOError(getRuntime(), "Directory already closed"); } if (pos >= snapshot.length) { return RubyString.nilString(getRuntime()); } RubyString result = new RubyString(getRuntime(), snapshot[pos]); pos++; return result;...
3,225,824
public IRubyObject rewind() { pos = 0; return RubyFixnum.newFixnum(getRuntime(), pos); }
public IRubyObject rewind() { pos = 0; return getRuntime().newFixnum(pos); }
3,225,825
public static IRubyObject rmdir(IRubyObject recv, RubyString path) { File directory = new File(path.toString()); if (!directory.delete()) { throw new SystemCallError(recv.getRuntime(), "No such directory"); } return RubyFixnum.newFixnum(recv.getRuntime(), 0); ...
public static IRubyObject rmdir(IRubyObject recv, RubyString path) { File directory = new File(path.toString()); if (!directory.delete()) { throw new SystemCallError(recv.getRuntime(), "No such directory"); } return recv.getRuntime().newFixnum(0); }
3,225,826
public RubyInteger tell() { return RubyFixnum.newFixnum(getRuntime(), pos); }
public RubyInteger tell() { return getRuntime().newFixnum(pos); }
3,225,827
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ...
3,225,828
public boolean equals(Object obj) { if (!(obj instanceof ImageDataImageDescriptor)) return false; ImageDataImageDescriptor imgWrap = (ImageDataImageDescriptor) obj; return data.equals(imgWrap.data) && (imgWrap.originalImage == originalImage); }
public boolean equals(Object obj) { if (!(obj instanceof ImageDataImageDescriptor)) return false; ImageDataImageDescriptor imgWrap = (ImageDataImageDescriptor) obj; return data.equals(imgWrap.data) && (imgWrap.originalImage == originalImage); }
3,225,829
public boolean equals(Object obj) { if (!(obj instanceof ImageDataImageDescriptor)) return false; ImageDataImageDescriptor imgWrap = (ImageDataImageDescriptor) obj; return data.equals(imgWrap.data) && (imgWrap.originalImage == originalImage); }
public boolean equals(Object obj) { if (!(obj instanceof ImageDataImageDescriptor)) return false; ImageDataImageDescriptor imgWrap = (ImageDataImageDescriptor) obj; if (originalImage != null) { return imgWrap.originalImage == originalImage; } return (imgWrap.originalImage == null &...
3,225,830
public void run() { try { startTime = new Date(); log().debug( "Accepting connection from: " + socket.getInetAddress() + ":" + socket.getPort()); acceptNode(socket); } catch (ConnectionException e) { ...
public void run() { try { startTime = new Date(); log().debug( "Accepting connection from: " + socket.getInetAddress() + ":" + socket.getPort()); acceptNode(socket); } catch (ConnectionException e) { ...
3,225,831
public boolean markNodeForImmediateReconnection(Member node) { if (node.isConnected() || node.isReconnecting() || node.isMySelf() || node.isUnableToConnect() || node.getReconnectAddress() == null) { // Not reconnect nesseary return false; } if (getControl...
public boolean markNodeForImmediateReconnection(Member node) { if (node.isConnected() || node.isReconnecting() || node.isMySelf() || node.isUnableToConnect() || node.getReconnectAddress() == null || node.getReconnectAddress().getAddress() == null) { // Not reconnect nesseary ...
3,225,832
static void paintAbsolute(Context c, Box inline) { // Uu.p("paint absolute: " + inline); //c.translate(line.x, line.y + (line.baseline - inline.height)); /*Renderer rend = c.getRenderer(inline.content.getElement()); rend.paint(c, inline);*/ BoxRendering.paint(c, inline); //...
static void paintAbsolute(Context c, Box inline) { // Uu.p("paint absolute: " + inline); //c.translate(line.x, line.y + (line.baseline - inline.height)); /*Renderer rend = c.getRenderer(inline.content.getElement()); rend.paint(c, inline);*/ BoxRendering.paint(c, inline, false); ...
3,225,833
static void paintFloat(Context c, InlineBox inline) { // Uu.p("painting a float: " + inline); Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe.x, 0, oe.width, oe.height)); //int xoff = line.Xx + inline.Xx; int xoff = 0; int yoff = 0;//line.y + ( line.baseline - ...
static void paintFloat(Context c, InlineBox inline) { // Uu.p("painting a float: " + inline); Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe.x, 0, oe.width, oe.height)); //int xoff = line.Xx + inline.Xx; int xoff = 0; int yoff = 0;//line.y + ( line.baseline - ...
3,225,834
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib insta...
3,225,835
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
3,225,836
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
3,225,837
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
3,225,838
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
3,225,839
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,...
3,225,840
static void paintInlineContext(Context c, Box box) { //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate(box.x, box.y); // for each line box BlockBox block = null; if (box instanceof BlockBox) {...
static void paintInlineContext(Context c, Box box) { //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate(box.x, box.y); // for each line box BlockBox block = null; if (box instanceof BlockBox) {...
3,225,841
static void paintInlineContext(Context c, Box box) { //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate(box.x, box.y); // for each line box BlockBox block = null; if (box instanceof BlockBox) {...
static void paintInlineContext(Context c, Box box) { //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate(box.x, box.y); // for each line box BlockBox block = null; if (box instanceof BlockBox) {...
3,225,842
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint...
static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); ...
3,225,843
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint...
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.getBaseline(); // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { ...
3,225,844
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint...
static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint...
3,225,845
public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.baseline - inline.y - inline.height...
public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.h...
3,225,846
public static void paintText(Context c, int lx, int ly, int ix, int iy, InlineTextBox inline) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(FontUtil.getFont(...
public static void paintText(Context c, int lx, int ly, int ix, int iy, InlineTextBox inline) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(FontUtil.getFont(...
3,225,847
public RubyObject eval(Ruby ruby, RubyObject self) { if (cachedValue != null) { return cachedValue; } RubyObject result = RubyRange.m_newRange(ruby, self.eval(beginNode), self.eval(endNode), exclusive); if (cannotCached) { return result; ...
public RubyObject eval(Ruby ruby, RubyObject self) { if (cachedValue != null) { return cachedValue; } RubyObject result = RubyRange.m_newRange(ruby, self.eval(getBeginNode()), self.eval(getEndNode()), exclusive); if (cannotCached) { return resu...
3,225,848
public static Box generateAbsoluteBox(Context c, Content content) { //Uu.p("generate absolute block inline box: avail = " + content); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a bl...
public static Box generateAbsoluteBox(Context c, Content content) { //Uu.p("generate absolute block inline box: avail = " + content); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a bl...
3,225,849
public void selectionChanged(SelectionChangeEvent selectionChangeEvent) { Object selection = selectionChangeEvent.getSelection(); Object oldSelection = selectionModel.getOldSelection(); if (oldSelection instanceof Folder) { // Remove listener from old folder Folder folder ...
public void selectionChanged(SelectionChangeEvent selectionChangeEvent) { Object selection = selectionChangeEvent.getSelection(); Object oldSelection = selectionModel.getOldSelection(); if (oldSelection instanceof Folder) { // Remove listener from old folder Folder folder ...
3,225,852
public void selectionChanged(SelectionChangeEvent selectionChangeEvent) { Object selection = selectionChangeEvent.getSelection(); Object oldSelection = selectionModel.getOldSelection(); if (oldSelection instanceof Folder) { // Remove listener from old folder Folder folder ...
public void selectionChanged(SelectionChangeEvent selectionChangeEvent) { Object selection = selectionChangeEvent.getSelection(); Object oldSelection = selectionModel.getOldSelection(); if (oldSelection instanceof Folder) { // Remove listener from old folder Folder folder ...
3,225,853
public void handleSetChange(IObservableSet source, SetDiff diff) { Set addedKeys = new HashSet(diff.getAdditions()); Set removedKeys = new HashSet(diff.getRemovals()); Map oldValues = new HashMap(); Map newValues = new HashMap(); for (Iterator it = removedKeys.iterator(); it.hasNext();) { Object removedK...
public void handleSetChange(IObservableSet source, SetDiff diff) { Set addedKeys = new HashSet(diff.getAdditions()); Set removedKeys = new HashSet(diff.getRemovals()); Map oldValues = new HashMap(); Map newValues = new HashMap(); for (Iterator it = removedKeys.iterator(); it.hasNext();) { Object removedK...
3,225,854
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? if (isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { // Uu.p("setting border for: " + box); if (box.border == null) { box.border ...
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? if (isBlockOrInlineElementBox(c, box)) { if (isBlockOrInlineElementBox(box)) { // Uu.p("setting border for: " + box); if (box.border == null) { box.border = c.getCurrentStyle().getBor...
3,225,855
public void initializeClass() { defineMethod("===", Arity.singleArgument(), "op_eqq"); defineMethod("<=>", Arity.singleArgument(), "op_cmp"); defineMethod("<", Arity.singleArgument(), "op_lt"); defineMethod("<=", Arity.singleArgument(), "op_le"); defineMethod(">", Arity.singleA...
public void initializeClass() { defineMethod("===", Arity.singleArgument(), "op_eqq"); defineMethod("<=>", Arity.singleArgument(), "op_cmp"); defineMethod("<", Arity.singleArgument(), "op_lt"); defineMethod("<=", Arity.singleArgument(), "op_le"); defineMethod(">", Arity.singleA...
3,225,857
public final boolean equals(final Object object) { if (object instanceof LegacyViewerContributionExpression) { final LegacyViewerContributionExpression that = (LegacyViewerContributionExpression) object; return Util.equals(this.targetId, that.targetId) && Util.equals(this.expression, that.expression) && U...
public final boolean equals(final Object object) { if (object instanceof LegacyViewerContributionExpression) { final LegacyViewerContributionExpression that = (LegacyViewerContributionExpression) object; return Util.equals(this.targetId, that.targetId) && Util.equals(this.expression, that.expression) && U...
3,225,858
synchronized void calculate0() { if (logVerbose) { log().verbose( "calc stats " + folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); } isCalculating = true; // log().verbose("Recalculation statisitcs on " + folder); ...
synchronized void calculate0() { if (logVerbose) { log().verbose( "calc stats " + folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); } isCalculating = true; // log().verbose("Recalculation statisitcs on " + folder); ...
3,225,860
public IRubyObject convertToString() { return (RubyString) convertToType("String", "to_s", true); }
public IRubyObject convertToString() { return convertToType("String", "to_str", true); }
3,225,861
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
3,225,862
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
3,225,863
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
3,225,864
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
3,225,865
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
3,225,866
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
3,225,867
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...
3,225,868
public boolean hasProperty( String propName ) { if(propName.equals("width")) return true; if(propName.equals("height")) return true; if(propName.equals("top")) return true; if(propName.equals("left")) return true; if(propName.equals("bottom")) return true; if(propName.equal...
public boolean hasProperty( String propName ) { if(propName.equals("width")) return true; if(propName.equals("height")) return true; if(propName.equals("top")) return true; if(propName.equals("left")) return true; if(propName.equals("bottom")) return true; if(propName.equal...
3,225,870
public DerivedProperty propertyByName( String propName ) { //TODO: return these values when DerivedProperty and DerivedValue are disconnected from CSS return null; }
public DerivedProperty propertyByName(String propName) { //TODO: return these values when DerivedProperty and DerivedValue are disconnected from CSS return null; }
3,225,871
public int compare(Object obj1, Object obj2) { MBMessage message1 = (MBMessage)obj1; MBMessage message2 = (MBMessage)obj2; int value = message1.getCreateDate().compareTo( message2.getCreateDate()); if (_asc) { return value; } else { return -value; } }
public int compare(Object obj1, Object obj2) { MBMessage message1 = (MBMessage)obj1; MBMessage message2 = (MBMessage)obj2; int value = message1.getCreateDate().compareTo( message2.getCreateDate()); if (_asc) { return value; } else { return -value; } }
3,225,872
synchronized void decorated() { //Don't bother if we are shutdown now if (shutdown) return; //Lazy initialize the job if (updateJob == null) { updateJob = getUpdateJob(); updateJob.setPriority(Job.DECORATE); } updateJob.schedule(); }
synchronized void decorated() { //Don't bother if we are shutdown now if (shutdown) return; //Lazy initialize the job if (updateJob == null) { updateJob = getUpdateJob(); updateJob.setPriority(Job.DECORATE); } updateJob.schedule(); }
3,225,874
protected Font createFont( Context c, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant ) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.PLAIN; ...
protected Font createFont( Context c, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant ) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.PLAIN; ...
3,225,876
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calcula...
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calcula...
3,225,877
void handleListChange(IObservableList source, ListDiff diff);
void handleListChange(IObservableList source, ListDiff diff);
3,225,878
private void _upgradeUser() throws Exception { Connection con = null; PreparedStatement ps = null; ResultSet rs = null; try { con = DataAccess.getConnection(Constants.DATA_SOURCE); ps = con.prepareStatement(_UPGRADE_USER); rs = ps.executeQuery(); while (rs.next()) { String userId = rs.getString("userId"...
private void _upgradeUser() throws Exception { Connection con = null; PreparedStatement ps = null; ResultSet rs = null; try { con = DataAccess.getConnection(Constants.DATA_SOURCE); ps = con.prepareStatement(_UPGRADE_USER); rs = ps.executeQuery(); while (rs.next()) { String userId = rs.getString("userId"...
3,225,879
private Object findParent(NavigatorContentExtension foundExtension, Object anElement) { Object parent = null; INavigatorContentDescriptor foundDescriptor; parent = foundExtension.getContentProvider().getParent(anElement); if(parent == null && (foundDescriptor = foundExtension.getDescriptor()).getOverriddenDes...
private Object findParent(NavigatorContentExtension foundExtension, Object anElement) { Object parent = null; INavigatorContentDescriptor foundDescriptor; parent = foundExtension.getContentProvider().getParent(anElement); if(parent == null && (foundDescriptor = foundExtension.getDescriptor()).getOverriddenDes...
3,225,880
public synchronized Object[] getElements(Object anInputElement) { Set rootContentExtensions = contentService .findRootContentExtensions(anInputElement); if (rootContentExtensions.size() == 0) { return NO_CHILDREN; } ContributorTrackingSet finalElementsSet = new ContributorTrackingSet(contentService); Contrib...
public synchronized Object[] getElements(Object anInputElement) { Set rootContentExtensions = contentService .findRootContentExtensions(anInputElement); if (rootContentExtensions.size() == 0) { return NO_CHILDREN; } ContributorTrackingSet finalElementsSet = new ContributorTrackingSet(contentService); Contrib...
3,225,881
public synchronized Object getParent(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Object parent; NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) { ...
public synchronized Object getParent(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Object parent; NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) { ...
3,225,882
public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ...
public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ...
3,225,883
public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ...
public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ...
3,225,884
public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ...
public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ...
3,225,885
private Object[] internalGetChildren(Object aParentElementOrPath) { Object aParentElement = internalAsElement(aParentElementOrPath); Set enabledExtensions = contentService .findContentExtensionsByTriggerPoint(aParentElement); if (enabledExtensions.size() == 0) { return NO_CHILDREN; } ContributorTrackingSet f...
private Object[] internalGetChildren(Object aParentElementOrPath) { Object aParentElement = internalAsElement(aParentElementOrPath); Set enabledExtensions = contentService .findContentExtensionsByTriggerPoint(aParentElement); if (enabledExtensions.size() == 0) { return NO_CHILDREN; } ContributorTrackingSet f...
3,225,886
public static void cleanTestDir() { File testDir = getTestDir(); File[] files = testDir.listFiles(); if (files == null) { return; } System.out .println("Cleaning test dir (" + files.length + " files/dirs)"); for (File file : files) { ...
public static void cleanTestDir() { File testDir = getTestDir(); File[] files = testDir.listFiles(); if (files == null) { return; } System.out .println("Cleaning test dir (" + files.length + " files/dirs)"); for (File file : files) { ...
3,225,887
private static final String createRandomFilename() { String str = UUID.randomUUID().toString(); StringBuffer buf = new StringBuffer(); int l = (int) (Math.random() * str.length()); for (int i = 0; i < l; i++) { char c; if (i % 2 == 0) { c = Character....
public static final String createRandomFilename() { String str = UUID.randomUUID().toString(); StringBuffer buf = new StringBuffer(); int l = (int) (Math.random() * str.length()); for (int i = 0; i < l; i++) { char c; if (i % 2 == 0) { c = Character.t...
3,225,888
private static final String createRandomFilename() { String str = UUID.randomUUID().toString(); StringBuffer buf = new StringBuffer(); int l = (int) (Math.random() * str.length()); for (int i = 0; i < l; i++) { char c; if (i % 2 == 0) { c = Character....
private static final String createRandomFilename() { String str = UUID.randomUUID().toString(); StringBuffer buf = new StringBuffer(); int l = 1 + (int) (Math.random() * (str.length() - 1)); for (int i = 0; i < l; i++) { char c; if (i % 2 == 0) { c = ...
3,225,889
public void execute() throws BuildException { Map fileMap = new HashMap(); FileNameMapper mapper = null; if (mapperElement != null) { mapper = mapperElement.getImplementation(); } else { mapper = new GlobPatternMapper(); mapper.setFrom("*.rb"); ...
public void execute() throws BuildException { Map fileMap = new HashMap(); FileNameMapper mapper = null; if (mapperElement != null) { mapper = mapperElement.getImplementation(); } else { mapper = new GlobPatternMapper(); mapper.setFrom("*.rb"); ...
3,225,890
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...
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...
3,225,891
public void addChatMember(Member node) { if (chatTreeNodes != null && !chatTreeNodes.contains(node) && !node.isMySelf()) { chatTreeNodes.addChild(node); } updateTreeNode(); }
public void addChatMember(Member node) { if (chatTreeNodes != null && !chatTreeNodes.contains(node) && !node.isMySelf()) { chatTreeNodes.addChild(node); } updateTreeNode(); }
3,225,893
private void updateOnlineStatus(Member member) {// UI Stuff if (onlineTreeNodes != null) { boolean inOnlineList = onlineTreeNodes.indexOf(member) >= 0; if (member.isCompleteyConnected()) { if (!inOnlineList) { // Add if not already in list ...
private void updateOnlineStatus(Member member) {// UI Stuff if (onlineTreeNodes != null) { boolean inOnlineList = onlineTreeNodes.indexOf(member) >= 0; if (member.isCompleteyConnected()) { if (!inOnlineList) { // Add if not already in list ...
3,225,894
private void updateTreeNode() { getUIController().getControlQuarter().getNavigationTreeModel().updateFriendsAndOnlineTreeNodes(); }
private void updateTreeNode() { getUIController().getControlQuarter().getNavigationTreeModel() .updateFriendsAndOnlineTreeNodes(); }
3,225,895
public BigPack buildPack(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return null; BigPack bp = pa.buildPack(id); if (bp == null) return null; return bp; }
public BigPack buildPack(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return null; BigPack bp = pa.buildPack(id); if (bp == null) return null; return bp; }
3,225,896
public BigPack buildPack(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return null; BigPack bp = pa.buildPack(id); if (bp == null) return null; return bp; }
public BigPack buildPack(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return null; BigPack bp = pa.buildPack(id); if (bp == null) return null; return bp; }
3,225,897
public void packerDone(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return; pa.packerDone(id); }
public void packerDone(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return; pa.packerDone(id); }
3,225,898
public void packerDone(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return; pa.packerDone(id); }
public void packerDone(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return; pa.packerDone(id); }
3,225,899
public void unpackerDone(BigPack msg) { switchPacker(packer); PackerApp pa = (PackerApp) packApps.get(new Integer(msg.getType())); if (pa == null) return; pa.unpackerDone(msg, id); }
public void unpackerDone(BigPack msg) { switchPacker(packer); PackerApp pa = (PackerApp) packApps.get(new Integer(msg.getType())); if (pa == null) return; pa.unpackerDone(msg, id); }
3,225,900
public void unpackerDone(BigPack msg) { switchPacker(packer); PackerApp pa = (PackerApp) packApps.get(new Integer(msg.getType())); if (pa == null) return; pa.unpackerDone(msg, id); }
public void unpackerDone(BigPack msg) { switchPacker(packer); PackerApp pa = (PackerApp) packApps.get(new Integer(msg.getType())); if (pa == null) return; pa.unpackerDone(msg, id); }
3,225,901
public Reader getScriptSource() { if (hasInlineScript()) { return new StringReader(inlineScript()); } else if (isSourceFromStdin()) { return new InputStreamReader(System.in); } else { File file = new File(scriptFileName); try { return n...
public Reader getScriptSource() { if (hasInlineScript()) { return new StringReader(inlineScript()); } else if (isSourceFromStdin()) { return new InputStreamReader(System.in); } else { File file = new File(scriptFileName); try { return n...
3,225,902
private String _getPlid(String pathInfo, String servletPath, String defaultPlid) { if (!_friendly) { return defaultPlid; } if (Validator.isNull(pathInfo) || !pathInfo.startsWith(StringPool.SLASH)) { return null; } // Group friendly URL String friendlyURL = null; int pos = pathInfo.indexOf(StringPool.SLASH...
private String _getPlid(String pathInfo, String servletPath, String defaultPlid) { if (!_friendly) { return defaultPlid; } if (Validator.isNull(pathInfo) || !pathInfo.startsWith(StringPool.SLASH)) { return null; } // Group friendly URL String friendlyURL = null; int pos = pathInfo.indexOf(StringPool.SLASH...
3,225,904
public void doFilter( ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { if (USE_LAYOUT_CACHE_FILTER) { _log.debug("Layout Cache is enabled"); } else { _log.debug("Layout Cache is disabled"); } HttpServletRequest request = (HttpServletRequest)req; HttpServle...
public void doFilter( ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { if (USE_LAYOUT_CACHE_FILTER) { _log.debug("Layout Cache is enabled"); } else { _log.debug("Layout Cache is disabled"); } HttpServletRequest request = (HttpServletRequest)req; HttpServle...
3,225,905
public void init(FilterConfig filterConfig) { synchronized (FriendlyURLServlet.class) { ServletContext ctx = filterConfig.getServletContext(); _companyId = ctx.getInitParameter("company_id"); _friendly = GetterUtil.getBoolean(filterConfig.getInitParameter( "friendly")); } }
public void init(FilterConfig filterConfig) { synchronized (FriendlyURLServlet.class) { ServletContext ctx = filterConfig.getServletContext(); _companyId = ctx.getInitParameter("company_id"); _friendly = GetterUtil.getBoolean(filterConfig.getInitParameter( "friendly")); } }
3,225,906
public void init(FilterConfig filterConfig) { synchronized (FriendlyURLServlet.class) { ServletContext ctx = filterConfig.getServletContext(); _companyId = ctx.getInitParameter("company_id"); _friendly = GetterUtil.getBoolean(filterConfig.getInitParameter( "friendly")); } }
public void init(FilterConfig filterConfig) { synchronized (FriendlyURLServlet.class) { ServletContext ctx = filterConfig.getServletContext(); _companyId = ctx.getInitParameter("company_id"); _friendly = GetterUtil.getBoolean(filterConfig.getInitParameter( "friendly")); } }
3,225,907
public com.liferay.portal.model.Group addGroup(java.lang.String className, java.lang.String classPK, java.lang.String name, java.lang.String friendlyURL) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return g...
public com.liferay.portal.model.Group addGroup(java.lang.String className, java.lang.String classPK, java.lang.String name, java.lang.String friendlyURL) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return g...
3,225,908
public com.liferay.portal.model.Group addGroup(java.lang.String className, java.lang.String classPK, java.lang.String name, java.lang.String friendlyURL) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return g...
public com.liferay.portal.model.Group addGroup(java.lang.String className, java.lang.String classPK, java.lang.String name, java.lang.String friendlyURL) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, java.rmi.RemoteException { PrincipalSessionBean.setThreadValues(_sc); return g...
3,225,909
public int setMyDynDns(String newDns, boolean validate) { log().warn( "Setting own dns to " + newDns + ". was: " + (myDyndns != null ? myDyndns.getHostName() : "")); // FIXME Don't reset!!! If nothing has changed! CLEAN UP THIS MESS! if (validate) { // show ...
public int setMyDynDns(String newDns, boolean validate) { log().warn( "Setting own dns to " + newDns + ". was: " + (myDyndns != null ? myDyndns.getHostName() : "")); // FIXME Don't reset!!! If nothing has changed! CLEAN UP THIS MESS! if (validate) { // show ...
3,225,910
public List getChildContent( Context c ) { return ContentUtil.getChildContentList( c, this ); }
public List getChildContent( Context c ) { return ContentUtil.getChildContentList( c, this ); }
3,225,911
public String toString() { return "FloatedBlock: " + _elem.getNodeName(); }
public String toString() { return "InlineBlock: " + _elem.getNodeName(); }
3,225,912
public static void createFolder(HttpSession ses, String folderName) throws FolderException, StoreException { Folder folder = null; try { Iterator itr = getFolders(ses).iterator(); while (itr.hasNext()) { MailFolder mailFolder = (MailFolder)itr.next(); if (mailFolder.getName().equals(folderName)) { thr...
public static void createFolder(HttpSession ses, String folderName) throws FolderException, StoreException { Folder folder = null; try { Iterator itr = getFolders(ses).iterator(); while (itr.hasNext()) { MailFolder mailFolder = (MailFolder)itr.next(); if (mailFolder.getName().equals(folderName)) { thr...
3,225,914
public static void removeFolder(HttpSession ses, String folderName) throws FolderException, StoreException { try { if (!folderName.equals(MAIL_INBOX_NAME) && !folderName.startsWith(MAIL_BOX_STYLE)) { folderName = MAIL_BOX_STYLE + folderName; } for (int i = 0; i < DEFAULT_FOLDERS.length; i++) { if (DEF...
public static void removeFolder(HttpSession ses, String folderName) throws FolderException, StoreException { try { if (!folderName.equals(MAIL_INBOX_NAME) && !folderName.startsWith(MAIL_BOX_STYLE)) { folderName = MAIL_BOX_STYLE + folderName; } for (int i = 0; i < DEFAULT_FOLDERS.length; i++) { if (DEF...
3,225,915
public static void renameFolder( HttpSession ses, String oldFolderName, String newFolderName) throws FolderException, StoreException { try { if (!oldFolderName.equals(MAIL_INBOX_NAME) && !oldFolderName.startsWith(MAIL_BOX_STYLE)) { oldFolderName = MAIL_BOX_STYLE + oldFolderName; } if (!newFolderName.eq...
public static void renameFolder( HttpSession ses, String oldFolderName, String newFolderName) throws FolderException, StoreException { try { if (!oldFolderName.equals(MAIL_INBOX_NAME) && !oldFolderName.startsWith(MAIL_BOX_STYLE)) { oldFolderName = MAIL_BOX_STYLE + oldFolderName; } if (!newFolderName.eq...
3,225,916
public static void renameFolder( HttpSession ses, String oldFolderName, String newFolderName) throws FolderException, StoreException { try { if (!oldFolderName.equals(MAIL_INBOX_NAME) && !oldFolderName.startsWith(MAIL_BOX_STYLE)) { oldFolderName = MAIL_BOX_STYLE + oldFolderName; } if (!newFolderName.eq...
public static void renameFolder( HttpSession ses, String oldFolderName, String newFolderName) throws FolderException, StoreException { try { if (!oldFolderName.equals(MAIL_INBOX_NAME) && !oldFolderName.startsWith(MAIL_BOX_STYLE)) { oldFolderName = MAIL_BOX_STYLE + oldFolderName; } if (!newFolderName.eq...
3,225,917
public int compareTo(Object obj) { if (obj == null) { return -1; } BlogsEntry blogsEntry = (BlogsEntry)obj; int value = 0; value = getDisplayDate().compareTo(blogsEntry.getDisplayDate()); value = value * -1; if (value != 0) { return value; } return 0; }
public int compareTo(Object obj) { if (obj == null) { return -1; } BlogsEntry blogsEntry = (BlogsEntry)obj; int value = 0; value = getDisplayDate().compareTo(blogsEntry.getDisplayDate()); value = value * -1; if (value != 0) { return value; } return 0; }
3,225,918
public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException { try { HttpSession ses = req.getSession(); // Company Company company = PortalUtil.getCompany(req); String companyId = company.getCompanyId(); // Paths String contextPath = CompanyPropsUtil.get( companyId, PropsUt...
public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException { try { HttpSession ses = req.getSession(); // Company Company company = PortalUtil.getCompany(req); String companyId = company.getCompanyId(); // Paths String contextPath = CompanyPropsUtil.get( companyId, PropsUt...
3,225,919
public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException { try { HttpSession ses = req.getSession(); // Company Company company = PortalUtil.getCompany(req); String companyId = company.getCompanyId(); // Paths String contextPath = CompanyPropsUtil.get( companyId, PropsUt...
public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException { try { HttpSession ses = req.getSession(); // Company Company company = PortalUtil.getCompany(req); String companyId = company.getCompanyId(); // Paths String contextPath = CompanyPropsUtil.get( companyId, PropsUt...
3,225,920
public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException { try { HttpSession ses = req.getSession(); // Company Company company = PortalUtil.getCompany(req); String companyId = company.getCompanyId(); // Paths String contextPath = CompanyPropsUtil.get( companyId, PropsUt...
public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException { try { HttpSession ses = req.getSession(); // Company Company company = PortalUtil.getCompany(req); String companyId = company.getCompanyId(); // Paths String contextPath = CompanyPropsUtil.get( companyId, PropsUt...
3,225,921
private static void _closeFolder(String userId) { Folder folder = (Folder)_folder.get(userId); if (folder != null && folder.isOpen()) { try { folder.close(false); } catch (MessagingException me) { _log.error("Unknown error while closing current folder"); } _folder.remove(userId); } }
private static void _closeFolder(String userId) { Folder folder = (Folder)_folder.get(userId); if (folder != null && folder.isOpen()) { try { folder.close(false); } catch (MessagingException me) { _log.error("Unknown error while closing current folder"); } _folder.remove(userId); } }
3,225,922
private static Folder _getCurrentFolder(String userId) throws Exception { Folder folder = (Folder)_folder.get(userId); if (folder != null) { return folder; } throw new Exception("A folder must first be selected"); }
private static Folder _getCurrentFolder(String userId) throws Exception { Folder folder = (Folder)_folder.get(userId); if (folder != null) { return folder; } throw new Exception("A folder must first be selected"); }
3,225,923
private static Folder _getCurrentFolder(String userId) throws Exception { Folder folder = (Folder)_folder.get(userId); if (folder != null) { return folder; } throw new Exception("A folder must first be selected"); }
private static Folder _getCurrentFolder(String userId) throws Exception { Folder folder = (Folder)_folder.get(userId); if (folder != null) { return folder; } throw new Exception("A folder must first be selected"); }
3,225,924
private static Folder _getFolder( String userId, String password, String folderName) throws Exception { if (Validator.isNull(folderName)) { folderName = MAIL_INBOX_NAME; } Folder folder = (Folder)_folder.get(userId); if (folder != null) { if (!folder.getName().equals(folderName)) { _closeFolder(userId...
private static Folder _getFolder( String userId, String password, String folderName) throws Exception { if (Validator.isNull(folderName)) { folderName = MAIL_INBOX_NAME; } Folder folder = (Folder)_folder.get(userId); if (folder != null) { if (!folder.getName().equals(folderName)) { _closeFolder(userId...
3,225,925
private static Folder _getFolder( String userId, String password, String folderName) throws Exception { if (Validator.isNull(folderName)) { folderName = MAIL_INBOX_NAME; } Folder folder = (Folder)_folder.get(userId); if (folder != null) { if (!folder.getName().equals(folderName)) { _closeFolder(userId...
private static Folder _getFolder( String userId, String password, String folderName) throws Exception { if (Validator.isNull(folderName)) { folderName = MAIL_INBOX_NAME; } Folder folder = (Folder)_folder.get(userId); if (folder != null) { if (!folder.getName().equals(folderName)) { _closeFolder(userId...
3,225,926
private static Folder _getFolder( String userId, String password, String folderName) throws Exception { if (Validator.isNull(folderName)) { folderName = MAIL_INBOX_NAME; } Folder folder = (Folder)_folder.get(userId); if (folder != null) { if (!folder.getName().equals(folderName)) { _closeFolder(userId...
private static Folder _getFolder( String userId, String password, String folderName) throws Exception { if (Validator.isNull(folderName)) { folderName = MAIL_INBOX_NAME; } Folder folder = (Folder)_folder.get(userId); if (folder != null) { if (!folder.getName().equals(folderName)) { _closeFolder(userId...
3,225,927