bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,699
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,700
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,701
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,702
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,703
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,704
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,705
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher...
3,226,706
public void run(String[] ids) throws ActionException { // JCR try { if (GetterUtil.getBoolean(PropsUtil.get( PropsUtil.JCR_INITIALIZE_ON_STARTUP))) { JCRFactoryUtil.initialize(); } } catch (Exception e) { _log.error(e); } // Portal initable PortalInitableUtil.flushInitables(); // Hot deploy _log....
public void run(String[] ids) throws ActionException { // JCR try { if (GetterUtil.getBoolean(PropsUtil.get( PropsUtil.JCR_INITIALIZE_ON_STARTUP))) { JCRFactoryUtil.initialize(); } } catch (Exception e) { _log.error(e); } // Portal initable PortalInitableUtil.flushInitables(); // Hot deploy _log....
3,226,707
public Style(CalculatedStyle calculatedStyle, float parentWidth, CssContext cssContext) { this.calculatedStyle = calculatedStyle; this.parentWidth = parentWidth; }
public Style(CalculatedStyle calculatedStyle, float parentWidth, CssContext cssContext) { this.calculatedStyle = calculatedStyle; this.parentWidth = parentWidth; }
3,226,708
public RectPropertySet getMarginWidth(CssContext cssContext) { RectPropertySet rect = calculatedStyle.getMarginRect(parentWidth, parentWidth, cssContext).copyOf(); // TODO: this is bad for cached rects... if (this.marginTopOverrideSet) { rect.setTop((int) this.marginTopOverride); ...
public RectPropertySet getMarginWidth(CssContext cssContext) { RectPropertySet rect = calculatedStyle.getMarginRect(parentWidth, parentWidth, cssContext).copyOf(); // TODO: this is bad for cached rects... if (this.marginTopOverrideSet) { rect.setTop((int) this.marginTopOverride); ...
3,226,709
private static void drawText(Context c, Box box, String type) { String text = ""; if (type.equals("decimal")) { text = box.list_count + "."; } if (type.equals("lower-latin")) { text = toLatin(box.list_count).toLowerCase() + "."; } if (type.equals("uppe...
private static void drawText(Context c, Box box, String type) { String text = ""; if (type.equals("decimal")) { text = box.list_count + "."; } if (type.equals("lower-latin")) { text = toLatin(box.list_count).toLowerCase() + "."; } if (type.equals("uppe...
3,226,710
private static void drawText(Context c, Box box, String type) { String text = ""; if (type.equals("decimal")) { text = box.list_count + "."; } if (type.equals("lower-latin")) { text = toLatin(box.list_count).toLowerCase() + "."; } if (type.equals("uppe...
private static void drawText(Context c, Box box, String type) { String text = ""; if (type.equals("decimal")) { text = box.list_count + "."; } if (type.equals("lower-latin")) { text = toLatin(box.list_count).toLowerCase() + "."; } if (type.equals("uppe...
3,226,711
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); String type = style.getStringProperty("list-style-type"); if (type.equals("none")) { return; } if (type.equals("lower-greek")) { type = "decimal"; } if (...
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); String type = style.getStringProperty("list-style-type"); if (type.equals("none")) { return; } if (type.equals("lower-greek")) { type = "decimal"; } if (...
3,226,712
public static Font getFont( Context c, Node e ) { //u.p("testing node: " + e); //Font f = c.getGraphics().getFont(); // if plain text then get the styling from the parent node if ( e.getNodeType() == e.TEXT_NODE ) { //u.p("it's a node"); Element el = (Element)e.getP...
publicstaticFontgetFont(Contextc,Nodee){//u.p("testingnode:"+e);//Fontf=c.getGraphics().getFont();//ifplaintextthengetthestylingfromtheparentnodeif(e.getNodeType()==e.TEXT_NODE){//u.p("it'sanode");Elementel=(Element)e.getParentNode();returngetElementFont(c,el);}if(e.getNodeType()==e.ELEMENT_NODE){Elementel=(Element)e;r...
3,226,713
public static Font getFont( Context c, Node e ) { //u.p("testing node: " + e); //Font f = c.getGraphics().getFont(); // if plain text then get the styling from the parent node if ( e.getNodeType() == e.TEXT_NODE ) { //u.p("it's a node"); Element el = (Element)e.getP...
/* /* /* /* public/* static/* Font/* getFont(/* Context/* c,/* Node/* e/* )/* {/* /* /* /* /* /* /* /* //u.p("testing/* node:/* "/* +/* e);/* /* /* /* /* /* /* /* //Font/* f/* =/* c.getGraphics().getFont();/* /* /* /* /* /* /* /* ///* if/* plain/* text/* then/* get/* the/* styling/* from/* the/* parent/* node/* /* /* /...
3,226,714
public static Font getFont( Context c, Node e ) { //u.p("testing node: " + e); //Font f = c.getGraphics().getFont(); // if plain text then get the styling from the parent node if ( e.getNodeType() == e.TEXT_NODE ) { //u.p("it's a node"); Element el = (Element)e.getP...
public static Font getFont( Context c, Node e ) { //u.p("testing node: " + e); //Font f = c.getGraphics().getFont(); // if plain text then get the styling from the parent node if ( e.getNodeType() == e.TEXT_NODE ) { //u.p("it's a node"); Element el = (Element)e.getP...
3,226,715
public void createControl(Composite parent) { Font font = parent.getFont(); // create composite for page. Composite outerContainer = new Composite(parent, SWT.NONE); outerContainer.setLayout(new GridLayout()); outerContainer.setLayoutData(new GridData( GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); ...
public void createControl(Composite parent) { Font font = parent.getFont(); // create composite for page. Composite outerContainer = new Composite(parent, SWT.NONE); outerContainer.setLayout(new GridLayout()); outerContainer.setLayoutData(new GridData( GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); ...
3,226,716
public int compare(Object arg0, Object arg1) { MailEnvelope me0 = (MailEnvelope)arg0; MailEnvelope me1 = (MailEnvelope)arg1; Long uid0 = new Long(me0.getMsgUID()); Long uid1 = new Long(me1.getMsgUID()); String subj0 = _stripPrefixes(me0.getSubject().trim().toLowerCase()); String subj1 = _stripPrefixes(me1.getSub...
public int compare(Object arg0, Object arg1) { MailEnvelope me0 = (MailEnvelope)arg0; MailEnvelope me1 = (MailEnvelope)arg1; Long uid0 = new Long(me0.getMsgUID()); Long uid1 = new Long(me1.getMsgUID()); String subj0 = _stripPrefixes(me0.getSubject().trim().toLowerCase()); String subj1 = _stripPrefixes(me1.getSub...
3,226,717
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
3,226,718
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
3,226,719
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
3,226,720
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
3,226,721
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
public void align() { if (getFloatDistances() == null) { // Shouldn't happen (but currently can with nested tables) XRLog.layout(Level.WARNING, "Float distances not available. Cannot align."); return; } IdentValue align = getParent().getStyle().getCalculatedStyle().getIdent(CSSNam...
3,226,722
public Object get(Object key) { int i = indexOf(key); if(i >= 0) return array[i + 1]; return null;}
final public Object get(Object key) { int i = indexOf(key); if(i >= 0) return array[i + 1]; return null;}
3,226,724
int indexOf(Object key){ for(int i=0;i<array.length;i+=2) { if(equalKey(array[i],key)) return i; } return -1;}
private int indexOf(Object key){ for(int i=0;i<array.length;i+=2) { if(equalKey(array[i],key)) return i; } return -1;}
3,226,725
public IPersistentMap put(Object key, Object val) { int i = indexOf(key); Object[] newArray; if(i >= 0) //already have key, same-sized replacement { if(array[i+1] == val) //no change, no op return this; newArray = array.clone(); newArray[i+1] = val; } else //did...
public IPersistentMap put(Object key, Object val) { int i = indexOf(key); Object[] newArray; if(i >= 0) //already have key, same-sized replacement { if(array[i+1] == val) //no change, no op return this; newArray = array.clone(); newArray[i+1] = val; } else //did...
3,226,726
public IPersistentMap remove(Object key) { int i = indexOf(key); if(i >= 0) //have key, will remove { int newlen = array.length - 2; if(newlen == 0) return empty(); Object[] newArray = new Object[newlen]; for(int s=0,d=0;s<array.length;s += 2) { ...
public IPersistentMap remove(Object key) { int i = indexOf(key); if(i >= 0) //have key, will remove { int newlen = array.length - 2; if(newlen == 0) return empty(); Object[] newArray = new Object[newlen]; for(int s=0,d=0;s<array.length;s += 2) { ...
3,226,727
public Point computeSize(int wHint, int hHint, boolean changed) { Point size = super.computeSize(wHint, hHint, changed); size.y = TrimUtil.TRIM_DEFAULT_HEIGHT; return size; }
public Point computeSize(int wHint, int hHint, boolean changed) { Point size = super.computeSize(wHint, hHint, changed); size.y = TrimUtil.TRIM_DEFAULT_HEIGHT; return size; }
3,226,728
public void dock(int dropSide) { // deliberately do nothing }
publicint oldSide = side; side = dropSide; if (oldSide == dropSide || (isVertical(oldSide) && isVertical(dropSide)) || (isHorizontal(oldSide) && isHorizontal(dropSide))) return; recreate(); voidint oldSide = side; side = dropSide; if (oldSide == dropSide || (isVertical(oldSide) && isVertical(dropSide)) || (isHorizont...
3,226,729
public AnimationItem getAnimationItem() { return item; }
public AnimationItem getAnimationItem() { return animationItem; }
3,226,730
public int getValidSides() { return SWT.BOTTOM; }
public int getValidSides() { return SWT.BOTTOM; }
3,226,731
public PerspectiveHelper(WorkbenchPage workbenchPage, ViewSashContainer mainLayout, Perspective perspective) { this.page = workbenchPage; this.mainLayout = mainLayout; // Determine if reparenting is allowed by checking if some arbitrary // Composite supports reparenting. This ...
public PerspectiveHelper(WorkbenchPage workbenchPage, ViewSashContainer mainLayout, Perspective perspective) { this.page = workbenchPage; this.mainLayout = mainLayout; // Determine if reparenting is allowed by checking if some arbitrary // Composite supports reparenting. This ...
3,226,732
public PerspectiveHelper(WorkbenchPage workbenchPage, ViewSashContainer mainLayout, Perspective perspective) { this.page = workbenchPage; this.mainLayout = mainLayout; // Determine if reparenting is allowed by checking if some arbitrary // Composite supports reparenting. This ...
public PerspectiveHelper(WorkbenchPage workbenchPage, ViewSashContainer mainLayout, Perspective perspective) { this.page = workbenchPage; this.mainLayout = mainLayout; // Determine if reparenting is allowed by checking if some arbitrary // Composite supports reparenting. This ...
3,226,733
public ConfigFileLoadingException(String inFile) { super("Unable to open config file "+inFile); }
public ConfigFileLoadingException(String inFile) { super(MessageKey.CONFIG_FILE_OPEN.getLocalizedMessage(inFile)); }
3,226,737
private Method getMethod() { try { Class javaClass = Class.forName(className); Class[] args = new Class[2 + arity]; args[0] = Ruby.class; args[1] = IRubyObject.class; for (int i = 2; i < args.length; i++) { args[i] = IRubyObject.class; ...
private Method getMethod() { try { Class javaClass = getJavaClass(); Class[] args = new Class[2 + arity]; args[0] = Ruby.class; args[1] = IRubyObject.class; for (int i = 2; i < args.length; i++) { args[i] = IRubyObject.class; } ...
3,226,738
private Method getMethod() { try { Class javaClass = Class.forName(className); Class[] args = new Class[2 + arity]; args[0] = Ruby.class; args[1] = IRubyObject.class; for (int i = 2; i < args.length; i++) { args[i] = IRubyObject.class; ...
private Method getMethod() { try { Class javaClass = Class.forName(className); Class[] args = new Class[2 + arity]; args[0] = Ruby.class; args[1] = IRubyObject.class; for (int i = 2; i < args.length; i++) { args[i] = IRubyObject.class; ...
3,226,739
public void analyseConnection() { if (getRemoteAddress() != null && getRemoteAddress().getAddress() != null) { setOnLAN(NetworkUtil.isOnLanOrLoopback(getRemoteAddress().getAddress())); // Check if the remote address is one of this machine's // interfaces. ...
public void analyseConnection() { if (getRemoteAddress() != null && getRemoteAddress().getAddress() != null) { setOnLAN(NetworkUtil.isOnLanOrLoopback(getRemoteAddress().getAddress())); // Check if the remote address is one of this machine's // interfaces. ...
3,226,740
protected void asyncRefresh() { asyncExec(new Runnable() { public void run() { messagesViewer.refresh(); fillsViewer.refresh(); averagePriceViewer.refresh(); } }); }
protected void asyncRefresh() { asyncExec(new Runnable() { public void run() { messagesViewer.refresh(); fillsViewer.refresh(); averagePriceViewer.refresh(); } }); }
3,226,743
public void run() { messagesViewer.refresh(); fillsViewer.refresh(); averagePriceViewer.refresh(); }
public void run() { messagesViewer.refresh(); fillsViewer.refresh(); averagePriceViewer.refresh(); }
3,226,744
public void incomingMessage(Message message) { averagePriceViewer.setInput(input.getAveragePriceHistory()); asyncRefresh(); }
public void incomingMessage(Message message) { averagePriceViewer.setInput(input.getAveragePriceHistory()); asyncRefresh(); }
3,226,745
private boolean isRescueHandled(RubyException currentException, IListNode exceptionNodes) { if (exceptionNodes == null) { return currentException.isKindOf(runtime.getExceptions().getStandardError()); } Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject[] args = Args...
private boolean isRescueHandled(RubyException currentException, IListNode exceptionNodes) { if (exceptionNodes == null) { return currentException.isKindOf(runtime.getExceptions().getStandardError()); } Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject[] args = Args...
3,226,746
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { eval(iVisited.getIterNode()); return; } else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else i...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { eval(iVisited.getIterNode()); return; } else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else i...
3,226,747
public void visitCallNode(CallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(runtime, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); result...
public void visitCallNode(CallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(runtime, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); result...
3,226,748
public void visitFCallNode(FCallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject[] args = ArgsUtil.setupArgs(runtime, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); result = self.getInternalClass().call(self, iVisited.getName(), args...
public void visitFCallNode(FCallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject[] args = ArgsUtil.setupArgs(runtime, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); result = self.getInternalClass().call(self, iVisited.getName(), args...
3,226,749
public void visitForNode(ForNode iVisited) { runtime.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); runtime.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition position = thre...
public void visitForNode(ForNode iVisited) { runtime.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); runtime.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition position = thre...
3,226,750
public void visitSuperNode(SuperNode iVisited) { if (runtime.getCurrentFrame().getLastClass() == null) { throw new NameError(runtime, "Superclass method '" + runtime.getCurrentFrame().getLastFunc() + "' disabled."); } Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObje...
public void visitSuperNode(SuperNode iVisited) { if (runtime.getCurrentFrame().getLastClass() == null) { throw new NameError(runtime, "Superclass method '" + runtime.getCurrentFrame().getLastFunc() + "' disabled."); } Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObje...
3,226,751
public void visitYieldNode(YieldNode iVisited) { eval(iVisited.getArgsNode()); if (iVisited.getArgsNode() instanceof ExpandArrayNode && ((RubyArray) result).getLength() == 1) { result = ((RubyArray) result).entry(0); } result = runtime.yield(result, null, null, false); }
public void visitYieldNode(YieldNode iVisited) { eval(iVisited.getArgsNode()); if (iVisited.getArgsNode() instanceof ExpandArrayNode && ((RubyArray) result).getLength() == 1) { result = ((RubyArray) result).entry(0); } result = threadContext.yield(result, null, null, false); ...
3,226,752
public void setActionId(String actionId) { if (((actionId == null) && (_actionId != null)) || ((actionId != null) && (_actionId == null)) || ((actionId != null) && (_actionId != null) && !actionId.equals(_actionId))) { if (!XSS_ALLOW_ACTIONID) { actionId = XSSUtil.strip(actionId); } _actionId = acti...
public void setActionId(String actionId) { if (((actionId == null) && (_actionId != null)) || ((actionId != null) && (_actionId == null)) || ((actionId != null) && (_actionId != null) && !actionId.equals(_actionId))) { if (!XSS_ALLOW_ACTIONID) { actionId = XSSUtil.strip(actionId); } _actionId = acti...
3,226,753
public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co...
public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co...
3,226,754
public void setPermissionId(String permissionId) { if (((permissionId == null) && (_permissionId != null)) || ((permissionId != null) && (_permissionId == null)) || ((permissionId != null) && (_permissionId != null) && !permissionId.equals(_permissionId))) { if (!XSS_ALLOW_PERMISSIONID) { permissionId =...
public void setPermissionId(String permissionId) { if (((permissionId == null) && (_permissionId != null)) || ((permissionId != null) && (_permissionId == null)) || ((permissionId != null) && (_permissionId != null) && !permissionId.equals(_permissionId))) { if (!XSS_ALLOW_PERMISSIONID) { permissionId =...
3,226,755
public void setResourceId(String resourceId) { if (((resourceId == null) && (_resourceId != null)) || ((resourceId != null) && (_resourceId == null)) || ((resourceId != null) && (_resourceId != null) && !resourceId.equals(_resourceId))) { if (!XSS_ALLOW_RESOURCEID) { resourceId = XSSUtil.strip(resourceI...
public void setResourceId(String resourceId) { if (((resourceId == null) && (_resourceId != null)) || ((resourceId != null) && (_resourceId == null)) || ((resourceId != null) && (_resourceId != null) && !resourceId.equals(_resourceId))) { if (!XSS_ALLOW_RESOURCEID) { resourceId = XSSUtil.strip(resourceI...
3,226,756
private void debugBadStyleSheet(StylesheetInfo info) { Reader r = _userAgent.getReader(info.getUri()); if (r != null) { try { LineNumberReader lnr = new LineNumberReader(new BufferedReader(r)); StringBuffer sb = new StringBuffer(); String line = ...
private void debugBadStyleSheet(StylesheetInfo info) { Reader r = _userAgent.getReader(info.getUri()); if (r != null) { try { LineNumberReader lnr = new LineNumberReader(new BufferedReader(r)); StringBuffer sb = new StringBuffer(); String line = ...
3,226,757
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi...
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi...
3,226,759
public Stylesheet parseInlines(InlineStyleInfo[] isis, StylesheetInfo main) { Stylesheet sheet = new Stylesheet(main.getUri(), main.getOrigin()); if (isis != null) { for (int i = 0; i < isis.length; i++) { Reader reader = new StringReader(isis[i].getStyle()); S...
public Stylesheet parseInlines(InlineStyleInfo[] isis, StylesheetInfo main) { Stylesheet sheet = new Stylesheet(main.getUri(), main.getOrigin()); if (isis != null) { for (int i = 0; i < isis.length; i++) { Reader reader = new StringReader(isis[i].getStyle()); S...
3,226,760
private FontData[] getFontAncestorValue(FontDefinition definition) { FontDefinition ancestor = getFontAncestor(definition); if (ancestor == null) return null; return getFontValue(ancestor); }
private FontData[] getFontAncestorValue(FontDefinition definition) { FontDefinition ancestor = getFontAncestor(definition); if (ancestor == null) return null; return getFontValue(ancestor); }
3,226,761
private void expandBackgroundPosition(CSSStyleRule rule) { CSSStyleDeclaration dec = rule.getStyle(); CSSValue val = dec.getPropertyCSSValue("background-position"); String prio = dec.getPropertyPriority("background-position"); if(val.getCssValueType() == val.CSS_VALUE_LIST) { ...
private void expandBackgroundPosition(CSSStyleRule rule) { CSSStyleDeclaration dec = rule.getStyle(); CSSValue val = dec.getPropertyCSSValue("background-position"); String prio = dec.getPropertyPriority("background-position"); if(val.getCssValueType() == val.CSS_VALUE_LIST) { ...
3,226,762
private void expandBorder(CSSStyleRule rule) { CSSStyleDeclaration dec = rule.getStyle(); CSSValue val = dec.getPropertyCSSValue("border"); String prio = dec.getPropertyPriority("border"); CSSValueList list = (CSSValueList)val; CSSValue a, b, c; if(val.getCssValueType() == ...
private void expandBorder(CSSStyleRule rule) { CSSStyleDeclaration dec = rule.getStyle(); CSSValue val = dec.getPropertyCSSValue("border"); String prio = dec.getPropertyPriority("border"); CSSValueList list = (CSSValueList)val; CSSValue a, b, c; if(val.getCssValueType() == ...
3,226,764
private void expandBorder(CSSStyleRule rule) { CSSStyleDeclaration dec = rule.getStyle(); CSSValue val = dec.getPropertyCSSValue("border"); String prio = dec.getPropertyPriority("border"); CSSValueList list = (CSSValueList)val; CSSValue a, b, c; if(val.getCssValueType() == ...
private void expandBorder(CSSStyleRule rule) { CSSStyleDeclaration dec = rule.getStyle(); CSSValue val = dec.getPropertyCSSValue("border"); String prio = dec.getPropertyPriority("border"); CSSValueList list = (CSSValueList)val; CSSValue a, b, c; if(val.getCssValueType() == ...
3,226,765
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
3,226,767
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
3,226,768
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
3,226,769
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
3,226,770
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(...
3,226,771
public CSSStyleRule normalize(CSSStyleRule rule) { for(int i=0; i<rule.getStyle().getLength(); i++) { String prop = rule.getStyle().item(i); expandProperty(prop,rule); } return rule; }
public CSSStyleRule normalize(CSSStyleRule rule) { int length = rule.getStyle().getLength(); for(int i=0; i<length; i++) { String prop = rule.getStyle().item(i); expandProperty(prop,rule); } return rule; }
3,226,773
private final void clearBindings() { // TODO Implement }
privateIterator i = commandIdToBinding.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry) i.next(); String commandId = (String) entry.getKey(); Binding binding = (Binding) entry.getValue(); commandService.getCommand(commandId).removeCommandListener(actionSetListener); if (binding!=null && actio...
3,226,774
private final void convertActionToBinding( final IConfigurationElement element, final ParameterizedCommand command) { // Figure out which accelerator text to use. String acceleratorText = readOptional(element, ATT_ACCELERATOR); if (acceleratorText == null) { final String label = readOptional(element, ATT_LABE...
private final void convertActionToBinding( final IConfigurationElement element, final ParameterizedCommand command) { // Figure out which accelerator text to use. String acceleratorText = readOptional(element, ATT_ACCELERATOR); if (acceleratorText == null) { final String label = readOptional(element, ATT_LABE...
3,226,775
public final void dispose() { super.dispose(); clearActivations(); clearBindings(); clearImages(); clearMenus(); }
public final void dispose() { super.dispose(); clearActivations(); clearBindings(); clearImages(); clearMenus(); }
3,226,776
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
3,226,777
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
3,226,778
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
3,226,779
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
3,226,780
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
private void doTestAdd(final int increment, int total, boolean preSort) { openBrowser(); int iterations = ITERATIONS; if (total > 100)// Cut it down for large data sets iterations = ITERATIONS / 5; for (int i = 0; i < iterations; i++) { TestTreeElement input = new TestTreeElement(0, null); viewer.setInput(in...
3,226,781
public void testAddHundred() throws CoreException { tagIfNecessary("JFace - Add 1000 items in 10 blocks to TreeViewer", Dimension.ELAPSED_PROCESS); doTestAdd(100, TEST_COUNT, false); }
public void testAddHundred() throws CoreException { tagIfNecessary("JFace - Add 1000 items in 10 blocks to TreeViewer", Dimension.ELAPSED_PROCESS); doTestAdd(100, TEST_COUNT, false); }
3,226,782
public void testAddHundredPreSort() throws CoreException { doTestAdd(100, 1000, true); }
public void testAddHundredPreSort() throws CoreException { doTestAdd(100, 1000, true); }
3,226,783
public void testAddThousand() { doTestAdd(1000, 2000, false); }
public void testAddThousand() { doTestAdd(1000, 2000, false); }
3,226,784
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
3,226,785
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
3,226,786
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
3,226,787
protected void dispose() { commonNavigator.getCommonViewer().removeSelectionChangedListener(this); // commonNavigator.getCommonViewer().removeOpenListener(commonOpenService); // commonOpenService.dispose(); actionService.dispose(); }
protected void dispose() { commonNavigator.getCommonViewer().removeSelectionChangedListener(this); // commonNavigator.getCommonViewer().removeOpenListener(commonOpenService); // commonOpenService.dispose(); actionService.dispose(); }
3,226,788
protected void fillContextMenu(IMenuManager aMenuManager) { ISelection selection = commonNavigator.getCommonViewer().getSelection(); if (selection instanceof IStructuredSelection) actionService.fillContextMenu(aMenuManager, (IStructuredSelection) selection); else actionService.fillContextMenu(aMenuManager, ...
protected void fillContextMenu(IMenuManager aMenuManager) { ISelection selection = commonNavigator.getCommonViewer().getSelection(); if (selection instanceof IStructuredSelection) actionService.fillContextMenu(aMenuManager, (IStructuredSelection) selection); else actionService.fillContextMenu(aMenuManager, ...
3,226,789
public INavigatorActionService getNavigatorActionService() { return actionService; }
public INavigatorActionService getNavigatorActionService() { return actionService; }
3,226,790
private void init() { commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService = new NavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(), contentService); // commonNavigator.getCommonViewer().addOp...
privatevoidinit(){ commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService=newNavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(),contentService); //commonNavigator.getCommonViewer().addOpenListen...
3,226,791
private void init() { commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService = new NavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(), contentService); // commonNavigator.getCommonViewer().addOp...
private void init() { commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService = new NavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(), contentService); // commonNavigator.getCommonViewer().addOp...
3,226,792
private void init() { commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService = new NavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(), contentService); // commonNavigator.getCommonViewer().addOp...
private void init() { commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService = new NavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(), contentService); // commonNavigator.getCommonViewer().addOp...
3,226,793
private void init() { commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService = new NavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(), contentService); // commonNavigator.getCommonViewer().addOp...
private void init() { commonNavigator.getCommonViewer().addSelectionChangedListener(this); updateStatusBar(commonNavigator.getCommonViewer().getSelection()); actionService = new NavigatorActionService(commonNavigator, commonNavigator.getCommonViewer(), contentService); // commonNavigator.getCommonViewer().addOp...
3,226,794
public void open(OpenEvent event) { openAction.run(); }
public void open(OpenEvent event) { openAction.run(); }
3,226,795
protected void initContextMenu() { MenuManager menuMgr = new MenuManager(contentService .getViewerDescriptor().getPopupMenuId()); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { fillContextMenu(manager); } }); TreeVie...
protected void initContextMenu() { MenuManager menuMgr = new MenuManager(contentService .getViewerDescriptor().getPopupMenuId()); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { fillContextMenu(manager); } }); TreeVie...
3,226,796
protected void initContextMenu() { MenuManager menuMgr = new MenuManager(contentService .getViewerDescriptor().getPopupMenuId()); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { fillContextMenu(manager); } }); TreeVie...
protected void initContextMenu() { MenuManager menuMgr = new MenuManager(contentService .getViewerDescriptor().getPopupMenuId()); menuMgr.setRemoveAllWhenShown(true); menuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { fillContextMenu(manager); } }); TreeVie...
3,226,797
public void selectionChanged(SelectionChangedEvent anEvent) { updateStatusBar(anEvent.getSelection()); if (anEvent.getSelection() instanceof IStructuredSelection) { IStructuredSelection structuredSelection = (IStructuredSelection) anEvent .getSelection(); actionService.fillActionBars(commonNavigator.getViewS...
public void selectionChanged(SelectionChangedEvent anEvent) { updateStatusBar(anEvent.getSelection()); if (anEvent.getSelection() instanceof IStructuredSelection) { IStructuredSelection structuredSelection = (IStructuredSelection) anEvent .getSelection(); actionService.fillActionBars(commonNavigator.getViewS...
3,226,798
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
3,226,799
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa...
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa...
3,226,800
public Iterator<IMapEntry> iterator() { return new Iter(array);}
public Iterator iterator() { return new Iter(array);}
3,226,801
public void init(ServletConfig sc) throws ServletException { synchronized (CaptchaServlet.class) { super.init(sc); try { WordList wordList = new WordList(Locale.getDefault()); Iterator itr = WordsUtil.getDictionary().iterator(); while (itr.hasNext()) { wordList.addWord((String)itr.next()); } Wo...
public void init(ServletConfig sc) throws ServletException { synchronized (CaptchaServlet.class) { super.init(sc); try { WordList wordList = new WordList(Locale.getDefault()); Iterator itr = WordsUtil.getDictionary().iterator(); while (itr.hasNext()) { wordList.addWord((String)itr.next()); } Wo...
3,226,802
public void init(ServletConfig sc) throws ServletException { synchronized (CaptchaServlet.class) { super.init(sc); try { WordList wordList = new WordList(Locale.getDefault()); Iterator itr = WordsUtil.getDictionary().iterator(); while (itr.hasNext()) { wordList.addWord((String)itr.next()); } Wo...
public void init(ServletConfig sc) throws ServletException { synchronized (CaptchaServlet.class) { super.init(sc); try { WordList wordList = new WordList(Locale.getDefault()); Iterator itr = WordsUtil.getDictionary().iterator(); while (itr.hasNext()) { wordList.addWord((String)itr.next()); } Wo...
3,226,803
public IRubyObject aref(IRubyObject index) { throw new TypeError(getRuntime(), "not a java array"); }
public IRubyObject aref(IRubyObject index) { throw getRuntime().newTypeError("not a java array"); }
3,226,804
public IRubyObject aset(IRubyObject index, IRubyObject value) { throw new TypeError(getRuntime(), "not a java array"); }
public IRubyObject aset(IRubyObject index, IRubyObject value) { throw getRuntime().newTypeError("not a java array"); }
3,226,805
public RubyFixnum hash() { return RubyFixnum.newFixnum(runtime, value == null ? 0 : value.hashCode()); }
public RubyFixnum hash() { return getRuntime().newFixnum(value == null ? 0 : value.hashCode()); }
3,226,806
public RubyString java_type() { return RubyString.newString(getRuntime(), getJavaClass().getName()); }
public RubyString java_type() { return getRuntime().newString(getJavaClass().getName()); }
3,226,807
public RubyFixnum length() { throw new TypeError(getRuntime(), "not a java array"); }
public RubyFixnum length() { throw getRuntime().newTypeError("not a java array"); }
3,226,808